/* Form fields, phone input, validation text, contact layout */
input,
select,
textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: 300 1rem Manrope;
  border-radius: 0;
  color-scheme: dark;
}
select option {
  background: #000000;
  color: #ffffff;
}
select option:checked,
select option:hover {
  background-color: var(--brass, #b8945a);
  color: #ffffff;
}
input::placeholder,
textarea::placeholder {
  color: var(--mut);
}
.fm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.fm .f {
  grid-column: 1/-1;
}
label {
  font-size: 0.78rem;
  color: var(--mut);
}

/* Plan Your Trip: Cormorant Garamond typography matching 'Plan your trip' heading */
#plan label,
#plan .fm label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.01em;
  display: inline-block;
  margin-bottom: 4px;
}

/* Plan Your Trip: Transparent/translucent form controls */
#plan .fm input,
#plan .fm textarea,
#dest-wrap {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  padding: 12px 0;
  color: #ffffff;
  box-sizing: border-box;
}
#dest-wrap {
  padding-right: 36px;
  min-height: 48px;
}
#dest-wrap input {
  background: transparent;
  border: none;
  padding: 0;
  color: #ffffff;
}
#plan .fm input::placeholder,
#plan .fm textarea::placeholder,
#dest-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
#dest-wrap:focus-within,
#dest-wrap.open,
#plan .fm input:focus,
#plan .fm textarea:focus {
  background: transparent;
  border-bottom-color: var(--brass);
  outline: none;
}

.ok {
  display: none;
  grid-column: 1/-1;
  padding: 14px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(184, 148, 90, 0.4);
  border-radius: 6px;
}
/* Plan your trip section: cinematic full-bleed backdrop */
#plan {
  position: relative;
  max-width: none;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
#plan::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: url("../../assets/images/plan/plan-bg.webp") center / cover no-repeat;
  filter: blur(8px);
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );
}
#plan > .ct {
  position: relative;
  z-index: 2;
  max-width: calc(1300px - 14vw);
  margin-left: auto;
  margin-right: auto;
}
#plan h2,
#plan p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.ct {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
}
.ct a {
  color: var(--ink);
  display: block;
  text-decoration: none;
  padding: 4px 0;
}
.de,
.ce,
.te {
  color: #c0533a;
  font-size: 0.78rem;
  min-height: 1.2em;
  display: block;
  margin-top: 4px;
}
.ce:empty,
.te:empty {
  display: none;
}
input#t.invalid,
input#ht.invalid,
input#c.invalid,
input#hc.invalid {
  border-bottom-color: #c0533a;
}

/* Destination Searchable Dropdown Combobox */
.dest-field-group {
  position: relative;
}
.dest-combobox {
  position: relative;
  width: 100%;
}
.dest-combobox input {
  padding-right: 32px;
  cursor: text;
}
.dest-combobox input::placeholder {
  color: var(--mut);
  opacity: 0.75;
}
.dest-combobox input.invalid {
  border-bottom-color: #c0533a;
}
/* Destination Multi-Select Combobox */
.dest-combobox-multi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 6px 36px 6px 0;
  border-bottom: 1px solid var(--line);
  cursor: text;
  position: relative;
  transition: border-color 0.2s ease;
}
.dest-combobox-multi:focus-within,
.dest-combobox-multi.open {
  border-bottom-color: var(--brass);
}
.dest-combobox-multi.invalid,
.dest-combobox-multi.tl-input-invalid {
  border-bottom-color: #c0533a;
}
.dest-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 12px;
  background: rgba(184, 148, 90, 0.22);
  border: 1px solid rgba(184, 148, 90, 0.55);
  border-radius: 20px;
  color: #ffffff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  user-select: none;
  animation: destChipIn 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes destChipIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.dest-chip-name {
  white-space: nowrap;
}
.dest-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--mut);
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  font-family: inherit;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.dest-chip-remove:hover {
  color: #fff;
  background: rgba(192, 83, 58, 0.75);
  transform: scale(1.1);
}
.dest-combobox-multi input {
  flex: 1 1 110px;
  min-width: 90px;
  border: 0 !important;
  border-bottom: 0 !important;
  padding: 6px 0 !important;
  margin: 0;
  background: none;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff;
  font: 300 1rem Manrope;
}
.dest-combobox-multi input:focus {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.dest-combobox-multi .dest-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.dest-combobox-multi.open .dest-toggle {
  transform: translateY(-50%) rotate(180deg);
  color: var(--brass);
}
.dest-toggle {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.2s;
  outline: none;
}
.dest-combobox.open .dest-toggle {
  transform: translateY(-50%) rotate(180deg);
  color: var(--brass);
}

/* Dropdown menu */
.dest-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 120;
  max-height: 280px;
  overflow-y: auto;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.5);
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.2s;
  pointer-events: none;
  scrollbar-width: thin;
  scrollbar-color: var(--brass) transparent;
  -webkit-overflow-scrolling: touch;
}
.dest-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dest-menu.open-up {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(6px) scale(0.99);
}
.dest-menu.open.open-up {
  transform: translateY(0) scale(1);
}

