/* ============================================================
   LUXURI — Pages Shared CSS (cars, yachts, magazine, villas)
   ============================================================ */

/* ── PAGE HERO (title centered, no video) ── */
.page-hero {
  background: var(--black);
  padding: 170px 0 120px;
  text-align: center;
}
.page-hero-title {
  font-size: clamp(22px, 3vw, 46px);
  font-weight: 400; color: #fff;
  margin-bottom: 12px; letter-spacing: .5px;
}
.page-hero-sub {
  font-size: 22px; color: 
color-mix(in oklab, #fff 80%, transparent);;
  max-width: 500px; margin: 0 auto;
  line-height: 1.7;
}

/* ── FILTER PILLS (cars brands) ── */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 60px 28px;
  max-width: 1400px; margin: 0 auto;
}
@media(max-width:768px){ .filter-pills{ padding: 0 20px 20px; } }
.filter-pill {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 4px;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active {
  background: #fff; color: #111; border-color: #fff;
}

/* ── FILTER SELECTS (yachts) ── */
.filter-selects {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 60px 28px;
  max-width: 1400px; margin: 0 auto;
}
@media(max-width:768px){ .filter-selects{ padding: 0 20px 20px; } }
.filter-select {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-family: var(--font);
  font-size: 13px; padding: 8px 32px 8px 14px;
  border-radius: 4px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 130px;
}
.filter-select option { background: #111; color: #fff; }

/* ── LISTING GRID (cars 4-col, yachts 4-col) ── */
.listing-section { background: var(--black); padding-bottom: 60px; }
.listing-wrap { max-width: 1400px; margin: 0 auto; padding: 0 60px; }
@media(max-width:768px){ .listing-wrap{ padding: 0 20px; } }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px 16px;
}
@media(max-width:1100px){ .listing-grid{ grid-template-columns: repeat(3,1fr); } }
@media(max-width:768px) { .listing-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .listing-grid{ grid-template-columns: 1fr; } }

.listing-card {
  display: block; text-decoration: none; color: #fff;
  cursor: pointer;
}
.listing-card:hover { color: #fff; }
.listing-img-wrap {
  border-radius: 6px; overflow: hidden;
  aspect-ratio: 4/3; margin-bottom: 12px;
  background: #1a1a1a;
}
.listing-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s;
}
.listing-card:hover .listing-img-wrap img { transform: scale(1.1); }

.listing-img-placeholder,
.detail-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.58);
  background: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
}

.listing-empty-state {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: #121212;
  padding: 54px 24px;
  text-align: center;
}

.listing-empty-state h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.listing-empty-state p {
  color: rgba(255,255,255,.58);
  font-size: 14px;
  margin: 0;
}
.listing-card:hover .listing-name{
  color: #e9d9c3;
}
.listing-name {
  font-size: 20px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 3px; line-height: 1.3;
}
.listing-loc  { font-size: 14px; color: #c9c8c5; font-style: italic; margin-bottom: 5px; }
.listing-price{ font-size: 14px; font-weight: 600; }
.listing-price .lp-per { font-weight: 400; color: #6f6c67; font-size: 11px; }

/* Pagination */
.listing-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; font-size: 12px; color: var(--muted);
}
.pg-group { display: flex; gap: 4px; }

/* ── DETAIL PAGE SHARED ── */
.detail-hero {
  width: 100%; height: 440px;
  margin-top: 0px; overflow: hidden;
  position: relative;
}
.detail-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  /* Fade the banner into the black page below, so it blends seamlessly
     instead of ending on a hard edge. */
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 42%, rgba(0,0,0,.7) 80%, #000 100%);
}

.detail-wrap {
  max-width: 1300px; margin: 0 auto;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px; align-items: start;
}
@media(max-width:1000px){ .detail-wrap{ grid-template-columns:1fr; padding:24px 20px; } }

