/* Mahdia Tours — global overrides + image constraints (matches Travhub placeholder ratios) */

:root {
    --brand-primary: #1CA8CB;
    --brand-primary-hover: #158DAC;
    --brand-orange: #1CA8CB;
    --brand-blue: #1a4d8c;
    --brand-dark: #0e2a4f;
    --travhub-base: #1CA8CB;
}

body { font-family: 'Geologica', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Geologica', sans-serif; }

/* ---------- Preloader (inline-styled to avoid FOUC) ---------- */
.preloader {
    position: fixed; inset: 0;
    background: #0e2a4f;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .4s, visibility .4s;
}
.preloader img { width: 80px; height: 80px; object-fit: contain; }
body.loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Scroll-to-top ---------- */
.scroll-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: #1CA8CB; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(28,168,203,.4);
}
.scroll-to-top--active { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: #158DAC; color: #fff; }

/* =========================================================
   GLOBAL IMAGE CONSTRAINTS
   Ratios derived from actual Travhub placeholder dimensions
   ========================================================= */

/* Counter images — match Travhub placeholder dimensions + no white borders */
.counter-one__image__one { width: 337px; height: 442px; flex-shrink: 0; }
.counter-one__image__two { width: 166px; height: 237px; flex-shrink: 0; }
.counter-one__image__shape { width: 173px; height: 173px; }
.counter-one__image__one img,
.counter-one__image__two img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border: 4px solid #fff;
}
.counter-one__image__shape img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border: 4px solid #021713;
}
@media (max-width: 991px) {
  .counter-one__image__one,
  .counter-one__image__two,
  .counter-one__image__shape { width: 100%; max-width: 337px; height: auto; aspect-ratio: 337 / 442; }
  .counter-one__image__two { aspect-ratio: 166 / 237; }
  .counter-one__image__shape { aspect-ratio: 1; }
}

/* Tours cards — fixed height for image so all cards in a row are identical */
.row:has(.tours-one__item) > [class*="col-"] { display: flex; }
.tours-one__item { display: flex; flex-direction: column; height: 100%; width: 100%; }
.tours-one__item > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; flex-shrink: 0; }
.tours-one__item__content { flex: 1 1 auto; }

