/* Lattitude Trips - front styles */
.lst-trip { max-width: 1140px; margin: 0 auto; padding: 20px; }

/*
 * Anti-chevauchement header transparent (ex. thème Gavias / GoWild avec
 * "header-position-absolute" ou similaire). Ce header étant sorti du flux
 * normal de la page (position absolue/fixe), on réserve un espace en haut
 * de la fiche voyage pour que le diaporama ne passe pas en dessous.
 * Valeur de secours ci-dessous (avant que le script front.js ne calcule et
 * applique la hauteur exacte du header, ce qui affine ensuite ce réglage).
 */
body:has( header.header-position-absolute ) .lst-trip > .lst-hero-gallery,
body:has( header.header-position-absolute ) .lst-trip > .lst-hero-single,
body:has( header[style*="position: absolute"] ) .lst-trip > .lst-hero-gallery,
body:has( header[style*="position: absolute"] ) .lst-trip > .lst-hero-single {
	margin-top: 160px;
}
/* Le header mobile est généralement bien plus compact que le header desktop
   (une seule ligne, sans la barre de contact) : on réduit donc la valeur de
   secours sur petit écran, avant que front.js n'applique la mesure exacte. */
@media (max-width: 640px) {
	body:has( header.header-position-absolute ) .lst-trip > .lst-hero-gallery,
	body:has( header.header-position-absolute ) .lst-trip > .lst-hero-single,
	body:has( header[style*="position: absolute"] ) .lst-trip > .lst-hero-gallery,
	body:has( header[style*="position: absolute"] ) .lst-trip > .lst-hero-single {
		margin-top: 90px;
	}
}

/* Hero gallery */
.lst-hero-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-bottom: 24px; align-items: stretch; }
.lst-hero-main .lst-zoomable { aspect-ratio: 4 / 3; height: auto; }
.lst-hero-main img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.lst-hero-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 100%; }
.lst-hero-thumbs .lst-zoomable { height: 100%; }
.lst-hero-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.lst-hero-single img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }

/* Galerie sur mobile : photo principale pleine largeur en haut, puis
   vignettes en grille 2x2 bien carrées en dessous (au lieu d'une colonne
   étroite et étirée en hauteur). */
@media (max-width: 640px) {
	.lst-hero-gallery { grid-template-columns: 1fr; gap: 6px; }
	.lst-hero-main .lst-zoomable { aspect-ratio: 16 / 10; }
	.lst-hero-thumbs { grid-template-columns: repeat( 2, 1fr ); grid-template-rows: none; height: auto; gap: 6px; }
	.lst-hero-thumbs .lst-zoomable { aspect-ratio: 1 / 1; height: auto; }
}

.lst-zoomable { position: relative; display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; overflow: hidden; border-radius: 8px; }
.lst-zoomable img { transition: transform .3s ease; }
.lst-zoomable:hover img { transform: scale(1.04); }
.lst-zoom-icon { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; opacity: 0; transition: opacity .2s; }
.lst-zoomable:hover .lst-zoom-icon { opacity: 1; }
.lst-more-photos { display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; font-size: 1.2rem; font-weight: 700; border-radius: 8px; cursor: pointer; }

