/* =========================================================
   EXPLORE & BOOK — extends style.css tokens (navy/gold/paper)
   ========================================================= */

/* Explore hero */
.explore-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 46px;
  text-align: center;
}
.explore-hero .eyebrow { justify-content: center; }
.explore-hero h1 { color: var(--white); font-size: clamp(30px, 4.4vw, 44px); margin: 16px 0 10px; }
.explore-hero p { color: rgba(255,255,255,0.65); max-width: 52ch; margin: 0 auto 30px; }

.explore-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.explore-search input {
  width: 100%;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}

.region-filter { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.region-btn {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-weight: 600;
}
.region-btn.active, .region-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* Destination grid */
.dest-section { padding: 60px 0 90px; }
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.dest-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11,37,69,0.1); border-color: var(--gold); }
.dest-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dest-code { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; }
.dest-region-tag { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); background: var(--paper); padding: 3px 9px; border-radius: 3px; }
.dest-card h3 { font-size: 20px; margin-bottom: 6px; }
.dest-card p { font-size: 13.5px; margin-bottom: 20px; min-height: 38px; }
.dest-card-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-label); font-size: 11.5px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 14px; }
.dest-explore-link { color: var(--gold); font-weight: 700; }

.dest-no-results { text-align: center; padding: 50px 20px; color: var(--slate); }
.dest-no-results h3 { margin-bottom: 10px; }

/* Destination modal (hotel list) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,37,69,0.55);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.dest-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(720px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dest-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.dest-modal-wide { width: min(920px, 94vw); }

.dest-modal-toolbar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 16px 30px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 2;
}
.filter-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--white); color: var(--slate);
  cursor: pointer; font-weight: 600; transition: all 0.15s ease;
}
.filter-chip.active, .filter-chip:hover { border-color: var(--gold); background: var(--paper); color: var(--navy); }
.toolbar-right { display: flex; align-items: center; gap: 14px; }
.result-count { font-family: var(--font-label); font-size: 12px; color: var(--slate); white-space: nowrap; }
.sort-select {
  font-family: var(--font-label); font-size: 12px; padding: 8px 12px; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy); font-weight: 600;
}

.dest-modal-split { display: grid; grid-template-columns: 190px 1fr; }
.amenity-filter-sidebar { border-right: 1px solid var(--line); padding: 20px 18px; }
.amenity-filter-sidebar h5 { font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 700; }
.amenity-filter-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.amenity-filter-item input { accent-color: var(--gold); }
.amenity-filter-item span.count { font-family: var(--font-label); font-size: 10.5px; color: var(--slate); }
.amenity-filter-item.disabled { opacity: 0.35; pointer-events: none; }
.clear-filters-btn {
  margin-top: 14px; background: none; border: none; font-family: var(--font-label); font-size: 11px;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; font-weight: 700; padding: 0;
}
.clear-filters-btn:hover { text-decoration: underline; }

.no-hotel-match { text-align: center; padding: 50px 20px; color: var(--slate); font-size: 14px; }

@media (max-width: 720px) {
  .dest-modal-split { grid-template-columns: 1fr; }
  .amenity-filter-sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .dest-modal-toolbar { padding: 14px 18px; }
}

.dest-modal-head { padding: 26px 30px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); display: flex; justify-content: space-between; align-items: flex-start; }
.dest-modal-head h2 { font-size: 26px; }
.dest-modal-head p { font-size: 13.5px; margin-top: 6px; }
.modal-close { background: var(--paper); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--slate); flex-shrink: 0; }
.modal-close:hover { color: var(--red); }

.dest-modal-body { padding: 22px 30px 30px; display: flex; flex-direction: column; gap: 16px; }

/* Hotel card */
.hotel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.hotel-thumb { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.hotel-card-main { flex: 1; }
.hotel-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.hotel-card-head h4 { font-family: var(--font-display); font-size: 16.5px; color: var(--navy); font-weight: 600; }
.hotel-category { font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper); color: var(--gold); border: 1px solid var(--gold); padding: 2px 8px; border-radius: 3px; font-weight: 700; }
.hotel-location { font-size: 13px; color: var(--slate); margin-bottom: 10px; }
.hotel-amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.hotel-amenities span { font-family: var(--font-label); font-size: 10px; color: var(--slate); background: var(--paper); padding: 3px 9px; border-radius: 20px; }

.hotel-card-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hotel-price { font-family: var(--font-display); font-size: 18px; color: var(--navy); font-weight: 600; }
.hotel-price span { display: block; font-family: var(--font-label); font-size: 9.5px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.add-trip-btn { padding: 10px 18px; font-size: 12px; white-space: nowrap; }
.add-trip-btn:disabled { cursor: default; opacity: 0.85; }
.add-trip-btn:disabled:hover { transform: none; }

/* Cart toggle button (fixed) */
.cart-toggle {
  position: fixed;
  bottom: 26px;
  right: 98px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  z-index: 200;
  font-size: 22px;
  transition: transform 0.15s ease;
}
.cart-toggle:hover { transform: scale(1.08); }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--white);
  z-index: 301;
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.cart-drawer.open { right: 0; }
.cart-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-head h3 { font-size: 19px; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { text-align: center; color: var(--slate); font-size: 14px; padding: 60px 20px; }

.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item-info { display: flex; flex-direction: column; gap: 3px; }
.cart-item-info strong { font-size: 14px; color: var(--navy); }
.cart-item-info span { font-family: var(--font-label); font-size: 11px; color: var(--slate); }
.cart-item-right { display: flex; align-items: center; gap: 12px; }
.cart-item-price { font-family: var(--font-label); font-size: 12.5px; color: var(--navy); font-weight: 700; text-align: right; }
.cart-item-price small { display: block; font-weight: 400; color: var(--slate); font-size: 9.5px; }
.cart-item-remove { background: none; border: none; color: var(--slate); cursor: pointer; font-size: 13px; }
.cart-item-remove:hover { color: var(--red); }

.cart-total-row { display: flex; justify-content: space-between; padding: 14px 0; font-family: var(--font-label); font-size: 13px; color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-foot p.note { font-size: 12px; color: var(--slate); margin-bottom: 14px; }
.checkout-form .field { margin-bottom: 12px; }
.checkout-form input { width: 100%; }
.checkout-form .btn { width: 100%; justify-content: center; }

@media (max-width: 980px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .dest-grid { grid-template-columns: 1fr; }
  .hotel-card { flex-direction: column; align-items: stretch; }
  .hotel-card-side { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .cart-toggle { right: 26px; bottom: 96px; }
}
