/* Fixed Departure Package — search, results, details, traveler-details,
   review-payment, confirmation. Reuses var(--navy/--gold/--indigo/--slate)
   and the .btn/.bd-card vocabulary already established site-wide. */

.fdp-hero { background: linear-gradient(135deg, var(--navy), #1D3A8A); border-radius: 20px; padding: 40px 32px; color: #fff; margin-bottom: 28px; }
.fdp-hero h1 { font-family: 'Poppins', sans-serif; font-size: 30px; margin-bottom: 8px; }
.fdp-hero p { opacity: 0.85; font-size: 14px; max-width: 560px; }

.fdp-search-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 10px 34px rgba(11,30,61,0.14); margin-top: -46px; position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.fdp-field label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--slate-light); margin-bottom: 6px; }
.fdp-field select, .fdp-field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--navy); background: #F8FAFC; }
.fdp-field select:focus, .fdp-field input:focus { outline: none; border-color: var(--indigo); background: #fff; }
@media (max-width: 900px) { .fdp-search-card { grid-template-columns: 1fr 1fr; margin-top: 16px; } }

.fdp-card { display: flex; gap: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,0.06); margin-bottom: 18px; transition: transform 0.15s, box-shadow 0.15s; }
.fdp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11,30,61,0.12); }
.fdp-card-img { width: 260px; min-width: 260px; background: #EFF6FF center/cover no-repeat; position: relative; }
.fdp-card-img .fdp-duration-badge { position: absolute; top: 12px; left: 12px; background: rgba(11,30,61,0.85); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fdp-card-body { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; }
.fdp-card-title { font-family: 'Poppins', sans-serif; font-size: 17px; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.fdp-card-route { font-size: 12.5px; color: var(--slate); margin-bottom: 10px; }
.fdp-card-desc { font-size: 12.5px; color: var(--slate-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.fdp-card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.fdp-card-price-label { font-size: 10.5px; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.4px; }
.fdp-card-price { font-size: 22px; font-weight: 800; color: var(--navy); }
.fdp-card-price-sub { font-size: 11px; color: var(--slate-light); }
.fdp-seats-chip { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #D97706; }
@media (max-width: 700px) { .fdp-card { flex-direction: column; } .fdp-card-img { width: 100%; height: 180px; } }

.fdp-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: 16px; overflow: hidden; height: 360px; margin-bottom: 24px; }
.fdp-gallery img { width: 100%; height: 100%; object-fit: cover; }
.fdp-gallery .fdp-g-main { grid-row: 1 / 3; }
@media (max-width: 800px) { .fdp-gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; } .fdp-gallery img { height: 220px; } .fdp-gallery .fdp-g-main { grid-row: auto; } .fdp-gallery img:nth-child(n+3) { display: none; } }

.fdp-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.fdp-chip { display: inline-flex; align-items: center; gap: 6px; background: #EFF6FF; color: var(--navy); font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px; }

.fdp-day { border-left: 2.5px solid var(--indigo); padding: 2px 0 20px 20px; position: relative; }
.fdp-day::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--indigo); }
.fdp-day-num { font-size: 11px; font-weight: 800; color: var(--indigo); text-transform: uppercase; letter-spacing: 0.4px; }
.fdp-day-title { font-size: 15px; font-weight: 700; color: var(--navy); margin: 3px 0 6px; }
.fdp-day-desc { font-size: 13px; color: var(--slate); line-height: 1.6; }
.fdp-day-meta { margin-top: 8px; font-size: 11.5px; color: var(--slate-light); }
.fdp-meal-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #F0FDF4; color: #16A34A; font-weight: 700; font-size: 10.5px; margin-right: 4px; }

.fdp-hotel-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.fdp-hotel-row:last-child { border-bottom: none; }
.fdp-hotel-name { font-weight: 700; color: var(--navy); font-size: 13.5px; }
.fdp-hotel-city { font-size: 11.5px; color: var(--slate-light); }
.fdp-stars { color: var(--gold); font-size: 12px; }

.fdp-price-box { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 2px 14px rgba(0,0,0,0.06); position: sticky; top: 100px; }
.fdp-tier-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fdp-tier-row:last-of-type { border-bottom: none; }
.fdp-tier-row span:first-child { color: var(--slate); }
.fdp-tier-row span:last-child { font-weight: 700; color: var(--navy); }
.fdp-tier-row.unavailable span:last-child { color: var(--slate-light); font-weight: 500; }

.fdp-room-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fdp-room-row:last-child { border-bottom: none; }
.fdp-room-tag { display: inline-block; background: #EFF6FF; color: var(--indigo); font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-right: 8px; text-transform: uppercase; }

.fdp-addon-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fdp-addon-row:last-child { border-bottom: none; }
.fdp-addon-row input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--indigo); }
.fdp-addon-title { font-weight: 700; font-size: 13px; color: var(--navy); }
.fdp-addon-sub { font-size: 11.5px; color: var(--slate-light); margin-top: 2px; }
.fdp-addon-price { font-weight: 700; color: var(--navy); font-size: 13px; white-space: nowrap; }

.fdp-traveler-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 16px; }
.fdp-traveler-card h4 { font-size: 14px; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.fdp-traveler-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fdp-traveler-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .fdp-traveler-grid, .fdp-traveler-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.fdp-field-sm label { display: block; font-size: 10px; font-weight: 800; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 5px; }
.fdp-field-sm select, .fdp-field-sm input { width: 100%; padding: 10px 11px; border-radius: 9px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy); }
.fdp-field-sm select:focus, .fdp-field-sm input:focus { outline: none; border-color: var(--indigo); }
.fdp-field-sm.invalid input, .fdp-field-sm.invalid select { border-color: #DC2626; background: #FEF2F2; }
.fdp-field-sm.field-locked { position: relative; }
.fdp-field-sm.field-locked .field-lock-icon { top: 31px; right: 12px; }

.fdp-confirm-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.fdp-confirm-row input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--indigo); flex-shrink: 0; }
.fdp-confirm-row label { font-size: 12.5px; color: var(--slate); line-height: 1.5; }