/* ── DETAIL WIDGET (right sticky) ── */
.detail-widget {
  position: sticky; top: 90px;
  background: #0b0a0a;
  /* border: 1px solid var(--border); */
  border-radius: 12px; padding: 24px;
}
.dw-price {
  font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 20px;
}
.dw-price span { font-size: 15px; font-weight: 400; color: #8e8b86; }
.dw-row {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 10px;
}
.dw-row .dw-label { color: #8e8b86;font-size: 15px; }
.dw-row .dw-val   { color: #fff; font-weight: 600;font-size: 15px; }
.dw-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.dw-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; box-sizing: border-box;
  background: #fff; border: none; color: #111;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  line-height: 1.2; text-align: center; text-decoration: none;
  padding: 13px 16px; border-radius: 8px; cursor: pointer;
  margin-bottom: 14px; transition: background .18s;
}
.dw-btn:hover { background: #e8e8e8; color: #111; text-decoration: none; }
.dw-call {
  text-align: center; font-size: 16px; color: var(--muted); line-height: 1.7;
}
.dw-call a { color: #fff; text-decoration: none; font-weight: 700; }
.dw-notes { font-size: 12px; color: var(--muted2); line-height: 1.8; margin-top: 14px; }
.dw-notes p { margin-bottom: 4px; }

/* Detail specs grid */
.detail-name {
  font-size: clamp(20px,3vw,42px); font-weight: 600;
  color: #fff; margin-bottom: 8px;
}
.detail-loc   { font-size: 16px; color: rgb(251 253 255);  margin-bottom: 6px; }
.detail-includes { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.detail-desc  { font-size: 17px; font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important; color: #fff; line-height: 1.85; margin-bottom: 28px;    font-weight: 300; }
.detail-desc-plain { font-size: 13px; color: var(--muted); line-height: 1.85; margin-bottom: 28px; }

.specs-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 28px;
}
@media(max-width:600px){ .specs-grid{ grid-template-columns:repeat(2,1fr); } }
.spec-card {
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 16px;
  text-align: center;
}
.spec-icon { font-size: 24px; color: var(--muted); margin-bottom: 10px; }
.spec-val  { font-size: 18px; font-weight: 500; color: #fff; }

/* ── MAGAZINE ──
   The listing itself now lives in magazine.css (live replica); only the
   detail-page rules below still belong here. */

/* ── MAGAZINE DETAIL ── */
.mag-detail-hero { position:relative; height:280px; overflow:hidden; }
.mag-detail-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.mag-detail-hero img { width:100%;height:100%;object-fit:cover;display:block;object-position:center 30%; }
.mag-detail-hero-overlay { position:absolute;inset:0;background:rgba(0,0,0,.35); }

.mag-detail-wrap {
  max-width:780px; margin:0 auto; padding:52px 40px 80px;
}
@media(max-width:768px){ .mag-detail-wrap{ padding:32px 20px 60px; } }
.mag-detail-header {
  display:flex;align-items:flex-start;justify-content:space-between;
  margin-bottom:40px; gap:20px; flex-wrap:wrap;
}
.mag-detail-title { font-size:clamp(20px,3vw,38px); font-weight:600; color:#fff; flex:1; }
.mag-detail-date  { font-size:15px;font-style: italic; color:var(--muted); white-space:nowrap; padding-top:6px; }
.mag-detail-body p { font-size:16px; color:#fff; line-height:1.95; margin-bottom:18px; }
.mag-detail-body a { color:#fff;}
.mag-detail-body a:hover { color:#e9d9c3;}
.mag-detail-body h2 { font-size:18px; font-weight:700; color:#fff; margin:32px 0 12px; text-decoration:underline; }
.mag-detail-body img { width:100%; border-radius:8px; margin:10px 0 6px; display:block; }
.mag-detail-body .img-source { font-size:12px; color:var(--muted); margin-bottom:24px; }
.mag-detail-body .img-source a { color:rgba(99,179,255,.8); text-decoration:none; }
.mag-section { margin:34px 0; }
.mag-section:first-child { margin-top:0; }
.mag-section-rich :is(p, ul, ol) { font-size:16px; color:#fff; line-height:1.95; margin-bottom:18px; }
.mag-section-rich ul, .mag-section-rich ol { padding-left:24px; }
.mag-section-rich li { margin-bottom:8px; }
.mag-section-rich a { color:#fff; }
.mag-section-image img { width:100%; border-radius:8px; display:block; }
.mag-section-splash { min-height:420px; border-radius:10px; background-size:cover; background-position:center; }
.mag-section-hero {
  position:relative;
  min-height:360px;
  border-radius:10px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  padding:42px;
}
.mag-section-hero-shade { position:absolute; inset:0; background:rgba(0,0,0,.45); }
.mag-section-hero-copy { position:relative; z-index:1; max-width:620px; }
.mag-section-hero-copy h2 { font-size:clamp(26px,4vw,44px); text-decoration:none; margin:0 0 14px; }
.mag-section-hero-copy p { font-size:18px; line-height:1.7; }
.mag-section-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:center; }
.mag-split-media img { width:100%; border-radius:8px; display:block; }
.mag-two-col-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.mag-section-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.mag-section-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.mag-section-faq details { border-top:1px solid rgba(255,255,255,.16); padding:16px 0; }
.mag-section-faq details:last-child { border-bottom:1px solid rgba(255,255,255,.16); }
.mag-section-faq summary { cursor:pointer; color:#fff; font-size:16px; font-weight:700; }
.mag-section-faq .mag-section-rich { margin-top:12px; }
.mag-detail-body > h2,
.mag-section :is(p, li, a, span, strong, em, b, i, u, blockquote, summary, h1, h2, h3, h4, h5, h6,div),
.mag-section-rich :is(p, li, a, span, strong, em, b, i, u, blockquote, h1, h2, h3, h4, h5, h6,div) {
  font-size:16px !important;
}
@media(max-width:768px){
  .mag-section-split,
  .mag-two-col-grid { grid-template-columns:1fr; }
  .mag-section-hero { padding:28px; min-height:280px; }
  .mag-section-splash { min-height:280px; }
}

/* ── SIMILAR / RELATED SECTION ── */
.similar-section { background:var(--black); padding:0 0 60px; }
.similar-wrap { max-width:1300px; margin:0 auto; padding:0 60px; }
@media(max-width:768px){ .similar-wrap{ padding:0 20px; } }
.similar-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.similar-title { font-size:25px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#fff;margin:0; }
.similar-nav { display:flex; gap:10px; }
.similar-arrow {
  width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,.25); background:transparent; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:14px;
  cursor:pointer; transition:background .18s, color .18s, opacity .18s;
}
.similar-arrow:hover { background:#fff; color:#111; border-color:#fff; }
.similar-arrow:disabled { opacity:.3; cursor:default; background:transparent; color:#fff; }

/* Slider: shows 4 cards at a time; arrows page through the rest. */
.similar-track {
  display:flex; gap:20px;
  overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  scrollbar-width:none; -ms-overflow-style:none; padding-bottom:4px;
}
.similar-track::-webkit-scrollbar { display:none; }
.similar-track > .listing-card {
  flex:0 0 calc((100% - 60px) / 4); /* 4 visible, 3 gaps × 20px */
  min-width:0; scroll-snap-align:start;
}
@media(max-width:1000px){ .similar-track > .listing-card{ flex-basis:calc((100% - 40px) / 3); } }
@media(max-width:768px) { .similar-track > .listing-card{ flex-basis:calc((100% - 20px) / 2); } }
@media(max-width:480px) { .similar-track > .listing-card{ flex-basis:100%; } }

/* ── YACHT GALLERY ── */
.yacht-gallery-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:8px;
}
.yacht-gallery-grid img {
  width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;display:block;cursor:pointer;transition:opacity .2s;
}
.yacht-gallery-grid img:hover { opacity:.85; }

/* ── CONCIERGE MODAL ── */

/* ── VILLAS PAGE ── */
.villas-page-hero {
  position:relative; height:70vh; min-height:400px;   /* live: min-h-[70vh] */
  padding-top:56px;                                    /* live: pt-14 */
  display:flex;align-items:center;justify-content:center;text-align:center;
  overflow:visible;
}

/* live mobile: hero fills ~90vh like the homepage hero */
@media (max-width: 768px) {
  .villas-page-hero { height: 90vh; }
}
.villas-page-hero .hero-media-wrap { position:absolute;inset:0;overflow:hidden;z-index:0; }
.villas-page-hero .hero-media-wrap img,
.villas-page-hero .hero-media-wrap video {
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
}
.villas-page-hero .hero-media-wrap img { z-index:0; }
.villas-page-hero .hero-media-wrap video { z-index:1; }
/* Same fade as the destination hero, so the image sinks into the black page below. */
.villas-page-hero .hero-overlay { position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to bottom,rgba(0,0,0,.30) 0%,rgba(0,0,0,.38) 45%,rgba(0,0,0,.72) 85%,rgba(0,0,0,.92) 100%); }
.villas-page-hero .hero-content { position:relative;z-index:10;padding:0 24px;width:100%;max-width:1000px; }
.villas-page-title {   /* live h1: 48/600 uppercase tracking-wide, white */
  font-family: var(--lx-font-accent);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 16px;
}
.villas-page-sub {     /* live: Noto 20/400, white */
  font-family: var(--lx-font-body);
  font-size: 20px;
  line-height: 31.11px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 24px;
}

/* live featured villas: static 3-column grid, gap 24 */
.villas-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .villas-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .villas-grid-3 { grid-template-columns: 1fr; } }

.dest-slider-section { background:var(--black);padding:52px 0 8px; }
.dest-slider-wrap    { max-width:1400px;margin:0 auto;padding:0 60px; }
@media(max-width:768px){ .dest-slider-wrap{ padding:0 20px; } }
.dest-slider-title { font-size:16px;font-weight:800;letter-spacing:3px;text-transform:uppercase;color:#fff;margin-bottom:20px; }
.dest-slider-grid {
  display:grid;grid-template-columns:repeat(5,1fr);gap:12px;
}
@media(max-width:900px){ .dest-slider-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:560px){ .dest-slider-grid{ grid-template-columns:repeat(2,1fr); } }
.dest-card-sm { position:relative;border-radius:8px;overflow:hidden;aspect-ratio:1/.85;display:block;text-decoration:none; }
.dest-card-sm img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s; }
.dest-card-sm:hover img { transform:scale(1.06); }
.dest-card-sm .dest-fade { position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.65) 0%,transparent 55%); }
.dest-card-sm .dest-lbl  { position:absolute;bottom:10px;left:12px;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#fff; }

.villas-featured { background:var(--black);padding:52px 0; }
.villas-feat-wrap { max-width:1400px;margin:0 auto;padding:0 60px; }
@media(max-width:768px){ .villas-feat-wrap{ padding:0 20px; } }
.vf-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:20px; }
@media(max-width:900px){ .vf-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .vf-grid{ grid-template-columns:1fr; } }

/* Shared detail lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  flex-direction: column;
  padding: 20px 40px 16px;
  background: rgba(0,0,0,.95);
}
.lightbox.open { display: flex; }
.lightbox-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
}
.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lb-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.lb-close {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.lb-main {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lb-main img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s;
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.lb-strip {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.lb-strip-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 54px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .18s;
}
.lb-strip-thumb.active { border-color: #fff; }
.lb-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media(max-width:768px) {
  .lightbox { padding: 16px 18px 12px; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-strip-thumb { width: 68px; height: 46px; }
}