/* Option item */
.dest-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}
.dest-opt:hover,
.dest-opt.active {
  background: rgba(184, 148, 90, 0.22);
  color: #ffffff;
}
.dest-opt[aria-selected="true"] {
  background: rgba(184, 148, 90, 0.16);
  color: #ffffff;
  font-weight: 500;
}
.dest-opt[aria-selected="true"]:hover,
.dest-opt[aria-selected="true"].active {
  background: rgba(184, 148, 90, 0.28);
}
.dest-opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dest-opt-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(184, 148, 90, 0.4);
}
.dest-opt-name {
  color: #ffffff;
  letter-spacing: 0.01em;
}
.dest-match {
  background: transparent;
  color: var(--brass);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(184, 148, 90, 0.5);
  text-underline-offset: 3px;
}
.dest-opt-check {
  color: var(--brass);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dest-opt[aria-selected="true"] .dest-opt-check {
  opacity: 1;
  transform: scale(1);
}
.dest-empty {
  padding: 14px 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  background: #000000;
  text-align: center;
  font-style: italic;
}
.destination-dropdown,
.destination-options {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Hero bar overrides */
.dest-bar-label {
  position: relative;
  background: #000000;
}
.bar .dest-combobox {
  background: #000000;
}
.bar .dest-combobox input {
  padding-right: 24px;
  color: #fff;
  background: #000000;
}
.bar .dest-combobox input::placeholder {
  color: #cfe0d5;
  opacity: 0.8;
}
.bar .dest-combobox .dest-toggle {
  right: 0;
  color: #cfe0d5;
}
.bar .dest-menu {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  bottom: calc(100% + 8px);
  top: auto;
}
.bar .dest-menu.open {
  transform: translateY(0) scale(1);
}
.bar .dest-opt {
  color: #fff;
}
.bar .dest-opt:hover,
.bar .dest-opt.active {
  background: rgba(184, 148, 90, 0.25);
  color: #fff;
}
.bar .dest-empty {
  color: #cfe0d5;
}

@media (max-width: 860px) {
  #plan > .ct {
    max-width: none;
  }
  .ct,
  .fm {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 767px) {
  /* Compact Mobile Destination Dropdown */
  .dest-menu {
    max-height: min(154px, 24vh);
    padding: 4px;
    border-radius: 10px;
    background: #000000;
  }
  .dest-opt {
    padding: 5px 10px;
    min-height: 31px;
    border-radius: 6px;
    font-size: 0.85rem;
  }
  .dest-opt-left {
    gap: 8px;
  }
  .dest-opt-thumb {
    width: 20px;
    height: 20px;
  }
  .dest-opt-name {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .dest-opt-check {
    width: 12px;
    height: 12px;
  }
  .bar .dest-menu {
    left: 0;
    right: auto;
    width: max(100%, 220px);
    max-width: min(280px, calc(100vw - 32px));
    bottom: calc(100% + 6px);
    top: auto;
  }
}

/* Custom Travelustic-styled Validation Error Popup */
.tl-val-popup {
  position: absolute;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  background: linear-gradient(145deg, #181818 0%, #0a0a0a 100%);
  border: 1px solid rgba(184, 148, 90, 0.65);
  border-radius: 6px;
  padding: 8px 14px;
  color: #f7f5ed;
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 24px -4px rgba(0, 0, 0, 0.5),
    0 3px 8px -2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out,
    visibility 0.18s ease-out;
  max-width: min(340px, calc(100vw - 32px));
  box-sizing: border-box;
  word-break: break-word;
}

.tl-val-popup.tl-val-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tl-val-arrow {
  position: absolute;
  top: -5px;
  left: 18px;
  width: 8px;
  height: 8px;
  background: #181818;
  border-top: 1px solid rgba(184, 148, 90, 0.65);
  border-left: 1px solid rgba(184, 148, 90, 0.65);
  transform: rotate(45deg);
  pointer-events: none;
}

.tl-val-popup.tl-val-above .tl-val-arrow {
  top: auto;
  bottom: -5px;
  border-top: 0;
  border-left: 0;
  border-bottom: 1px solid rgba(184, 148, 90, 0.65);
  border-right: 1px solid rgba(184, 148, 90, 0.65);
  background: #0a0a0a;
}

.tl-val-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8945a;
  width: 14px;
  height: 14px;
}

.tl-val-text {
  flex: 1;
}

/* Invalid field gold focus styling */
input.tl-input-invalid {
  border-bottom-color: var(--brass) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* Plan Your Trip: Offer Applied Badge */
.plan-offer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 12px 18px;
  background: #111111;
  background: linear-gradient(145deg, #181818 0%, #0a0a0a 100%);
  border: 1px solid rgba(184, 148, 90, 0.7);
  border-radius: 8px;
  box-shadow:
    0 10px 26px -4px rgba(0, 0, 0, 0.5),
    0 3px 8px -2px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  max-width: 100%;
}

.plan-offer-badge[hidden] {
  display: none !important;
}

.plan-offer-anim {
  animation: planOfferFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes planOfferFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-offer-badge-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.plan-offer-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass, #b8945a);
}

.plan-offer-sparkle {
  color: #dfbf82;
  font-size: 0.85rem;
  line-height: 1;
}

.plan-offer-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  color: #f7f5ed;
  word-break: break-word;
}

.plan-offer-remove {
  background: rgba(184, 148, 90, 0.12);
  border: 1px solid rgba(184, 148, 90, 0.3);
  border-radius: 50%;
  color: var(--brass, #b8945a);
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.plan-offer-remove:hover {
  background: rgba(184, 148, 90, 0.28);
  border-color: rgba(184, 148, 90, 0.7);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .plan-offer-anim {
    animation: none;
  }
}