.fdp-pending-banner { background: #FFFBEB; border: 1.5px solid #FDE68A; border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.fdp-pending-banner svg { flex-shrink: 0; color: #D97706; margin-top: 2px; }
.fdp-pending-banner strong { color: #92400E; display: block; margin-bottom: 4px; }
.fdp-pending-banner span { font-size: 12.5px; color: #92400E; line-height: 1.5; }

.fdp-success-icon { width: 76px; height: 76px; border-radius: 50%; background: #F0FDF4; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: #16A34A; }

/* Date-selection popup — reuses the site's .auth-overlay mechanics (same
   fixed-overlay + centered-card pattern), own class names so it can't
   collide with the auth modal if both ever somehow existed on one page. */
.fdp-date-overlay { display: none; position: fixed; inset: 0; z-index: 4000; background: rgba(11,30,61,0.55); align-items: center; justify-content: center; padding: 20px; }
.fdp-date-overlay.open { display: flex; }
.fdp-date-modal { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 84vh; overflow-y: auto; padding: 28px 26px 24px; animation: authPop 0.22s var(--ease); }
.fdp-date-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--mist); color: var(--slate); font-size: 20px; line-height: 1; cursor: pointer; }
.fdp-date-close:hover { background: var(--mist-deep); }
.fdp-date-modal-title { font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--navy); margin-bottom: 4px; padding-right: 30px; }
.fdp-date-modal-sub { font-size: 12.5px; color: var(--slate-light); margin-bottom: 18px; }
.fdp-date-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 9px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.fdp-date-option:hover { border-color: var(--indigo); background: #F8FAFF; }
.fdp-date-option-day { font-weight: 700; color: var(--navy); font-size: 13.5px; }
.fdp-date-option-seats { font-size: 11px; color: #D97706; font-weight: 700; margin-top: 2px; }
.fdp-date-option-price { font-weight: 800; color: var(--navy); font-size: 15px; }
.fdp-card-from { font-size: 10.5px; color: var(--slate-light); }

/* Gallery lightbox — click any photo to open, arrows to browse, click the
   image itself to toggle zoom. Same overlay mechanics as the date modal. */
.fdp-gallery img { cursor: pointer; }
.fdp-lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 5000; background: rgba(5,10,20,0.92); align-items: center; justify-content: center; }
.fdp-lightbox-overlay.open { display: flex; }
.fdp-lightbox-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fdp-lightbox-stage img { max-width: 88vw; max-height: 82vh; object-fit: contain; cursor: zoom-in; transition: transform 0.25s var(--ease); border-radius: 6px; }
.fdp-lightbox-stage img.zoomed { cursor: zoom-out; transform: scale(1.9); }
.fdp-lightbox-close { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.fdp-lightbox-close:hover { background: rgba(255,255,255,0.22); }
.fdp-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.fdp-lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.fdp-lightbox-prev { left: 18px; }
.fdp-lightbox-next { right: 18px; }
.fdp-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.75); font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px; }
@media (max-width: 640px) { .fdp-lightbox-nav { width: 38px; height: 38px; font-size: 18px; } .fdp-lightbox-prev { left: 8px; } .fdp-lightbox-next { right: 8px; } }