/* Counter funfact circle — match brand color (overrides hardcoded #1BBC9B in travhub.css) */
.counter-one__funfact__item-two { background-color: #1CA8CB !important; }

/* Gallery — Travhub placeholder aspect ratios per col + card position.
   Row 1: col-3(1) col-2(2 stacked) col-3(1) col-2(2 stacked) col-3(1)
   Row 2: col-3(2 stacked) col-2(1) col-4(1) col-3(1) */
.gallery-one__card {
    position: relative; overflow: hidden;
    border-radius: 12px; margin-bottom: 0;
}
.gallery-one__card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
/* col-lg-3 (tall portrait 253x405) */
.gallery-one .col-lg-3 > .gallery-one__card:first-child { aspect-ratio: 253 / 405; }
/* col-lg-3 with 2 cards: first 253x187 (wide), second 253x184 (wide) */
.gallery-one .col-lg-3 > .gallery-one__card:nth-child(1):nth-last-child(2) { aspect-ratio: 253 / 187; }
.gallery-one .col-lg-3 > .gallery-one__card:nth-child(2):nth-last-child(1) { aspect-ratio: 253 / 184; }
/* col-lg-2 with 2 stacked cards: both 232x191 landscape, same height */
.gallery-one .col-lg-2 > .gallery-one__card:nth-child(1):nth-last-child(2),
.gallery-one .col-lg-2 > .gallery-one__card:nth-child(2):nth-last-child(1) { aspect-ratio: 232 / 191; }
/* col-lg-2 with 1 card only: 232x394 portrait */
.gallery-one .col-lg-2 > .gallery-one__card:only-child { aspect-ratio: 232 / 394; }
/* col-lg-4 (509x394 wide) */
.gallery-one .col-lg-4 > .gallery-one__card { aspect-ratio: 509 / 394; }

/* Why-choose images — match Travhub's exact placeholder dimensions */
.why-choose-one__image { width: 438px; height: 544px; }
.why-choose-one__image > img { width: 438px; height: 544px; object-fit: cover; display: block; }
.why-choose-one__image__two { width: 153px; height: 208px; }
.why-choose-one__image__two img { width: 153px; height: 208px; object-fit: cover; display: block; }

/* Why-choose boxes — icon size for our <img> content (Travhub uses <i>) */
.why-choose-one__box__icon img { width: 60px; height: 60px; object-fit: contain; }

/* Testimonials images — force real photos to match original placeholder dimensions
   test-1-1=160x227, test-1-2=160x227, test-1-3=160x227, test-1-4=150x151, test-1-5=151x151 */
.testimonials-one__image__one img { width: 160px; height: 227px; object-fit: cover; display: block; }
.testimonials-one__image__two > img:nth-child(1) { width: 160px; height: 227px; object-fit: cover; display: block; }
.testimonials-one__image__two > img:nth-child(2),
.testimonials-one__image__two > img:nth-child(3) { width: 150px; height: 151px; object-fit: cover; display: block; }
.testimonials-one__image__three img { width: 160px; height: 227px; object-fit: cover; display: block; }

/* Testimonials bg — match hero shape-one behaviour (contain instead of cover) */
.testimonials-one__bg { background-size: contain !important; }

/* Gallery */
.gallery-one .row { row-gap: 24px !important; --bs-gutter-y: 0 !important; }
.gallery-one .row > * { margin-top: 0 !important; }
.gallery-one__card { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 24px; }
.gallery-one .col-lg-2 > .gallery-one__card:last-child,
.gallery-one .col-lg-3 > .gallery-one__card:last-child { margin-bottom: 0; }
.gallery-one__card > img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-one__card__hover {
    position: absolute; inset: 0;
    background: rgba(14,42,79,0); transition: background .3s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-one__card:hover .gallery-one__card__hover { background: rgba(14,42,79,.55); }
.gallery-one__card__hover a { color: #fff; font-size: 28px; opacity: 0; transition: opacity .3s; }
.gallery-one__card:hover .gallery-one__card__hover a { opacity: 1; }

/* Topbar social (no Travhub CSS for these classes) */
.topbar-one__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-one__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-one__social { display: inline-flex; align-items: center; gap: 14px; }
.topbar-one__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  color: #fff;
  font-size: 14px;
  border-radius: 50%;
  transition: color .2s;
}
.topbar-one__social a:hover { color: var(--brand-orange); }

/* Hero — Travhub's exact CSS structure (positioning + media queries).
   Real photo sizes don't match the placeholder PNG dimensions, so the
   ONLY Mahdia-specific addition is the explicit width/height on the
   4 image divs, sized to the placeholder aspect ratios so the original
   border-radius (pill / circle) still produces the same visual shape. */
.hero-one__image-one {
  position: absolute;
  overflow: hidden;
  top: 40px;
  left: 80px;
  width: 171px;
  height: 243px;
}
@media (max-width: 1700px) {
  .hero-one__image-one { left: 40px; }
}
@media (max-width: 1350px) {
  .hero-one__image-one { display: none; }
}
.hero-one__image-one img {
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 85.5px;
}
.hero-one__image-two {
  position: absolute;
  overflow: hidden;
  bottom: 80px;
  left: 80px;
  width: 161px;
  height: 161px;
}
@media (max-width: 1700px) {
  .hero-one__image-two { left: 40px; }
}
@media (max-width: 1350px) {
  .hero-one__image-two { display: none; }
}
.hero-one__image-two img {
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}
.hero-one__image-three {
  position: absolute;
  overflow: hidden;
  top: 130px;
  right: 80px;
  width: 138px;
  height: 221px;
}
@media (max-width: 1700px) {
  .hero-one__image-three { right: 40px; }
}
@media (max-width: 1350px) {
  .hero-one__image-three { display: none; }
}
.hero-one__image-three img {
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 85.5px;
}
.hero-one__image-four {
  position: absolute;
  overflow: hidden;
  right: 80px;
  bottom: 100px;
  width: 142px;
  height: 142px;
}
@media (max-width: 1700px) {
  .hero-one__image-four { right: 40px; }
}
@media (max-width: 1350px) {
  .hero-one__image-four { display: none; }
}
.hero-one__image-four img {
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}
.hero-one__image img { width: 100%; height: 100%; display: block; }
.hero-one__shape-two {
  position: absolute;
  top: 70px;
  left: 40px;
  z-index: 1;
}
.hero-one__shape-two img { width: 160px; }
.hero-one__shape-four {
  position: absolute;
  top: 35%;
  right: 30px;
  z-index: 1;
}
.hero-one__shape-four img {
  animation: movebounce2 3s linear infinite;
  width: 100px;
}
@media (max-width: 991px) {
  .hero-one__shape-four { display: none; }
}
.hero-one__title {
  font-size: 75px;
  line-height: 1.1;
  margin-bottom: 24px;
}
@media (max-width: 1199px) { .hero-one__title { font-size: 60px; } }
@media (max-width: 767px) { .hero-one__title { font-size: 44px; } }

/* Activity show detail */
.tours-details__image img { width: 100%; aspect-ratio: 800 / 500; object-fit: cover; border-radius: 12px; display: block; }
.tours-details__gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.tours-details__map iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.contact-map iframe { width: 100%; aspect-ratio: 16 / 7; border: 0; }

/* Activity show — Inclus / Non inclus / Points forts — circular icon with background */
.tours-details__list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: #2A2A2A; }
.tours-details__list li i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px;
    border-radius: 50%; color: #fff; font-size: 13px; line-height: 1;
    background-color: #1CA8CB;
}
.tours-details__list--notincluded li i { background-color: #E63946 !important; color: #fff !important; }
.tours-details__list--notincluded li { color: #555; }
.tours-details__list--highlights li i { background-color: #FFB400 !important; color: #fff !important; }

/* Activity show — gallery masonry grid (3 columns, alternating stacked/1) */
.tours-details__gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    row-gap: 14px !important;
    column-gap: 14px !important;
    --bs-gutter-x: 14px !important;
    --bs-gutter-y: 14px !important;
    margin: 0 !important;
}
.tours-details__gallery-grid > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0 !important;
}
.tours-details__gallery-grid .gallery-one__card { margin: 0 0 14px 0 !important; height: auto !important; }
.tours-details__gallery-grid .col-lg-4 > .gallery-one__card:last-child { margin-bottom: 0 !important; }
.tours-details__gallery-grid .gallery-one__card > a { display: block !important; height: 100% !important; }
.tours-details__gallery-grid .gallery-one__card img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
/* Stacked column: 2 cards. Use 1/1 (square) so the total column height ≈ 2 + gap */
.tours-details__gallery-grid .col-lg-4 > .gallery-one__card:nth-child(1):nth-last-child(2),
.tours-details__gallery-grid .col-lg-4 > .gallery-one__card:nth-child(2):nth-last-child(1) { aspect-ratio: 1 / 1; }
/* Single column: 1 card. Use 1/2 portrait (slightly taller) to match stacked column total height + gap */
.tours-details__gallery-grid .col-lg-4 > .gallery-one__card:only-child { aspect-ratio: 1 / 2.04; }

/* Activity show — always-sticky booking sidebar.
   CRITICAL: Travhub's .page-wrapper has overflow:hidden which breaks position:sticky.
   The wrapper fills the col-lg-4 (whose min-height we set via JS) and is sticky itself. */
.page-wrapper { overflow: visible !important; }
html, body { overflow-x: hidden !important; }
body { overflow: visible !important; }
.tours-details, .tours-details > .container, .tours-details > .container > .row { overflow: visible !important; }
.tours-details .row > .col-lg-4 { position: relative !important; display: block !important; overflow: visible !important; }
.tours-details__booking-sticky-wrap {
    position: -webkit-sticky !important; position: sticky !important;
    top: 90px !important; z-index: 5 !important;
    display: block !important; width: 100% !important;
}
@media (max-width: 991px) {
    .tours-details__booking-sticky-wrap { position: relative !important; top: auto !important; }
}

/* Activity show — proper green WhatsApp button inside booking */
.tours-details__whatsapp-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 16px; padding: 14px 18px;
    background: #25D366; color: #fff !important;
    border-radius: 8px; text-decoration: none !important;
    font-weight: 600; font-size: 15px;
    box-shadow: 0 4px 14px rgba(37,211,102,.35);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.tours-details__whatsapp-btn:hover { background: #1ebe5b; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,211,102,.5); }
.tours-details__whatsapp-btn i { font-size: 20px; }

/* Related tours — no top padding (Travhub adds too much vertical space) */
.tours-one--related { padding-top: 0 !important; margin-top: 0 !important; }

/* Floating WhatsApp button (matches Djerba Tours style) */
.floating-whatsapp {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9999; width: 56px; height: 56px;
    border-radius: 50%; background: #25D366; color: #fff !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 30px; text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(37,211,102,.45);
    transition: transform .2s, box-shadow .2s;
    animation: whatsapp-pulse 2.2s ease-in-out infinite;
}
.floating-whatsapp:hover { transform: scale(1.08); color: #fff !important; box-shadow: 0 8px 22px rgba(37,211,102,.6); }
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
    50% { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* Tour card hover overlays */
.tours-one__item__offer {
    position: absolute; top: 16px; left: 16px;
    background: var(--brand-orange); color: #fff;
    padding: 6px 14px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
}
.tours-one__item__wishlist {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-orange);
    z-index: 3;
}
.tours-one__item__btn {
    position: absolute; top: 70px; right: 16px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 3;
}
.tours-one__item__btn a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-orange);
}

/* Reservation form tweaks */
.reservation-form {
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
}
.reservation-form h4 { color: #0e2a4f; font-weight: 600; }
.reservation-form h6 { color: #0e2a4f; font-weight: 600; }

.step-indicator { display: flex; align-items: stretch; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 8px; }
.step-indicator .step {
    flex: 1 1 calc(25% - 8px); text-align: center; padding: 16px 12px;
    background: #F4F7FA; border: 2px solid #E5E7EB; border-radius: 10px;
    color: #6B7785; font-weight: 500;
    transition: all .25s ease;
    min-width: 110px;
}
.step-indicator .step.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); box-shadow: 0 6px 18px rgba(28,168,203,.28); transform: translateY(-2px); }
.step-indicator .step.completed { background: #158DAC; color: #fff; border-color: #158DAC; }
.step-indicator .step-num { font-weight: 700; font-size: 1.15rem; line-height: 1; margin-bottom: 4px; }
.step-indicator .step-label { font-size: .82rem; line-height: 1.2; word-break: break-word; }
.step-indicator .step-line { display: none; }

.form-step { display: none; animation: fadeIn .35s ease; padding: 4px 0; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand-primary); color: #fff;
    font-weight: 700; font-size: 15px; margin-right: 10px;
    vertical-align: middle;
}

.activity-option, .excursion-radio, .time-slot-radio {
    cursor: pointer; transition: all .2s;
    display: block; position: relative;
    border: 2px solid #E5E7EB; border-radius: 12px;
    padding: 16px; background: #fff; height: 100%; margin: 0;
}
.activity-option:hover, .excursion-radio:hover, .time-slot-radio:hover { border-color: var(--brand-primary) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.activity-option.selected, .excursion-radio.selected, .time-slot-radio.selected {
    border-color: var(--brand-primary) !important;
    background: rgba(28,168,203,.04);
    box-shadow: 0 8px 22px rgba(28,168,203,.18);
}
.activity-option input[type=radio], .excursion-radio input[type=radio], .time-slot-radio input[type=radio] {
    position: absolute; opacity: 0; pointer-events: none;
}
.activity-option .badge.bg-success {
    background: var(--brand-primary) !important; color: #fff;
    padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 500;
}
.activity-option .text-success { color: var(--brand-primary) !important; }
.activity-option .text-decoration-line-through { color: #B0B7C0 !important; }

.activity-img-wrap {
    width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
    border-radius: 10px; margin-bottom: 14px; background: #f5f5f5;
}
.activity-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-info h6 { font-weight: 600; color: #0e2a4f; margin-bottom: 6px; font-size: 1.05rem; }
.activity-info .badge { font-size: 11px; font-weight: 500; }

.selected-activity-card {
    background: #EAF6FA; border: 1px solid #C7E5EE; border-radius: 10px;
}

.excursion-type-selector h6, .time-slot-selector h6, .participant-fields h6, .machine-fields h6 {
    color: #0e2a4f; font-size: 1rem; font-weight: 600; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.excursion-type-selector h6 i, .time-slot-selector h6 i { color: var(--brand-primary); }

.excursion-radio, .time-slot-radio {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; margin-bottom: 10px;
}
.excursion-radio .ex-check, .time-slot-radio .ex-check {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #D8DEE4; flex-shrink: 0; margin-top: 2px;
    transition: all .2s; position: relative;
}
.excursion-radio.selected .ex-check, .time-slot-radio.selected .ex-check {
    border-color: var(--brand-primary); background: var(--brand-primary);
}
.excursion-radio.selected .ex-check::after, .time-slot-radio.selected .ex-check::after {
    content: ''; position: absolute; top: 4px; left: 4px;
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.ex-label { font-weight: 600; color: #0e2a4f; display: block; }
.ex-desc { font-size: 13px; color: #6B7785; display: block; margin-top: 2px; }

.form-control, .form-select {
    border: 1.5px solid #D8DEE4; border-radius: 8px;
    padding: 12px 16px; height: 48px; font-size: .95rem;
    transition: border-color .2s, box-shadow .2s; width: 100%;
    background: #fff; color: #2A2A2A;
}
.form-control:hover, .form-select:hover { border-color: #B0B7C0; }
.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(28,168,203,.15); outline: 0;
}
textarea.form-control { height: auto; min-height: 120px; resize: vertical; }
.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,53,69,.15); }
.invalid-feedback { color: #dc3545; font-size: 13px; margin-top: 4px; }
.form-text { color: #6B7785; font-size: 13px; margin-top: 4px; }

.form-label { font-weight: 500; color: #2A2A2A; margin-bottom: 6px; display: block; }
.form-label .text-danger, .form-label span[style*="red"] { color: #dc3545 !important; }

.alert-danger { border-radius: 10px; border: 0; padding: 14px 18px; }

.confirmation-card {
    background: #EAF6FA; border-radius: 12px; padding: 24px;
    border: 1px solid #C7E5EE;
}
.confirmation-card table { background: #fff; border-radius: 8px; overflow: hidden; margin: 0; width: 100%; }
.confirmation-card table th, .confirmation-card table td { padding: 10px 14px; border-color: #C7E5EE; }

.btn-brand {
    background-color: var(--brand-primary); border-color: var(--brand-primary);
    color: #fff; padding: 12px 28px; border-radius: 8px;
    font-weight: 600; border: 1px solid transparent;
    transition: all .2s; display: inline-block; text-decoration: none;
    cursor: pointer; font-size: 15px;
}
.btn-brand:hover { background-color: #158DAC; border-color: #158DAC; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(28,168,203,.3); }
.btn-brand.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-brand:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-outline-secondary {
    background: #fff; color: #6B7785; border: 1.5px solid #D8DEE4;
    padding: 12px 24px; border-radius: 8px; font-weight: 500;
    transition: all .2s; cursor: pointer; font-size: 15px;
}
.btn-outline-secondary:hover { background: #f5f5f5; color: #2A2A2A; border-color: #B0B7C0; }

.btn-next-step, .btn-prev-step { box-shadow: none; }

.field-error { color: #dc3545; font-size: 13px; margin-top: 4px; display: none; }
.field-error.show { display: block; }

/* Form row spacing */
.reservation-form .row.g-3 { margin-bottom: 0; }
.reservation-form .row.g-3.mb-3 { margin-bottom: 1rem !important; }
.reservation-form .row.g-3.mb-4 { margin-bottom: 1.5rem !important; }
.reservation-form .d-flex.justify-content-end,
.reservation-form .d-flex.justify-content-between { margin-top: 28px; padding-top: 20px; border-top: 1px solid #E5E7EB; }

/* Make form row cards have equal heights */
.reservation-form .row.g-3 > [class*="col-"] { display: flex; }
.reservation-form .row.g-3 > [class*="col-"] > .activity-option,
.reservation-form .row.g-3 > [class*="col-"] > .excursion-radio,
.reservation-form .row.g-3 > [class*="col-"] > .time-slot-radio { width: 100%; }

/* Flatpickr overrides to match brand */
.flatpickr-calendar { border-radius: 10px; box-shadow: 0 12px 36px rgba(0,0,0,.18); border: 0; font-family: inherit; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--brand-primary) !important; border-color: var(--brand-primary) !important; }
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: #158DAC !important; border-color: #158DAC !important; }
.flatpickr-day.inRange { background: rgba(28,168,203,.15) !important; box-shadow: -5px 0 0 rgba(28,168,203,.15), 5px 0 0 rgba(28,168,203,.15) !important; }
.flatpickr-day:hover { background: #EAF6FA; }
.flatpickr-day.today { border-color: var(--brand-primary); }
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month,
.flatpickr-current-month input.cur-year { color: #0e2a4f; }
span.flatpickr-weekday, .flatpickr-current-month .flatpickr-monthDropdown-months { color: #2A2A2A; font-weight: 500; }
.flatpickr-time input:hover, .flatpickr-time input:focus { background: #EAF6FA; }
.flatpickr-time input { color: #0e2a4f; }
.numInputWrapper:hover, .numInputWrapper:focus { background: #EAF6FA; }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: var(--brand-primary); }
.flatpickr-am-pm { color: #0e2a4f; }

/* Responsive reservation form */
@media (max-width: 575px) {
    .step-indicator { gap: 6px; }
    .step-indicator .step { flex: 1 1 calc(50% - 6px); padding: 12px 6px; }
    .step-indicator .step-label { font-size: .72rem; }
    .btn-brand.btn-lg { padding: 12px 20px; font-size: 14px; width: 100%; }
    .activity-option { padding: 12px; }
}

/* =========================================================
   GLOBAL LIGHTBOX (Djerba-style)
   ========================================================= */
.touria-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, background-color .35s ease, visibility 0s linear .35s;
    backdrop-filter: blur(0px);
}
.touria-lightbox.open {
    opacity: 1; visibility: visible;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(8px);
    transition: opacity .35s ease, background-color .35s ease, backdrop-filter .35s ease, visibility 0s linear 0s;
}
.touria-lightbox .lightbox-content {
    position: relative; max-width: 90vw; max-height: 90vh;
    display: flex; align-items: center; justify-content: center;
    transform: scale(.85);
    opacity: 0;
    transition: transform .4s cubic-bezier(.2,.9,.3,1.2), opacity .35s ease;
}
.touria-lightbox.open .lightbox-content { transform: scale(1); opacity: 1; }
.touria-lightbox .lightbox-content img,
.touria-lightbox .lightbox-content video {
    max-width: 90vw; max-height: 90vh;
    width: auto; height: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.touria-lightbox .lightbox-content img.portrait,
.touria-lightbox .lightbox-content video.portrait {
    max-height: 90vh; width: auto; max-width: 90vw;
}
.touria-lightbox .lightbox-content img.landscape,
.touria-lightbox .lightbox-content video.landscape {
    max-width: 90vw; height: auto;
}
.touria-lightbox .lightbox-content iframe { width: 80vw; height: 45vw; max-height: 80vh; max-width: 90vw; display: block; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.touria-lightbox .lightbox-close {
    position: fixed; top: 20px; right: 24px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; font-size: 24px; font-weight: 300;
    cursor: pointer;
    width: 48px; height: 48px;
    border-radius: 50%;
    line-height: 1;
    z-index: 100001;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
    transition: background .25s ease, transform .25s ease, opacity .25s ease;
    opacity: 0;
}
.touria-lightbox.open .lightbox-close { opacity: 1; }
.touria-lightbox .lightbox-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg) scale(1.05); }
.touria-lightbox .lightbox-caption { display: none; }

/* Lightbox nav arrows */
.touria-lightbox .lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; font-size: 28px;
    cursor: pointer;
    width: 56px; height: 56px;
    border-radius: 50%;
    line-height: 1;
    z-index: 100001;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
    transition: background .25s ease, transform .25s ease, opacity .25s ease;
    opacity: 0;
}
.touria-lightbox.open .lightbox-nav { opacity: .9; }
.touria-lightbox .lightbox-nav:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.08); }
.touria-lightbox .lightbox-prev { left: 20px; }
.touria-lightbox .lightbox-next { right: 20px; }
.touria-lightbox .lightbox-nav:disabled { opacity: .25; cursor: default; }
.touria-lightbox .lightbox-body { transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.3,1.2); }
.touria-lightbox .lightbox-body.is-switching-out-left { opacity: 0; transform: translateX(-30px); }
.touria-lightbox .lightbox-body.is-switching-out-right { opacity: 0; transform: translateX(30px); }
.touria-lightbox .lightbox-counter {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.5); color: #fff;
    padding: 6px 14px; border-radius: 999px;
    font-size: 14px; font-weight: 500;
    z-index: 100001; opacity: 0;
    transition: opacity .25s ease;
}
.touria-lightbox.open .lightbox-counter { opacity: 1; }
@media (max-width: 767.98px) {
    .touria-lightbox .lightbox-nav { width: 44px; height: 44px; font-size: 22px; }
    .touria-lightbox .lightbox-prev { left: 8px; }
    .touria-lightbox .lightbox-next { right: 8px; }
}

/* Utility: hide horizontal overflow while sticky header is transforming */
body { overflow-x: hidden; }

/* Header — gap between last menu item and Réserver maintenant CTA */
.main-header__btn { margin-left: 24px !important; }
@media (max-width: 767px) { .main-header__btn { margin-left: 0 !important; } }

/* Dim all elements using the group-1-1-modified.png image */
.hero-one__shape-one[style*="group-1-1-modified"],
.page-header__bg[style*="group-1-1-modified"],
.testimonials-one__bg[style*="group-1-1-modified"] { opacity: 0.5 !important; }

/* Contact page — replace Travhub leaf-mask + decorative PNGs with our real Mahdia photos.
   Main photo: IMG_5494 (no SVG mask), decorative floating thumbs sized like the originals. */
.contact-page__image__image__item {
    -webkit-mask: none !important;
            mask: none !important;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.contact-page__image__image__item img {
    display: block;
    width: 460px;
    height: 460px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 18px;
}
.contact-page__image__image__item-two {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    border: 6px solid #fff;
}
.contact-page__image__image__item-two img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    display: block;
}
.contact-page__image__image__item-three {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    border: 5px solid #fff;
}
.contact-page__image__image__item-three img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    display: block;
}
.contact-page__image__image__item-four {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    border: 5px solid #fff;
}
.contact-page__image__image__item-four img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
}
@media (max-width: 575px) {
    .contact-page__image__image__item img { width: 100%; height: 320px; }
    .contact-page__image__image__item-two img,
    .contact-page__image__image__item-three img,
    .contact-page__image__image__item-four img { display: none; }
}