/* Flights tab */
.flt-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr) repeat(2, 0.8fr) repeat(2, 0.8fr);
  gap: .7rem;
  align-items: end;
}
.flt-field { display: flex; flex-direction: column; position: relative; }
.flt-field label {
  font-size: .72rem; font-weight: 600; color: #555;
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: .25rem;
}
.flt-field input, .flt-field select {
  padding: .55rem .6rem; border: 1px solid #ccc; border-radius: 6px;
  font-size: .9rem; font-family: inherit; background: #fff; width: 100%;
}
.flt-field input:focus, .flt-field select:focus { outline: none; border-color: #1668e3; }

.flt-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .9rem; gap: 1rem; flex-wrap: wrap;
}
.flt-oneway { font-size: .9rem; color: #333; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.flt-oneway input { width: auto; }

/* Autocomplete */
.flt-ac {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid #ccc; border-top: none;
  border-radius: 0 0 6px 6px; box-shadow: 0 6px 16px rgba(0,0,0,.12);
  display: none; max-height: 280px; overflow-y: auto;
}
.flt-ac.open { display: block; }
.flt-ac-item {
  padding: .5rem .6rem; cursor: pointer; display: flex; align-items: baseline; gap: .55rem;
  border-bottom: 1px solid #f0f0f0;
}
.flt-ac-item:last-child { border-bottom: none; }
.flt-ac-item:hover, .flt-ac-item.active { background: #eef4ff; }
.flt-ac-code { font-weight: 700; color: #14417e; font-size: .82rem; min-width: 2.4rem; }
.flt-ac-name { font-size: .85rem; color: #444; }

/* Result messages */
.flt-msg { padding: 1.2rem; text-align: center; color: #555; font-size: .92rem; }
.flt-loading { color: #14417e; font-weight: 600; }
.flt-err { color: #b03a2e; }
.flt-results-head { margin: 1rem 0 .6rem; font-size: .85rem; color: #666; font-weight: 600; }

/* Airline filter bar */
.flt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .9rem; }
.flt-filter-label { font-size: .75rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .03em; margin-right: .2rem; }
.flt-pill {
  font-family: inherit; font-size: .8rem; padding: .32rem .7rem; border-radius: 999px;
  border: 1px solid #cfcfcf; background: #fff; color: #888; cursor: pointer; transition: all .12s;
}
.flt-pill:hover { border-color: #1668e3; }
.flt-pill.active { background: #eef4ff; border-color: #1668e3; color: #14417e; font-weight: 600; }
.flt-pill-all {
  font-family: inherit; font-size: .78rem; padding: .32rem .6rem; border-radius: 999px;
  border: 1px dashed #bbb; background: transparent; color: #666; cursor: pointer; margin-left: .2rem;
}
.flt-pill-all:hover { border-color: #1668e3; color: #14417e; }

/* Offer card */
.flt-card {
  background: #fff; border: 1px solid #e3e3e3; border-radius: 10px;
  padding: 1rem 1.1rem; margin-bottom: .85rem; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.flt-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.flt-airline { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: #222; font-size: .95rem; }
.flt-logo { width: 26px; height: 26px; object-fit: contain; }
.flt-price { font-size: 1.4rem; font-weight: 800; color: #14417e; line-height: 1; text-align: right; }
.flt-price-sub { display: block; font-size: .68rem; font-weight: 500; color: #999; text-transform: uppercase; }

.flt-slice { padding: .55rem 0; border-top: 1px solid #f2f2f2; }
.flt-slice:first-of-type { border-top: none; }
.flt-slice-label { font-size: .7rem; font-weight: 700; color: #1668e3; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.flt-slice-row { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: .6rem; }
.flt-endpoint { text-align: center; }
.flt-time { font-size: 1.05rem; font-weight: 700; color: #222; }
.flt-airport { font-size: .85rem; font-weight: 600; color: #555; }
.flt-date { font-size: .72rem; color: #999; }
.flt-mid { text-align: center; }
.flt-duration { font-size: .78rem; color: #777; margin-bottom: .15rem; }
.flt-line { display: flex; align-items: center; gap: .25rem; }
.flt-track { flex: 1; height: 2px; background: #ccc; }
.flt-dot { width: 7px; height: 7px; border-radius: 50%; background: #1668e3; flex: none; }
.flt-stops { font-size: .74rem; color: #b07a2e; margin-top: .15rem; }
.flt-stops.nonstop { color: #14417e; }

.flt-card-foot { margin-top: .7rem; text-align: right; }
.flt-book { display: inline-block; text-decoration: none; padding: .5rem 1rem; font-size: .85rem; }
.flt-book-out { display: inline-block; text-decoration: none; padding: .5rem 1rem; font-size: .85rem; }

/* Source badges */
.flt-badge {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .12rem .45rem; border-radius: 4px; margin-left: .5rem; white-space: nowrap;
}
.flt-badge-instant { background: #eef4ff; color: #14417e; }
.flt-badge-out { background: #eef2f7; color: #4a6585; }
.flt-loading-more { font-size: .76rem; color: #888; font-style: italic; margin-left: .4rem; }

/* Booking modal */
.flt-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto;
}
.flt-modal {
  background: #fff; border-radius: 12px; width: 100%; max-width: 560px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); overflow: hidden;
}
.flt-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid #eee;
}
.flt-modal-head h3 { margin: 0; font-size: 1.05rem; color: #222; }
.flt-modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: #999; cursor: pointer; }
.flt-modal-body { padding: 1.1rem 1.2rem; }
.flt-note { font-size: .82rem; color: #777; background: #f6f6f2; border-radius: 6px; padding: .55rem .7rem; margin: 0 0 1rem; }

.flt-pax { border: 1px solid #e3e3e3; border-radius: 8px; padding: .7rem .9rem 1rem; margin-bottom: .9rem; }
.flt-pax legend { font-size: .8rem; font-weight: 700; color: #14417e; padding: 0 .4rem; }
.flt-pax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.flt-pax-grid label { display: flex; flex-direction: column; font-size: .76rem; font-weight: 600; color: #555; gap: .25rem; }
.flt-pax-grid input, .flt-pax-grid select {
  padding: .5rem .55rem; border: 1px solid #ccc; border-radius: 6px; font-size: .9rem; font-family: inherit;
}
.flt-pax-grid input:focus, .flt-pax-grid select:focus { outline: none; border-color: #1668e3; }
.flt-f-sm { max-width: 100%; }

.flt-modal-msg { font-size: .85rem; margin-top: .5rem; min-height: 1.1rem; }
.flt-modal-foot {
  display: flex; justify-content: flex-end; gap: .6rem;
  padding: .9rem 1.2rem; border-top: 1px solid #eee; background: #fafafa;
}

.flt-confirm { text-align: center; padding: 1rem .5rem; }
.flt-confirm-check { font-size: 2.4rem; }
.flt-confirm h3 { margin: .3rem 0 .8rem; color: #14417e; }
.flt-confirm-ref { font-size: .8rem; color: #777; text-transform: uppercase; letter-spacing: .04em; }
.flt-confirm-ref strong { display: block; font-size: 1.8rem; letter-spacing: .08em; color: #222; margin-top: .2rem; }
.flt-confirm-total { font-weight: 700; color: #222; font-size: 1.05rem; }

/* Right-column Amazon rail (shown on every tab) */
.page-layout { display: flex; gap: 1.25rem; max-width: 1400px; margin: 0 auto; width: 100%; align-items: flex-start; }
.page-layout > main { max-width: none; margin: 0; }
.amazon-rail {
  flex: 0 0 232px; width: 232px; align-self: flex-start;
  position: sticky; top: 1rem; padding: 1.5rem 1rem 1.5rem 0;
  max-height: calc(100vh - 1.5rem); overflow-y: auto;
}
.amazon-rail .flt-gear { margin-top: 0; border-top: none; padding-top: 0; }
.amazon-rail .flt-gear-grid { grid-template-columns: 1fr; gap: .45rem; }
.amazon-rail .flt-gear-title { font-size: .9rem; }
.amazon-rail .flt-gear-sub { font-size: .74rem; margin-bottom: .7rem; }
.amazon-rail .flt-gear-card { background: rgba(255,255,255,.97); padding: .5rem .6rem; gap: .1rem; }
.amazon-rail .flt-gear-name { font-size: .8rem; }
.amazon-rail .flt-gear-blurb { font-size: .72rem; line-height: 1.2; }
.amazon-rail .flt-gear-btn { margin-top: .25rem; font-size: .72rem; }
.amazon-rail .flt-gear-disc { font-size: .68rem; margin-top: .7rem; }
@media (max-width: 980px) {
  .page-layout { flex-direction: column; }
  .amazon-rail {
    position: static; width: auto; flex: none; max-height: none;
    padding: 0 1.5rem 2rem; overflow: visible;
  }
  .amazon-rail .flt-gear-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Travel gear affiliate strip */
.flt-gear:empty { display: none; }
.flt-gear { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid #e8e8e8; }
.flt-gear-title { margin: 0 0 .15rem; font-size: 1.1rem; font-weight: 700; color: #191e3b; }
.flt-gear-sub { margin: 0 0 1rem; font-size: .85rem; color: #5f5f65; }
.flt-gear-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem;
}
.flt-gear-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
  text-decoration: none; background: #fff; border: 1px solid #e3e3e3; border-radius: 10px;
  padding: .8rem .85rem; transition: border-color .12s, transform .12s, box-shadow .12s;
}
.flt-gear-card:hover { border-color: #1668e3; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.flt-gear-icon { font-size: 1.7rem; line-height: 1; }
.flt-gear-img {
  width: 100%; height: 120px; object-fit: cover; border-radius: 8px;
  background: #f0f0f0; margin-bottom: .15rem; display: block;
}
.flt-gear-name { font-weight: 700; font-size: .88rem; color: #222; }
.flt-gear-blurb { font-size: .76rem; color: #777; line-height: 1.25; flex: 1; }
.flt-gear-btn { margin-top: .4rem; font-size: .78rem; font-weight: 700; color: #14417e; }
.flt-gear-disc { margin: 1rem 0 0; font-size: .72rem; color: #999; font-style: italic; }

@media (max-width: 720px) {
  .flt-form { grid-template-columns: 1fr 1fr; }
  .flt-field-sm { grid-column: span 1; }
  .flt-pax-grid { grid-template-columns: 1fr; }
  .flt-gear-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Auth + Saved ---------- */
.auth-area { display: flex; align-items: center; margin-left: auto; }
.auth-signin-btn {
  font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: #1668e3; color: #fff; border: none; border-radius: 999px; padding: .5rem 1.15rem;
}
.auth-signin-btn:hover { background: #0d4eaf; }
.auth-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; background: #f2f3f7;
  color: #191e3b; border: 1px solid #e0e0e5; border-radius: 999px; padding: .28rem .7rem .28rem .3rem;
  transition: background .15s, border-color .15s;
}
.auth-chip:hover, .auth-chip.open { background: #e8eaf1; border-color: #c9cbd6; }
.auth-chip-name { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-chip-chev { font-size: .6rem; opacity: .8; transition: transform .15s; }
.auth-chip.open .auth-chip-chev { transform: rotate(180deg); }
.auth-av-initial { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f6a93b, #ef8a3c); color: #fff; font-weight: 700; }
.auth-dropdown {
  position: absolute; right: 1rem; top: 3.5rem; z-index: 200; background: #fff;
  border: 1px solid #e9ecef; border-radius: 14px; min-width: 240px; overflow: hidden; padding: .35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.18);
  animation: auth-dd-in .14s ease-out;
}
@keyframes auth-dd-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.auth-dropdown.hidden { display: none; }
.auth-dd-head { display: flex; align-items: center; gap: .65rem; padding: .6rem .65rem .7rem; border-bottom: 1px solid #f0f2f4; margin-bottom: .3rem; }
.auth-dd-av { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; font-size: 1.05rem; }
.auth-dd-id { min-width: 0; }
.auth-dd-name { font-size: .92rem; font-weight: 700; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-dd-email { font-size: .78rem; color: #8a93a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-dd-item { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; background: none; border: none; border-radius: 9px; padding: .55rem .65rem; font-size: .9rem; font-weight: 500; cursor: pointer; color: #333; font-family: inherit; transition: background .12s; }
.auth-dd-item:hover { background: #f2f5fb; }
.auth-dd-ico { width: 20px; text-align: center; flex: none; opacity: .85; }
.auth-dd-signout { color: #b03a2e; }
.auth-dd-signout:hover { background: #fbeeec; }

.auth-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); display: flex; align-items: flex-start; justify-content: center; padding: 4rem 1rem; }
.auth-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 400px; box-shadow: 0 12px 40px rgba(0,0,0,.3); overflow: hidden; }
.auth-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem .4rem; }
.auth-modal-head h3 { margin: 0; font-size: 1.2rem; color: #222; }
.auth-modal-close { background: none; border: none; font-size: 1.7rem; line-height: 1; color: #999; cursor: pointer; }
#auth-form { padding: .5rem 1.3rem 1rem; display: flex; flex-direction: column; gap: .7rem; }
.auth-field { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: #555; gap: .25rem; }
.auth-field input { padding: .6rem .7rem; border: 1px solid #ccc; border-radius: 6px; font-size: .95rem; font-family: inherit; }
.auth-field input:focus { outline: none; border-color: #1668e3; }
.auth-submit { margin-top: .3rem; padding: .65rem; font-size: .95rem; }
.auth-google-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .6rem; border: 1px solid #ccc; border-radius: 6px; background: #fff; font-family: inherit; font-size: .92rem; font-weight: 600; color: #444; cursor: pointer; }
.auth-google-btn:hover { background: #f7f7f7; }
.auth-g { width: 18px; height: 18px; flex: none; display: inline-block; }
.auth-google-btn { color: #3c4043; }
.auth-or { text-align: center; position: relative; color: #999; font-size: .8rem; margin: .2rem 0; }
.auth-or span { background: #fff; padding: 0 .6rem; position: relative; z-index: 1; }
.auth-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e5e5e5; }
.auth-msg { font-size: .82rem; min-height: 1rem; }
.auth-err { color: #b03a2e; }
.auth-foot { padding: .9rem 1.3rem; border-top: 1px solid #eee; background: #fafafa; font-size: .85rem; color: #666; text-align: center; }
.auth-link { background: none; border: none; color: #14417e; font-weight: 700; cursor: pointer; font-family: inherit; font-size: .85rem; }

.save-search-btn { font-family: inherit; font-size: .85rem; cursor: pointer; background: #fff; color: #b07a2e; border: 1px solid #e0c08a; border-radius: 6px; padding: .5rem .8rem; white-space: nowrap; }
.save-search-btn:hover { background: #fdf6e9; }
.save-search-btn.saved { background: #eef4ff; color: #14417e; border-color: #1668e3; }

.saved-card { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: rgba(255,255,255,.97); border: 1px solid #e3e3e3; border-radius: 8px; padding: .8rem 1rem; margin-bottom: .6rem; }
.saved-card-main { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.saved-type { font-size: .68rem; font-weight: 700; color: #14417e; background: #eef4ff; border-radius: 4px; padding: .15rem .45rem; }
.saved-label { font-weight: 600; color: #222; font-size: .92rem; }
.saved-date { font-size: .75rem; color: #999; }
.saved-del { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .6; }
.saved-del:hover { opacity: 1; }
.saved-empty { color: #777; padding: 1.5rem; text-align: center; }

@media (max-width: 768px) { .auth-dropdown { top: auto; } }

/* ---------- Nav layout with auth area + mobile fixes ---------- */
/* overflow:visible lets the group dropdowns escape the nav (base style clips them) */
.topnav-links { flex: 1 1 auto; min-width: 0; overflow: visible; margin-left: 20px; }
.auth-area { position: relative; flex: 0 0 auto; margin-left: 1rem; }
/* anchor the user dropdown under the button, independent of nav height */
.auth-dropdown { top: calc(100% + .5rem); right: 0; }

@media (max-width: 768px) {
  /* nav becomes: logo .......... [Sign In] [≡] */
  .topnav-links { top: 64px; flex: none; overflow-y: auto; max-height: calc(100vh - 64px); }  /* mobile menu scrolls if long */
  .auth-area { order: 2; margin-left: auto; margin-right: .4rem; }
  .hamburger { order: 3; margin-left: 0; }
  .auth-signin-btn { padding: .4rem .8rem; font-size: .82rem; }
  .auth-chip { padding: .3rem .6rem; font-size: .82rem; }
  /* save button goes full-width in stacked search rows */
  .search-row .save-search-btn, .trails-filters .save-search-btn { width: 100%; }
}
@media (max-width: 480px) {
  .topnav-links { top: 60px; }                     /* match small nav height */
}

/* Make the Amazon rail + flights form comfortable on phones */
@media (max-width: 600px) {
  .amazon-rail .flt-gear-grid { grid-template-columns: 1fr 1fr; }
  .flt-form { grid-template-columns: 1fr 1fr; }
  .flt-controls { flex-direction: column; align-items: stretch; }
  .flt-controls .btn-primary { width: 100%; }
  .auth-modal-overlay { padding: 1.5rem 1rem; }
}

/* ---------- Trip photo gallery ---------- */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-top: .6rem; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #e8e8e8; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; transition: transform .2s; }
.photo-cell img:hover { transform: scale(1.06); }
.photo-del { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; line-height: 1; cursor: pointer; font-size: .72rem; opacity: 0; transition: opacity .15s; }
.photo-cell:hover .photo-del { opacity: 1; }
.photo-empty { font-size: .85rem; color: #777; padding: .6rem 0; }

/* Gallery lightbox nav (only shown in gallery mode) */
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 2.4rem; line-height: 1; width: 50px; height: 70px; cursor: pointer; display: none; }
.lightbox-nav:hover { background: rgba(0,0,0,.7); }
.lightbox.gallery .lightbox-nav { display: block; }
.lightbox-prev { left: 0; border-radius: 0 8px 8px 0; }
.lightbox-next { right: 0; border-radius: 8px 0 0 8px; }
.lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; background: rgba(0,0,0,.55); padding: .3rem .9rem; border-radius: 20px; display: none; }
.lightbox.gallery .lightbox-counter { display: block; }
@media (max-width: 600px) {
  .photo-gallery { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

/* ---------- Grouped nav (dropdowns) ---------- */
.topnav-links { gap: .3rem; }
.nav-group { position: relative; display: flex; align-items: stretch; }
.nav-group-btn {
  background: none; border: none; color: #43485e;
  font-family: inherit; font-size: .945rem; font-weight: 400; letter-spacing: .02em;
  height: 72px; padding: 0 1rem; cursor: pointer; display: flex; align-items: center; gap: .3rem; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.nav-group-btn:hover { color: #191e3b; background: #f2f3f7; }
.nav-group.open > .nav-group-btn,
.nav-group.active-group > .nav-group-btn { color: #191e3b; background: #f2f3f7; border-bottom-color: #1668e3; }
.nav-caret { font-size: .8rem; opacity: .85; transition: transform .15s; }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-group-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: #fff; border: 1px solid #e0e0e5; border-top: none;
  border-radius: 0 0 14px 14px; box-shadow: 0 16px 36px rgba(25,30,59,.14);
  flex-direction: column; padding: .35rem 0; display: none; z-index: 250;
}
.nav-group.open .nav-group-menu { display: flex; }
.nav-group-menu .tab {
  height: auto; font-size: .95rem; font-weight: 500; color: #43485e;
  width: 100%; text-align: left; padding: .7rem 1.2rem; border-bottom: none; border-left: 3px solid transparent;
}
.nav-group-menu .tab:hover { color: #191e3b; background: #f5f6fa; }
.nav-group-menu .tab.active { color: #191e3b; border-bottom: none; border-left-color: #1668e3; background: #eef4ff; }

@media (max-width: 768px) {
  .nav-group { position: static; width: 100%; display: block; }
  .nav-group-btn {
    height: auto; width: 100%; justify-content: space-between; cursor: default;
    font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; opacity: .55;
    padding: .7rem 1.8rem .25rem;
  }
  .nav-caret { display: none; }
  .nav-group-menu {
    position: static; display: flex !important; background: none;
    box-shadow: none; backdrop-filter: none; padding: 0; min-width: 0; border-radius: 0;
  }
  .nav-group-menu .tab { padding-left: 1.8rem; font-size: 1rem; }
}

/* ---------- Amtrak train results ---------- */
.trn-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .7rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.trn-route { font-weight: 700; color: #222; font-size: .95rem; }
.trn-num { color: #888; font-weight: 500; font-size: .82rem; }
.trn-times { font-size: 1.05rem; color: #14417e; margin: .2rem 0; }
.trn-meta { font-size: .8rem; color: #777; }
.trn-book { white-space: nowrap; text-decoration: none; padding: .5rem .9rem; font-size: .85rem; flex: none; }
@media (max-width: 600px) { .trn-card { flex-direction: column; align-items: flex-start; } .trn-book { width: 100%; text-align: center; } }

/* ---------- Footer ---------- */
.page-layout { flex: 1 0 auto; }
.site-footer {
  flex: none; text-align: center; padding: 1.4rem 1rem;
  color: #5f5f65; font-size: .8rem; background: #f6f6f9;
  border-top: 1px solid #e0e0e5;
}
.footer-sep { opacity: .45; margin: 0 .35rem; }

/* ---------- Home / landing page ---------- */
.home-hero {
  position: relative; text-align: center; padding: 4.6rem 1.4rem 7.5rem; margin: .4rem 0 0;
  border-radius: 24px; overflow: hidden;
  background:
    linear-gradient(rgba(12,16,34,.38), rgba(12,16,34,.5)),
    url('https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?w=1920&auto=format&fit=crop&q=80') center/cover no-repeat;
}
.home-hero-logo { height: 88px; width: auto; margin-bottom: .5rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.home-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 3rem; font-weight: 600; color: #fff; margin: 0 0 .55rem; letter-spacing: 0; text-shadow: 0 2px 6px rgba(0,0,0,.7), 0 4px 24px rgba(0,0,0,.55); }
.home-sub { color: rgba(255,255,255,.95); font-size: 1.08rem; line-height: 1.55; max-width: 600px; margin: 0 auto; text-shadow: 0 1px 8px rgba(0,0,0,.55); }

.home-section-label { text-align: left; color: #191e3b; font-weight: 700; font-size: 1.35rem; margin: 2.2rem 0 1rem; }

/* Expedia-style search widget overlapping the hero */
.home-widget { position: relative; z-index: 5; background: #fff; border-radius: 24px; box-shadow: 0 6px 28px rgba(25,30,59,.16); padding: .4rem 1.5rem 1.5rem; margin: -4.5rem auto 0; max-width: 880px; }
.hw-tabs { display: flex; justify-content: center; gap: 1.4rem; border-bottom: 1px solid #e0e0e5; margin-bottom: 1.2rem; overflow-x: auto; }
.hw-tab { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: none; background: none; border: none; cursor: pointer; font-family: inherit; font-size: .92rem; font-weight: 600; color: #43485e; padding: .85rem .5rem .8rem; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .12s, border-color .12s; }
.hw-tab .hw-ico { font-size: 1.75rem; line-height: 1; }
.hw-tab:hover { color: #191e3b; }
.hw-tab.active { color: #1668e3; border-bottom-color: #1668e3; }
.hw-row { display: flex; gap: .8rem; }
.hw-field { flex: 1; display: flex; align-items: center; gap: .55rem; border: 1px solid #767a8a; border-radius: 12px; padding: 0 1rem; transition: border-color .12s, box-shadow .12s; }
.hw-field:focus-within { border-color: #1668e3; box-shadow: 0 0 0 1px #1668e3; }
.hw-pin { font-size: 1.05rem; }
.hw-field input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: inherit; font-size: 1.05rem; color: #191e3b; padding: .95rem 0; }
.hw-search { background: #1668e3; color: #fff; border: none; border-radius: 999px; padding: .95rem 2.3rem; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.hw-search:hover { background: #0d4eaf; }

/* Navy promo band (Expedia sale-band style) */
.home-promo { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; background: #0f1428; color: #fff; border-radius: 20px; padding: 1.7rem 2.1rem; margin: 1.7rem 0 0; }
.hp-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.85rem; font-weight: 600; margin: 0 0 .25rem; }
.hp-sub { margin: 0; font-size: .95rem; color: rgba(255,255,255,.82); }
.hp-btn { background: #a3c2f9; color: #0f1428; border: none; border-radius: 999px; padding: .85rem 1.9rem; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.hp-btn:hover { background: #bcd2fb; }

.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin: 0 auto 1.2rem; max-width: 940px; }
.home-card {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
  background: #fff;
  border: 1px solid #e0e0e5; border-radius: 18px; padding: 1.6rem 1rem 1.4rem;
  cursor: pointer; font-family: inherit; box-shadow: 0 1px 4px rgba(25,30,59,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(25,30,59,.14); border-color: #c9cbd6; }
.home-ico {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: .55rem;
  background: linear-gradient(135deg, rgba(255,226,194,.5), rgba(230,244,218,.5));
  font-size: 1.9rem; line-height: 1;
}
.home-name { font-weight: 700; color: #1f2937; font-size: 1.05rem; }
.home-desc { font-size: .8rem; color: #4b5563; line-height: 1.35; }
@media (max-width: 600px) {
  .home-hero { padding: 2.6rem 1rem 6rem; }
  .home-title { font-size: 1.9rem; }
  .home-widget { margin-top: -4rem; padding: .2rem .9rem 1rem; }
  .hw-tabs { gap: .6rem; justify-content: flex-start; }
  .hw-row { flex-wrap: wrap; }
  .hw-search { width: 100%; }
  .home-promo { padding: 1.3rem 1.2rem; }
  .hp-title { font-size: 1.4rem; }
  .hp-btn { width: 100%; }
  .home-hero-logo { height: 64px; }
  .home-title { font-size: 1.8rem; }
  .home-sub { font-size: .96rem; }
  .home-section-label { font-size: 1.02rem; }
  .home-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .home-card { padding: 1.2rem .7rem 1rem; }
  .home-ico { width: 54px; height: 54px; font-size: 1.7rem; }
}

/* ========== Weather tracker (glass shell redesign) ========== */
#wx-results { max-width: 800px; margin: 0 auto; }

/* Search header (frosted so it reads over the photo background) */
.wx-search { max-width: 620px; margin: 1.2rem auto 1rem; text-align: center; background: #fff; border: 1px solid #e0e0e5; border-radius: 18px; padding: 1.2rem 1.4rem 1.3rem; box-shadow: 0 4px 16px rgba(25,30,59,.06); }
.wx-search-title { color: #1f2937; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .3rem; }
.wx-search-sub { color: #5a6473; font-size: .95rem; margin: 0 0 1rem; }
.wx-search-row {
  display: flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid #e0e0e5; border-radius: 999px; padding: .3rem .3rem .3rem 1.05rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.wx-search-icon { color: #9aa1ab; font-size: 1rem; line-height: 1; }
.wx-search-row input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 1rem; color: #1f2937; padding: .68rem .3rem;
}
.wx-search-row .btn-primary { border-radius: 999px; padding: .7rem 1.5rem; white-space: nowrap; flex: none; }
@media (max-width: 480px) {
  .wx-search { padding: 1rem; }
  .wx-search-row { flex-wrap: wrap; border-radius: 16px; padding: .5rem; }
  .wx-search-row input { width: 100%; flex: 1 1 100%; padding: .55rem .6rem; }
  .wx-search-row .btn-primary { width: 100%; }
  .wx-search-icon { display: none; }
}

/* Saved places chips */
.wx-places { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; max-width: 620px; margin: 0 auto 1.1rem; }
.wx-places-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5f5f65; width: 100%; }
.wx-chip { display: inline-flex; align-items: center; background: rgba(255,255,255,.97); border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.14); overflow: hidden; transition: transform .12s; }
.wx-chip:hover { transform: translateY(-1px); }
.wx-chip.active { outline: 2px solid #f6a93b; }
.wx-chip-go { border: none; background: none; font-family: inherit; font-size: .85rem; color: #1f2937; cursor: pointer; padding: .45rem .3rem .45rem .8rem; }
.wx-chip-x { border: none; background: none; color: #9aa1ab; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: .2rem .6rem .2rem .3rem; }
.wx-chip-x:hover { color: #b03a2e; }

/* One cohesive shell: hero + sections */
.wx-shell { background: #fff; border-radius: 22px; overflow: hidden; margin: 0 0 1.5rem; box-shadow: 0 18px 44px rgba(0,0,0,.24); }

/* Current-conditions hero (condition-driven gradient) */
.wx-current {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 1.8rem 1.6rem 1.5rem; background: linear-gradient(135deg, #4a90d9, #7ec8e3);
}
.wx-current::before {
  content: ""; position: absolute; top: -45%; right: -12%; width: 340px; height: 340px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.30), rgba(255,255,255,0) 70%);
}
.wx-current > * { position: relative; z-index: 1; }
.wx-clear { background: linear-gradient(135deg, #2f80ed, #56ccf2); }
.wx-cloud { background: linear-gradient(135deg, #5b6b7f, #95a7ba); }
.wx-rain  { background: linear-gradient(135deg, #41566b, #6d8aa0); }
.wx-snow  { background: linear-gradient(135deg, #6f8db0, #c4d6e8); }
.wx-storm { background: linear-gradient(135deg, #2b3240, #5a6473); }
.wx-cur-place { font-weight: 600; font-size: 1rem; opacity: .96; }
.wx-cur-main { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: .5rem 0 1.1rem; }
.wx-cur-ico-lg { font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.wx-cur-now { text-align: left; }
.wx-cur-temp { font-size: 4.2rem; font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.wx-cur-cond { font-size: 1.02rem; opacity: .97; margin-top: .3rem; }

/* Today's details as glass chips inside the hero */
.wx-cur-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 560px; margin: 0 auto; }
.wx-stat { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; padding: .5rem .4rem .55rem; backdrop-filter: blur(2px); }
.wx-stat-k { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.wx-stat-v { display: block; font-size: 1.1rem; font-weight: 800; margin-top: .15rem; }
@media (max-width: 480px) { .wx-cur-stats { grid-template-columns: repeat(2, 1fr); } }

/* Save button */
.wx-save {
  position: absolute; top: 1.05rem; right: 1.05rem; z-index: 2; font-family: inherit; font-size: .78rem; font-weight: 700;
  cursor: pointer; color: #fff; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: .38rem .85rem; backdrop-filter: blur(3px); transition: background .15s;
}
.wx-save:hover { background: rgba(255,255,255,.34); }
.wx-save.saved { background: #fff; color: #1f2937; border-color: #fff; }

/* Sections inside the shell */
.wx-section { padding: 1rem 1.3rem 1.1rem; }
.wx-section + .wx-section { border-top: 1px solid #eef0f3; }
.wx-panel-label { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8a93a0; padding-bottom: .55rem; margin-bottom: .45rem; }

/* Hourly strip: tiles + sparkline + temps scroll as one block */
.wx-hourly { overflow-x: auto; padding-bottom: .35rem; }
.wx-hours, .wx-hours-temps { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; }
.wx-hour { text-align: center; padding-top: .3rem; }
.wx-hour-t { font-size: .72rem; color: #5a6473; font-weight: 700; }
.wx-hour:first-child .wx-hour-t { color: #3b82c4; }
.wx-hour-ico { font-size: 1.5rem; margin: .28rem 0 .1rem; }
.wx-hour-pp { font-size: .64rem; color: #3b82c4; height: .9rem; font-weight: 600; }
.wx-spark { display: block; }
.wx-hours-temps > div { text-align: center; font-weight: 800; color: #1f2937; font-size: .95rem; padding: .1rem 0 .25rem; }

/* Daily list with range bars */
.wx-row { display: grid; grid-template-columns: 64px 28px 46px 34px 1fr 34px; align-items: center; gap: .55rem; padding: .6rem .3rem; border-radius: 8px; border-bottom: 1px solid #f1f1f1; transition: background .12s; }
.wx-row:hover { background: #f6faff; }
.wx-row:last-child { border-bottom: none; }
.wx-row-day { font-weight: 700; color: #333; font-size: .9rem; }
.wx-row-ico { font-size: 1.35rem; text-align: center; }
.wx-row-pp { font-size: .68rem; color: #3b82c4; font-weight: 600; }
.wx-row-lo { text-align: right; color: #9aa1ab; font-size: .9rem; }
.wx-row-hi { color: #1f2937; font-weight: 700; font-size: .9rem; text-align: right; }
.wx-row-track { position: relative; height: 7px; background: #eceff3; border-radius: 4px; }
.wx-row-bar { position: absolute; top: 0; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #5aa9e6, #f6a93b); }

/* Forecast day-count toggle */
.wx-fc-toggle { display: inline-flex; gap: .25rem; }
.wx-fc-toggle button {
  font-family: inherit; font-size: .68rem; font-weight: 700; text-transform: none; letter-spacing: 0;
  border: 1px solid #d0d5dd; background: #fff; color: #666; border-radius: 999px; padding: .22rem .7rem; cursor: pointer; transition: all .12s;
}
.wx-fc-toggle button.active { background: #f6a93b; border-color: #f6a93b; color: #fff; }

/* ---------- Flights polish ---------- */
.flt-form .flt-field input, .flt-form .flt-field select { border-radius: 8px; border-color: #d6d9dd; padding: .62rem .7rem; }
.flt-controls .btn-primary { padding: .7rem 1.5rem; border-radius: 8px; font-size: .95rem; }
.flt-card { border-radius: 14px; border-color: #ececec; box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: transform .15s ease, box-shadow .15s ease; }
.flt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.flt-card-head { padding-bottom: .5rem; border-bottom: 1px solid #f3f3f3; margin-bottom: .55rem; }
.flt-price { font-size: 1.6rem; }
.flt-plane { color: #1668e3; font-size: .85rem; line-height: 1; margin: 0 -2px; }
.flt-book, .flt-book-out { border-radius: 8px; font-weight: 600; }
.flt-results-head { color: #43485e; font-size: .9rem; }
.flt-filter-label { color: #43485e; }

/* ---------- Flights search form polish ---------- */
@media (min-width: 721px) {
  .flt-form { grid-template-columns: 1.4fr 1.4fr 1fr 1fr .9fr 1.05fr; gap: .8rem; }
}
.flt-search-card .flt-field input, .flt-search-card .flt-field select { padding: .65rem .75rem; font-size: .92rem; }
.flt-search-card .flt-field label { color: #6b7280; }
.flt-search-card .flt-controls { margin-top: 1.1rem; }
.flt-controls .btn-primary { padding: .75rem 1.8rem; }

/* ---------- Flights search: weather-style header ---------- */
.flt-search-card { max-width: 940px; margin: 1.5rem auto 1.3rem; text-align: center; }
.flt-search-title { color: #191e3b; font-size: 1.7rem; font-weight: 800; margin: 0 0 .3rem; }
.flt-search-sub { color: #5f5f65; font-size: .95rem; margin: 0 0 1rem; }
.flt-search-panel { background: #fff; border-radius: 16px; padding: 1.2rem 1.3rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); text-align: left; }

/* ---------- Flights search: segmented bar look ---------- */
.flt-search-panel { padding: .45rem; }
.flt-search-panel .flt-field input, .flt-search-panel .flt-field select {
  border: none; background: transparent; padding: .2rem 0; font-size: 1.02rem; color: #1f2937; border-radius: 0;
}
.flt-search-panel .flt-field input:focus, .flt-search-panel .flt-field select:focus { outline: none; box-shadow: none; }
.flt-search-panel .flt-field label { font-size: .64rem; color: #9aa1ab; letter-spacing: .06em; margin-bottom: .15rem; }
@media (min-width: 721px) {
  .flt-search-panel .flt-form {
    gap: 0; align-items: stretch; border: 1px solid #e4e7eb; border-radius: 12px; background: #fff;
  }
  .flt-search-panel .flt-field { padding: .5rem 1rem; border-right: 1px solid #eef0f3; justify-content: center; }
  .flt-search-panel .flt-field:last-child { border-right: none; }
}
/* Warm, on-brand Search button */
.flt-controls #flt-search-btn {
  background: linear-gradient(135deg, #f6a93b, #ef8b3c); color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(240,138,60,.35); border-radius: 999px; padding: .75rem 1.9rem; font-weight: 700;
}
.flt-controls #flt-search-btn:hover { filter: brightness(1.05); }
.flt-oneway { color: #4b5563; }

/* ---------- Airbnb / Stays form ---------- */
@media (min-width: 721px) { .abnb-form { grid-template-columns: 2fr 1fr 1fr .9fr; } }
@media (max-width: 720px) { .abnb-form { grid-template-columns: 1fr 1fr; } }

/* ---------- Stays results ---------- */
.stay-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .8rem; }
.stay-cta { display: flex; gap: .5rem; }
.stay-cta a { text-decoration: none; font-size: .82rem; font-weight: 700; color: #14417e; background: rgba(255,255,255,.92); border: 1px solid #c9d8f2; border-radius: 8px; padding: .4rem .8rem; }
.stay-cta a:hover { background: #fff; }
.stay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.stay-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e0e0e5; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(25,30,59,.06); transition: transform .15s ease, box-shadow .15s ease; }
.stay-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(25,30,59,.16); }
.stay-photo { position: relative; height: 140px; background-position: center; background-size: cover; background-color: #e8eaf1; }
.stay-type { position: absolute; left: .6rem; bottom: .6rem; font-size: .7rem; font-weight: 700; color: #191e3b; background: rgba(255,255,255,.92); border-radius: 999px; padding: .22rem .6rem; }
.stay-body { display: flex; flex-direction: column; gap: .2rem; padding: .75rem .9rem .9rem; flex: 1; }
.stay-name { font-weight: 700; color: #191e3b; font-size: .95rem; line-height: 1.3; }
.stay-meta { font-size: .78rem; color: #5f5f65; }
.stay-book { text-decoration: none; font-size: .82rem; font-weight: 700; color: #fff; background: #1668e3; border-radius: 999px; padding: .45rem 1rem; text-align: center; }
.stay-book:hover { background: #0d4eaf; }
.stay-actions { display: flex; gap: .5rem; margin-top: .6rem; }
.stay-actions > * { flex: 1; }
.stay-dir { text-decoration: none; font-size: .8rem; font-weight: 700; color: #c97f1e; background: #fff; border: 1px solid #f0c98a; border-radius: 8px; padding: .42rem .9rem; text-align: center; white-space: nowrap; }
.stay-dir:hover { background: #fff7ec; }
@media (max-width: 600px) { .stay-grid { grid-template-columns: 1fr; } }

/* Google Places autocomplete dropdown */
.gp-ac { position: fixed; z-index: 9999; background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.16); max-height: 320px; overflow-y: auto; overflow-x: hidden; }
.gp-ac-item { padding: .6rem .85rem; cursor: pointer; display: flex; flex-direction: column; gap: 1px; border-bottom: 1px solid #f3f3f3; }
.gp-ac-item:last-child { border-bottom: none; }
.gp-ac-item.active, .gp-ac-item:hover { background: rgba(246,169,59,.12); }
.gp-ac-main { color: #1f2937; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-ac-sec { color: #8a8a8a; font-size: .78rem; padding-left: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Account page (searches + planned trip + security) */
.acct { max-width: 920px; margin: 0 auto; }
.acct-head { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 14px; padding: 1.1rem 1.3rem; box-shadow: 0 4px 16px rgba(0,0,0,.10); margin-bottom: 1.1rem; }
.acct-avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: linear-gradient(135deg,#f6a93b,#ef8a3c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; overflow: hidden; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-avatar-wrap { position: relative; flex: none; }
.acct-avatar-wrap--btn { cursor: pointer; }
.acct-avatar-edit { position: absolute; bottom: -3px; right: -3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: .72rem; box-shadow: 0 1px 5px rgba(0,0,0,.28); }
.acct-avatar-wrap--btn:hover .acct-avatar { filter: brightness(.9); }
.acct-avatar-loading { opacity: .55; pointer-events: none; }
.auth-chip-img { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover; font-size: .8rem; box-shadow: 0 0 0 1.5px rgba(25,30,59,.12); }
.acct-head-text { flex: 1; min-width: 0; }
.acct-name { font-size: 1.2rem; font-weight: 700; color: #1f2937; }
.acct-email { font-size: .85rem; color: #777; overflow: hidden; text-overflow: ellipsis; }
.acct-logout { flex: none; background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: .5rem .9rem; font-size: .85rem; font-weight: 600; color: #555; cursor: pointer; }
.acct-logout:hover { border-color: #f6a93b; color: #c97f1e; }
.acct-signin { flex: none; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.acct-panel { background: #fff; border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.acct-panel-title { margin: 0 0 .8rem; font-size: 1rem; color: #1f2937; }
.acct-trip-name { font-weight: 700; color: #1f2937; }
.acct-trip-dates { font-size: .85rem; color: #555; margin-top: .25rem; }
.acct-trip-parts { font-size: .85rem; color: #777; margin-top: .25rem; }
.acct-trip-count { font-size: .8rem; color: #999; margin-top: .35rem; }
.acct-link-btn { margin-top: .9rem; background: none; border: none; color: #c97f1e; font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0; }
.acct-link-btn:hover { text-decoration: underline; }
.acct-quick { display: flex; gap: .6rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.acct-quick-btn { background: #fff; border: 1px solid #e2e2e2; border-radius: 10px; padding: .6rem 1rem; font-size: .88rem; font-weight: 600; color: #444; cursor: pointer; }
.acct-quick-btn:hover { border-color: #f6a93b; color: #c97f1e; }
.acct-security { background: #f4f9f1; border: 1px solid #d9ead0; border-radius: 14px; padding: 1.1rem 1.3rem; }
.acct-sec-title { font-weight: 700; color: #14417e; margin-bottom: .6rem; }
.acct-sec-list { margin: 0; padding-left: 1.2rem; color: #3a5a2c; }
.acct-sec-list li { margin: .35rem 0; font-size: .88rem; line-height: 1.45; }
@media (max-width: 700px) { .acct-grid { grid-template-columns: 1fr; } }

/* About page */
.about-page { max-width: 760px; margin: 1.5rem auto; padding: 2rem 2.2rem; color: #374151; line-height: 1.7; background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
@media (max-width: 600px) { .about-page { padding: 1.4rem 1.3rem; margin: 1rem auto; } }
.about-title { font-size: 1.85rem; margin: 0 0 .7rem; color: #1f2937; }
.about-lede { font-size: 1.15rem; font-weight: 600; color: #c97f1e; margin: 0 0 1.1rem; }
.about-page p { margin: 0 0 1rem; font-size: .98rem; }
.about-list { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.about-list li { margin: .35rem 0; }
.about-sign { margin-top: 1.6rem; }
.footer-link { color: inherit; text-decoration: underline; }
.footer-link:hover { color: #f6a93b; }

/* Support young entrepreneurs card (top of the right Amazon rail) */
.support-card { display: flex; gap: .6rem; background: linear-gradient(135deg, #f6a93b, #ef8a3c); color: #fff; border-radius: 12px; padding: .7rem .8rem; box-shadow: 0 3px 10px rgba(239,138,60,.25); }
.support-card--rail { flex-direction: column; align-items: flex-start; gap: .3rem; margin-bottom: 1rem; }
.support-ico { font-size: 1.5rem; line-height: 1; flex: none; }
.support-text { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.support-text strong { font-size: .9rem; font-weight: 700; }
.support-text span { font-size: .74rem; opacity: .95; line-height: 1.25; }

/* Food results filter + sort toolbar */
.food-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: .2rem 0 1rem; }
.food-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.food-chip { border: 1px solid #e2e2e2; background: #fff; color: #444; border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .12s; }
.food-chip:hover { border-color: #f6a93b; color: #c97f1e; }
.food-chip.active { background: #f6a93b; border-color: #f6a93b; color: #fff; }
.food-selects { display: flex; gap: .5rem; flex: none; }
.food-selects select { border: 1px solid #e2e2e2; border-radius: 8px; padding: .42rem .6rem; font-size: .82rem; background: #fff; color: #333; cursor: pointer; }
.food-selects select:focus { outline: none; border-color: #f6a93b; }
@media (max-width: 640px) { .food-filters { flex-direction: column; align-items: stretch; } .food-selects { } .food-selects select { flex: 1; } }

/* Collapse the dropdown nav into the hamburger below 1200px so the Donate button + */
/* account chip always fit. Above 1200px the full menu bar has room. (72px-tall nav) */
@media (min-width: 769px) and (max-width: 1200px) {
  .hamburger { display: flex; order: 3; margin-left: 0; }
  .topnav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; box-shadow: 0 14px 30px rgba(25,30,59,.12);
    padding: .5rem 0 1rem; z-index: 200; border-bottom: 1px solid rgba(255,255,255,.1);
    flex: none; overflow-y: auto; max-height: calc(100vh - 72px); margin-left: 0;
  }
  .topnav-links.open { display: flex; }
  .nav-group { position: static; width: 100%; display: block; }
  .nav-group-btn {
    height: auto; width: 100%; justify-content: space-between; cursor: default;
    font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; opacity: .55;
    padding: .7rem 1.8rem .25rem;
  }
  .nav-caret { display: none; }
  .nav-group-menu {
    position: static; display: flex !important; background: none;
    box-shadow: none; backdrop-filter: none; padding: 0; min-width: 0; border-radius: 0;
  }
  .nav-group-menu .tab {
    height: auto; padding: .7rem 1.8rem; font-size: 1rem; text-align: left;
    border-bottom: none; border-left: 3px solid transparent; width: 100%;
  }
  .auth-area { order: 2; margin-left: auto; margin-right: .4rem; }
}


/* Widget: per-category fields (Expedia-style morphing bar) */
.hw-row { flex-wrap: wrap; }
.hw-field-col { flex: none; display: flex; flex-direction: column; justify-content: center; gap: .1rem; border: 1px solid #767a8a; border-radius: 12px; padding: .5rem 1rem .55rem; min-width: 165px; transition: border-color .12s, box-shadow .12s; }
.hw-field-col:focus-within { border-color: #1668e3; box-shadow: 0 0 0 1px #1668e3; }
.hw-lbl { font-size: .68rem; font-weight: 600; color: #5f5f65; }
.hw-field-col input { border: none; outline: none; background: none; font-family: inherit; font-size: .98rem; color: #191e3b; padding: 0; }
.hw-grow { flex: 1 1 220px; }

/* Flights destination picker map */
#hw-map { display: none; height: 300px; border-radius: 16px; margin-top: 1rem; overflow: hidden; border: 1px solid #e0e0e5; }
#hw-map.show { display: block; }
.hw-map-hint { font-size: .8rem; color: #5f5f65; margin: .6rem 0 0; text-align: center; width: 100%; }

/* Photo cards (recommended stays / destinations) */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.photo-card { position: relative; display: block; text-align: left; padding: 0; background: #fff; border: 1px solid #e0e0e5; border-radius: 16px; overflow: hidden; cursor: pointer; font-family: inherit; box-shadow: 0 1px 4px rgba(25,30,59,.06); transition: transform .15s ease, box-shadow .15s ease; }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(25,30,59,.16); }
.pc-img { display: block; height: 150px; background-position: center; background-size: cover; background-color: #e8eaf1; }
.pc-heart { position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; border: none; border-radius: 50%; background: #fff; color: #c9cbd6; font-size: 1rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(25,30,59,.22); transition: color .12s, background .12s; }
.pc-heart:hover { color: #d63d54; }
.photo-card.liked .pc-heart { background: #d63d54; color: #fff; }
.pc-body { display: block; padding: .75rem .95rem .95rem; }
.pc-body strong { display: block; color: #191e3b; font-size: .98rem; margin-bottom: .1rem; }
.pc-body span { display: block; color: #5f5f65; font-size: .82rem; line-height: 1.35; }

/* Cruises page */
.cruise-form { display: flex; gap: .8rem; flex-wrap: wrap; background: #fff; border: 1px solid #e0e0e5; border-radius: 16px; padding: 1rem; text-align: left; }
.cruise-form input, .cruise-form select { flex: 1 1 220px; border: 1px solid #767a8a; border-radius: 12px; padding: .8rem 1rem; font-family: inherit; font-size: .98rem; color: #191e3b; background: #fff; outline: none; }
.cruise-form input:focus, .cruise-form select:focus { border-color: #1668e3; box-shadow: 0 0 0 1px #1668e3; }
.cruise-form .btn-primary { flex: none; padding: .8rem 2rem; }
.cruise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cruise-card { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; background: linear-gradient(150deg, #16204a, #0f1428); color: #fff; border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem; transition: transform .15s ease, box-shadow .15s ease; }
.cruise-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,20,40,.35); }
.cruise-card .cc-ico { font-size: 1.7rem; margin-bottom: .3rem; }
.cruise-card strong { font-size: 1.05rem; }
.cruise-card span { font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.cruise-card em { font-style: normal; font-size: .8rem; font-weight: 700; color: #a3c2f9; margin-top: .55rem; }

@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .cruise-grid { grid-template-columns: 1fr 1fr; }
  .hw-field-col { flex: 1 1 45%; min-width: 0; }
}


/* Cars form: keep time selects readable */
.car-form select { padding-right: 1.2rem; min-width: 0; }
@media (min-width: 721px) { .flt-search-panel .car-form { grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1.05fr 1.05fr; } }


/* Honest photo labeling on stays & cars cards */
.stay-photo-note { position: absolute; right: .5rem; bottom: .5rem; font-size: .58rem; font-weight: 600; letter-spacing: .03em; color: #fff; background: rgba(15,20,40,.55); border-radius: 999px; padding: .16rem .5rem; }


/* ===== Expedia-style results chrome (inner tabs only; landing page untouched) ===== */

/* Results sit in soft rounded containers; the cards inside stay white */
#abnb-results:not(:empty), #car-results:not(:empty), #flt-results:not(:empty), #trn-results:not(:empty),
#food-results:not(:empty), #gas-results:not(:empty), #wx-results:not(:empty), #exc-results:not(:empty),
#camp-results:not(:empty), #fish-results:not(:empty), #trail-results:not(:empty), #travel-result:not(:empty) {
  background: #f2f4f8;
  border-radius: 24px;
  padding: 1.15rem 1.15rem 1.3rem;
}

/* Search panels: separate labeled field boxes (Expedia results-bar style) */
.flt-search-panel { background: transparent; box-shadow: none; }
.flt-search-panel .flt-form { border: none; background: transparent; gap: .7rem; }
.flt-search-panel .flt-field {
  border: 1px solid #767a8a; border-radius: 12px; background: #fff;
  padding: .5rem 1rem; justify-content: center; min-height: 62px;
}
.flt-search-panel .flt-field:focus-within { border-color: #1668e3; box-shadow: 0 0 0 1px #1668e3; }
@media (min-width: 721px) { .flt-search-panel .flt-field { border-right: 1px solid #767a8a; } }

/* Bold navy results count line */
.flt-results-head { font-size: 1.02rem; font-weight: 800; color: #191e3b; }

/* Outlined pill chips, navy active state */
.food-chip { border-color: #c6c9d3; color: #43485e; }
.food-chip:hover { border-color: #191e3b; color: #191e3b; }
.food-chip.active { background: #191e3b; border-color: #191e3b; color: #fff; }
.flt-pill { border-color: #c6c9d3; color: #43485e; }
.flt-pill:hover { border-color: #191e3b; color: #191e3b; }
.flt-pill.active { background: #eef4ff; border-color: #1668e3; color: #14417e; }
.wx-fc-toggle button { border-color: #c6c9d3; color: #43485e; }
.wx-fc-toggle button.active { background: #191e3b; border-color: #191e3b; color: #fff; }
.wx-chip.active { outline: 2px solid #1668e3; }
.food-selects select, .trails-filters select, .trails-filters input {
  border: 1px solid #c6c9d3; border-radius: 999px; padding: .45rem .9rem; background: #fff; color: #43485e; font-weight: 600;
}


/* ===== Exact Expedia tab chrome: icon fields, round search, destination strips ===== */

/* Search bar sits at the very top of each tab, no big page titles */
.flt-search-card { max-width: none; margin: 0 0 1rem; text-align: left; }
.flt-search-card .flt-search-title, .flt-search-card .flt-search-sub { display: none; }
.wx-search { max-width: none; }
.wx-search-title, .wx-search-sub { display: none; }
.wx-search { padding: 0; border: none; background: transparent; box-shadow: none; }

/* Fields: icon | stacked label+value, like Expedia's Where to? boxes */
.flt-search-panel .flt-form { display: flex; flex-wrap: wrap; align-items: stretch; }
.flt-search-panel .flt-field {
  display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center;
  flex: 1 1 190px; min-height: 64px; padding: .55rem 1rem;
}
.flt-search-panel .flt-field::before { content: '📍'; grid-row: 1 / span 2; font-size: 1.2rem; }
.flt-search-panel .flt-field:has(input[type=date])::before { content: '📅'; }
.flt-search-panel .flt-field:has(select)::before { content: '👤'; }
.flt-search-panel .flt-field > label { grid-column: 2; }
.flt-search-panel .flt-field > input, .flt-search-panel .flt-field > select { grid-column: 2; }

/* Round blue search button, inline with the fields */
.xgo {
  width: 58px; height: 58px; flex: 0 0 58px; align-self: center;
  border-radius: 50%; background: #1668e3; color: #fff; border: none;
  font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0;
  box-shadow: 0 3px 10px rgba(22,104,227,.35); transition: background .15s;
}
.xgo:hover { background: #0d4eaf; }

/* Featured destinations section (gray container, category tabs, photo cards, Map pill) */
.xds { position: relative; background: #f2f4f8; border-radius: 24px; padding: 1.4rem 1.4rem 1.8rem; margin: 0 0 1.9rem; }
.xds-h { font-size: 1.4rem; font-weight: 800; color: #191e3b; margin: 0 0 .15rem; }
.xds-sub { font-size: .9rem; color: #5f5f65; margin: 0; }
.xds-cats { display: flex; gap: 1.5rem; border-bottom: 1px solid #dfe2ea; margin: .9rem 0 1.1rem; overflow-x: auto; }
.xds-cat { flex: none; padding: .55rem 0; font-family: inherit; font-size: .98rem; font-weight: 700; color: #43485e; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.xds-cat.active { color: #1668e3; border-bottom-color: #1668e3; }
.xds-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.xds-card { text-align: left; padding: 0; background: #fff; border: 1px solid #e0e0e5; border-radius: 16px; overflow: hidden; cursor: pointer; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.xds-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(25,30,59,.15); }
.xds-img { display: block; height: 160px; background-color: #dfe4f0; background-position: center; background-size: cover; }
.xds-body { display: block; padding: .75rem .95rem .95rem; }
.xds-body strong { display: block; color: #191e3b; font-size: 1rem; }
.xds-body span { display: block; color: #5f5f65; font-size: .82rem; margin-top: .1rem; }
.xds-map {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  display: inline-flex; align-items: center; gap: .45rem;
  background: #1668e3; color: #fff; border: none; border-radius: 999px; padding: .75rem 1.6rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(22,104,227,.4); transition: background .15s;
}
.xds-map:hover { background: #0d4eaf; }
@media (max-width: 720px) {
  .xds-row { grid-template-columns: 1fr 1fr; }
  .xds { padding: 1rem 1rem 1.6rem; }
}

.flt-search-panel .car-form .flt-field { flex-basis: 150px; }

.flt-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.flt-addtrip { flex: none; }
.stay-add.added { background: #e8f0fe; border-color: #c9d8f2; color: #14417e; cursor: default; }

/* compare fares on low-cost sites (Momondo/Skyscanner/Kayak/Kiwi deep links) */
.flt-compare-sites { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .9rem; padding: .55rem .8rem; background: #f6f8fd; border: 1px solid #e3e9f5; border-radius: 10px; font-size: .82rem; }
.flt-compare-label { color: #5f6575; font-weight: 600; }
.flt-compare-link { display: inline-block; padding: .3rem .7rem; background: #fff; border: 1px solid #d5d9e4; border-radius: 999px; color: #14417e; font-weight: 600; text-decoration: none; white-space: nowrap; }
.flt-compare-link:hover { border-color: #14417e; }