/* Lightbox */
.lst-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 9999; }
.lst-lightbox.is-open { display: flex; }
.lst-lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lst-lightbox-close, .lst-lightbox-prev, .lst-lightbox-next { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: none; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lst-lightbox-close:hover, .lst-lightbox-prev:hover, .lst-lightbox-next:hover { background: rgba(255,255,255,.25); }
.lst-lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.6rem; }
.lst-lightbox-prev, .lst-lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lst-lightbox-prev { left: 16px; }
.lst-lightbox-next { right: 16px; }
.lst-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 20px; }
@media (max-width: 600px) {
	.lst-lightbox-prev, .lst-lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* Header */
.lst-trip-header h1 { font-size: 2.2rem; margin-bottom: 4px; }
.lst-location { color: #000; margin-bottom: 16px; }
.lst-quick-facts { display: flex; gap: 32px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; margin-bottom: 16px; }
.lst-fact { display: flex; flex-direction: column; }
.lst-fact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #000; }
.lst-fact-value { font-weight: 600; font-size: 1rem; }

.lst-intro { font-size: 1.05rem; line-height: 1.6; color: #000; margin-bottom: 16px; }

.lst-dates-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.lst-dates-label { font-weight: 600; font-size: .9rem; color: #000; margin-right: 4px; }
.lst-date-pill { background: #eaf5ee; color: #1b7a4d; border: 1px solid #c9e8d3; padding: 6px 12px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.lst-date-pill-full { background: #f3f3f3; color: #000; border-color: #e2e2e2; text-decoration: line-through; }

/* Layout */
.lst-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .lst-layout { grid-template-columns: 1fr; } }

/* Tabs */
.lst-tabs { display: flex; gap: 24px; border-bottom: 2px solid #eaeaea; margin-bottom: 24px; }
.lst-tab { padding: 10px 0; font-weight: 600; color: #000; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.lst-tab.active, .lst-tab:hover { color: #1b7a4d; border-color: #1b7a4d; }

.lst-section { margin-bottom: 40px; scroll-margin-top: 20px; }
.lst-section h2 { font-size: 1.5rem; margin-bottom: 12px; }
.lst-section h3 { font-size: 1.15rem; margin: 24px 0 8px; }

.lst-highlights { padding-left: 20px; }
.lst-highlights li { margin-bottom: 6px; color: #000; }

.lst-inc-exc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .lst-inc-exc { grid-template-columns: 1fr; } }
.lst-included ul, .lst-excluded ul { list-style: none; padding: 0; margin: 0; }
.lst-included li, .lst-excluded li { padding: 4px 0 4px 22px; position: relative; color: #000; }
.lst-included li:before { content: "✓"; position: absolute; left: 0; color: #1b7a4d; font-weight: 700; }
.lst-excluded li:before { content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 700; }

.lst-info-list { list-style: none; padding: 0; margin: 0; }
.lst-info-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.lst-info-label { color: #000; }
.lst-info-value { font-weight: 600; color: #000; }

/* Itinerary accordion */
.lst-itin-day { border: 1px solid #eaeaea; border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.lst-itin-day-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: #f7f7f5; border: none; padding: 14px 16px; font-weight: 600; font-size: 1rem; cursor: pointer; text-align: left; color: #000; }
.lst-itin-day-toggle span { color: #000; }
.lst-itin-day-content, .lst-itin-day-content p, .lst-itin-meta { color: #000; }
.lst-itin-caret { font-size: 1.2rem; }
.lst-itin-day-content { padding: 14px 16px; }
.lst-itin-meta { color: #000; font-size: .9rem; margin: 4px 0; }

.lst-price-big { font-size: 1.4rem; }
.lst-price-big strong { color: #1b7a4d; }

/* Sidebar booking box */
.lst-sidebar { position: sticky; top: 20px; }
.lst-booking-box { border: 1px solid #eaeaea; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.lst-booking-price { font-size: 1.1rem; margin-bottom: 16px; }
.lst-booking-price strong { font-size: 1.8rem; color: #1b7a4d; }
.lst-enquiry-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 10px; color: #000; }
.lst-enquiry-form input, .lst-enquiry-form textarea { width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid #ddd; border-radius: 6px; font-size: .9rem; box-sizing: border-box; }
.lst-btn-primary { width: 100%; background: #1b7a4d; color: #fff; border: none; padding: 12px; border-radius: 6px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.lst-btn-primary:hover { background: #14603b; }
.lst-whatsapp-btn { display: block; text-align: center; margin-top: 12px; background: #25D366; color: #fff; padding: 12px; border-radius: 6px; text-decoration: none; font-weight: 700; }

/* Achat WooCommerce */
.lst-purchase-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eaeaea; }
.lst-purchase-price { font-size: 1.5rem; font-weight: 700; color: #1b7a4d; margin-bottom: 10px; }
.lst-purchase-price del { color: #000; font-weight: 400; font-size: 1rem; margin-right: 6px; }
.lst-purchase-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: #000; }
.lst-purchase-form input[type="number"] { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; box-sizing: border-box; }
.lst-purchase-actions { display: flex; gap: 8px; }
.lst-btn-buy, .lst-btn-secondary { flex: 1; border: none; padding: 12px; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.lst-btn-buy { background: #1b7a4d; color: #fff; }
.lst-btn-buy:hover { background: #14603b; }
.lst-btn-secondary { background: #f0f0f0; color: #000; }
.lst-btn-secondary:hover { background: #e2e2e2; }
.lst-or-divider { text-align: center; font-size: .8rem; color: #000; margin: 4px 0 16px; text-transform: uppercase; letter-spacing: .05em; }
.lst-notice-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }

/* Grid / related / archive */
.lst-related { margin-top: 40px; border-top: 1px solid #eaeaea; padding-top: 30px; }
.lst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.lst-grid.lst-cols-1 { grid-template-columns: 1fr; }
.lst-grid.lst-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lst-grid.lst-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .lst-grid.lst-cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .lst-grid, .lst-grid.lst-cols-3, .lst-grid.lst-cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lst-grid, .lst-grid.lst-cols-2, .lst-grid.lst-cols-3, .lst-grid.lst-cols-4 { grid-template-columns: 1fr; } }

/* Carte voyage */
.lst-card { position: relative; display: flex; flex-direction: column; background: transparent; color: #222; border-radius: 16px; transition: transform .25s ease; }
.lst-card:hover { transform: translateY(-4px); }
.lst-card-link { position: absolute; inset: 0; z-index: 3; border-radius: 16px; }
.lst-card-img { position: relative; height: 280px; border-radius: 16px 16px 0 0; overflow: hidden; background: #e9ecef; }
.lst-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lst-card:hover .lst-card-img img { transform: scale(1.05); }
.lst-card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe6e9, #b2bec3); }
.lst-card-badge { position: absolute; top: 16px; left: 16px; background: #f7931e; color: #fff; font-weight: 700; font-size: .85rem; line-height: 1; padding: 8px 12px; border-radius: 8px; z-index: 2; }
.lst-card-media { position: absolute; right: 22px; bottom: 2px; z-index: 4; display: flex; align-items: center; gap: 4px; background: #fff; padding: 12px 14px; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.lst-card-media-btn { position: relative; display: flex; align-items: center; justify-content: center; padding: 4px 6px; margin: 0; background: none; border: 0; color: #777; cursor: pointer; border-radius: 8px; line-height: 0; transition: color .2s, background .2s; }
.lst-card-media-btn:hover, .lst-card-media-btn:focus-visible { color: #f7931e; background: #f6f6f6; outline: none; }
.lst-card-media-btn svg { display: block; }
.lst-card-media-count { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; background: #4caf50; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; border-radius: 9px; }

.lst-card-body { position: relative; z-index: 2; margin-top: -32px; background: #fff; border-radius: 28px 28px 16px 16px; padding: 26px 28px 24px; box-shadow: 0 8px 28px rgba(0,0,0,.08); flex: 1; }
.lst-card-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lst-stars { display: inline-flex; gap: 2px; color: #f7931e; }
.lst-star { display: block; }
.lst-star-empty { color: #d9d9d9; }
.lst-card-rating-val { color: #777; font-size: .95rem; }
.lst-card-title { margin: 0 0 14px; font-size: 1.4rem; line-height: 1.25; font-weight: 700; color: #1a1a1a; }
.lst-card-loc, .lst-card-price { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #6b6b6b; font-size: 1rem; }
.lst-card-loc svg { color: #4caf50; flex: 0 0 auto; }
.lst-card-price svg { color: #4caf50; flex: 0 0 auto; }
.lst-card-price strong { color: #f7931e; font-weight: 700; margin: 0 4px; }
.lst-card-price del { color: #9a9a9a; font-size: .95rem; margin-left: 2px; }
.lst-card-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e6e6e6; color: #6b6b6b; font-size: 1rem; }
.lst-card-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lst-card-meta svg { color: #4caf50; flex: 0 0 auto; }
.lst-empty { text-align: center; color: #777; padding: 30px 0; }

/* Page "Tous les voyages" */
.lst-archive { max-width: 1240px; margin: 0 auto; padding: 20px 20px 60px; }
.lst-archive-head { text-align: center; margin: 0 0 28px; }
.lst-archive-head h1 { margin: 0 0 8px; }
.lst-archive-head p { margin: 0 auto; max-width: 640px; color: #666; }
.lst-archive-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.lst-archive-filters a { padding: 8px 18px; border: 1px solid #ddd; border-radius: 999px; color: #444; text-decoration: none; font-size: .95rem; transition: all .2s; }
.lst-archive-filters a:hover, .lst-archive-filters a.is-active { background: #f7931e; border-color: #f7931e; color: #fff; }
body:has( header.header-position-absolute ) .lst-archive > .lst-archive-head { margin-top: 160px; }
@media (max-width: 640px) { body:has( header.header-position-absolute ) .lst-archive > .lst-archive-head { margin-top: 90px; } .lst-card-img { height: 230px; } .lst-card-title { font-size: 1.25rem; } }

/* Fenêtre Photos / Vidéo */
.lst-mm { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); }
.lst-mm.is-open { display: flex; }
.lst-mm-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: #fff; }
.lst-mm-title { flex: 1; font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst-mm-tabs { display: flex; gap: 6px; }
.lst-mm-tab { background: rgba(255,255,255,.1); color: #fff; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .9rem; }
.lst-mm-tab.is-active { background: #f7931e; }
.lst-mm-close, .lst-mm-prev, .lst-mm-next { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lst-mm-close:hover, .lst-mm-prev:hover, .lst-mm-next:hover { background: rgba(255,255,255,.25); }
.lst-mm-close { width: 44px; height: 44px; font-size: 1.6rem; }
.lst-mm-prev, .lst-mm-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; z-index: 2; }
.lst-mm-prev { left: 16px; }
.lst-mm-next { right: 16px; }
.lst-mm-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 70px 80px 60px; box-sizing: border-box; }
.lst-mm-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lst-mm-video { width: min(1000px, 100%); aspect-ratio: 16 / 9; max-height: 100%; background: #000; }
.lst-mm-video iframe, .lst-mm-video video { width: 100%; height: 100%; border: 0; display: block; }
.lst-mm-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 20px; }
@media (max-width: 640px) {
	.lst-mm-stage { padding: 64px 8px 56px; }
	.lst-mm-prev, .lst-mm-next { width: 40px; height: 40px; font-size: 1.5rem; }
	.lst-mm-prev { left: 6px; } .lst-mm-next { right: 6px; }
	.lst-mm-title { font-size: .95rem; }
}

/* Notice */
.lst-notice { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: .9rem; }
.lst-notice-success { background: #e6f4ea; color: #1b7a4d; border: 1px solid #b8e0c4; }
