:root {
  --plaster: #FAF6F0;
  --plaster-dim: #F2EBE1;
  --walnut: #3D3429;
  --clay: #A8784F;
  --clay-deep: #8C6038;
  --olive: #5C6B4F;
  --card: #FFFFFF;
  --line: #E8DFD3;
  --max-w: 880px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', sans-serif;
  background: var(--plaster);
  color: var(--walnut);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  line-height: 1.25;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.site-nav {
  background: var(--walnut);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .brand {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #E9C9A6;
  text-decoration: none;
}

.site-nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav .nav-links a {
  color: var(--plaster);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.15s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: #E9C9A6;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: #8a7d6c;
}

.breadcrumb a {
  color: var(--clay);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span.sep {
  margin: 0 6px;
  color: #b6aa97;
}

/* ===== HERO ===== */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
}

.hero .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--olive);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.hero h1 .accent { color: var(--clay); }

.hero .subline {
  font-size: 1.05rem;
  color: #6b5f4f;
  max-width: 540px;
  margin: 0 auto 28px;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 14px 32px;
  font-family: 'Frank Ruhl Libre', serif;
  box-shadow: 0 4px 24px rgba(61, 52, 41, 0.06);
}

.price-tag .amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--walnut);
}

.price-tag .currency {
  font-size: 1.1rem;
  color: var(--clay-deep);
}

/* ===== RISING LINE ===== */
.rise {
  width: 100%;
  height: 64px;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 24px;
}
.rise svg { width: 100%; height: 100%; display: block; }
.rise path {
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  opacity: 0.55;
}

/* ===== QUICK FACTS STRIP ===== */
.facts {
  background: var(--walnut);
  color: var(--plaster);
  padding: 36px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 28px;
  text-align: center;
}

.facts-grid .num {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #E9C9A6;
}

.facts-grid .label {
  font-size: 0.85rem;
  color: #cfc6b8;
  margin-top: 4px;
}

/* ===== FLOOR SECTIONS ===== */
.floors { padding: 64px 0 32px; }

.floor {
  margin-bottom: 48px;
}

.floor-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--olive);
}

.floor-header .floor-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.floor-header .floor-tag {
  font-size: 0.85rem;
  color: var(--olive);
  font-weight: 500;
  margin-right: auto;
}

.room-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.room-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.95rem;
}

.room-item .room-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.room-item .room-note {
  font-size: 0.85rem;
  color: #8a7d6c;
}

/* ===== FEATURES ===== */
.features {
  background: var(--plaster-dim);
  padding: 56px 0;
}

.features h2 {
  font-size: 1.7rem;
  margin-bottom: 28px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border-radius: 12px;
  padding: 22px;
  border-right: 3px solid var(--clay);
}

.feature-card .ftitle {
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.feature-card .fdesc {
  font-size: 0.9rem;
  color: #6b5f4f;
}

/* ===== NEIGHBORHOOD ===== */
.neighborhood {
  padding: 64px 0;
}

.neighborhood h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.neighborhood p {
  max-width: 640px;
  margin-bottom: 28px;
  color: #5e5443;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.amenity-pill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amenity-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
  display: inline-block;
}

/* ===== NEARBY PLACES ===== */
.nearby {
  padding: 56px 0;
  background: var(--plaster-dim);
}

.nearby h2 {
  font-size: 1.7rem;
  margin-bottom: 24px;
  text-align: center;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.nearby-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  border-right: 3px solid var(--olive);
}

.nearby-card .nearby-cat {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--olive);
}

.nearby-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: #5e5443;
}

.nearby-card li {
  padding: 3px 0;
}

/* ===== FAQ ===== */
.faq {
  padding: 64px 0;
}

.faq h2 {
  font-size: 1.7rem;
  margin-bottom: 28px;
  text-align: center;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-q {
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--walnut);
  cursor: pointer;
}

.faq-a {
  font-size: 0.92rem;
  color: #5e5443;
  line-height: 1.8;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 0 0 64px;
}

.gallery h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b6aa97;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

/* ===== CTA ===== */
.cta {
  background: var(--walnut);
  color: var(--plaster);
  padding: 64px 0 56px;
  text-align: center;
}

.cta h2 {
  color: var(--plaster);
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.cta p {
  color: #cfc6b8;
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid #E9C9A6;
  outline-offset: 3px;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #4CAF50;
  color: #fff;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

.btn-secondary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 6px 20px rgba(168, 120, 79, 0.35);
}

.cta .address-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: #a89a86;
}

/* ===== BLOG CARDS ===== */
.blog-section {
  padding: 56px 0;
}

.blog-section h2 {
  font-size: 1.7rem;
  margin-bottom: 28px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--walnut);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(61, 52, 41, 0.1);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin: -24px -24px 16px -24px;
  width: calc(100% + 48px);
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card .blog-excerpt {
  font-size: 0.88rem;
  color: #6b5f4f;
  line-height: 1.7;
}

.blog-card .blog-date {
  font-size: 0.8rem;
  color: #b6aa97;
  margin-top: 12px;
}

/* ===== BLOG ARTICLE ===== */
.article-content {
  padding: 48px 0 64px;
}

.article-content h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.85rem;
  color: #8a7d6c;
  margin-bottom: 32px;
}

.article-body {
  max-width: 700px;
  font-size: 1.02rem;
  line-height: 1.9;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 32px 0 14px;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin: 0 24px 18px;
}

.article-cta {
  background: var(--plaster-dim);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}

.article-cta h3 {
  margin-bottom: 10px;
}

.article-cta p {
  margin-bottom: 16px;
  color: #5e5443;
}

/* ===== HADERA PAGE ===== */
.area-hero {
  padding: 56px 0;
  text-align: center;
}

.area-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-bottom: 14px;
}

.area-hero .subline {
  font-size: 1.05rem;
  color: #6b5f4f;
  max-width: 580px;
  margin: 0 auto;
}

.area-section {
  padding: 48px 0;
}

.area-section:nth-child(even) {
  background: var(--plaster-dim);
}

.area-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.area-section p {
  max-width: 700px;
  color: #5e5443;
  margin-bottom: 16px;
}

/* ===== HOMEPAGE HERO (brand) ===== */
.home-hero {
  padding: 80px 0 56px;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 18px;
}

.home-hero .subline {
  font-size: 1.1rem;
  color: #6b5f4f;
  max-width: 560px;
  margin: 0 auto 32px;
}

.home-property-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  max-width: 600px;
  margin: 0 auto 24px;
  text-align: right;
  box-shadow: 0 4px 24px rgba(61, 52, 41, 0.06);
}

.home-property-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.home-property-card .details {
  font-size: 0.95rem;
  color: #5e5443;
  margin-bottom: 16px;
  line-height: 1.8;
}

.home-property-card .price {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--walnut);
  margin-bottom: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 40px 0 24px;
  background: var(--walnut);
  color: #a89a86;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h3 {
  font-size: 0.95rem;
  color: #E9C9A6;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: #cfc6b8;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 3px 0;
}

.footer-col a:hover {
  color: #E9C9A6;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #7a7064;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.footer-bottom a {
  color: #a89a86;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover {
  color: #E9C9A6;
}

/* ===== BURGER MENU ===== */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--plaster);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

body.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .burger { display: flex; }

  .site-nav .nav-right {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: 260px;
    height: 100dvh;
    background: var(--walnut);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 24px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 105;
    box-shadow: -4px 0 24px rgba(0,0,0,0.25);
    overflow-y: auto;
  }

  html[dir="rtl"] .site-nav .nav-right {
    transform: translateX(-100%);
  }

  body.nav-open .site-nav .nav-right {
    transform: translateX(0);
  }

  .site-nav .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .site-nav .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .site-nav .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .lang-switcher {
    border-inline-start: none;
    padding-inline-start: 0;
    margin-inline-start: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-content: flex-start;
    gap: 8px;
  }

  .lang-switcher a {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .hero { padding: 48px 0 40px; }
  .floors, .features, .neighborhood, .gallery, .nearby, .faq { padding: 40px 0; }
  .cta { padding: 48px 0 40px; }
  .floor-header { flex-wrap: wrap; }
  .floor-header .floor-tag { margin-right: 0; flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== AUDIO PLAYER ===== */
.audio-section {
  padding: 56px 0;
  background: var(--plaster-dim);
}

.audio-section h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  text-align: center;
}

.audio-player-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(61, 52, 41, 0.06);
}

.audio-player-wrap audio {
  width: 100%;
  border-radius: 8px;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  padding: 56px 0;
}

.video-section h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card h3 {
  font-size: 1rem;
  padding: 14px 18px;
  line-height: 1.4;
}

/* ===== LANGUAGE SWITCHER ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  margin-inline-start: 8px;
  border-inline-start: 1px solid rgba(255,255,255,0.15);
  padding-inline-start: 12px;
}

.lang-switcher a {
  color: #a89a86;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.lang-switcher a:hover {
  color: var(--plaster);
}

.lang-switcher a.active {
  color: #E9C9A6;
  background: rgba(233, 201, 166, 0.12);
}

/* ===== LTR OVERRIDES ===== */
html[dir="ltr"] .feature-card {
  border-right: none;
  border-left: 3px solid var(--clay);
}

html[dir="ltr"] .nearby-card {
  border-right: none;
  border-left: 3px solid var(--olive);
}

html[dir="ltr"] .floor-header .floor-tag {
  margin-right: 0;
  margin-left: auto;
}

html[dir="ltr"] .home-property-card {
  text-align: left;
}

html[dir="ltr"] .article-body ul,
html[dir="ltr"] .article-body ol {
  margin: 0 0 18px 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .blog-card { transition: none; }
}


/* ===== SHARE BUTTONS ===== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.share-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--walnut);
}

.share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: #5e5443;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.share-facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}

.share-twitter:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.share-email:hover {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}

.share-copy:hover {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}

.share-copy .icon-check {
  display: none;
}

.share-copy.copied .icon-copy {
  display: none;
}

.share-copy.copied .icon-check {
  display: block;
  color: #4CAF50;
}

.share-copy.copied {
  background: #e8f5e9;
  border-color: #4CAF50;
}

/* share-bar centered variant for hero */
.share-bar--center {
  justify-content: center;
}

/* share-bar in article */
.article-share {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 32px;
}

/* ===== GALLERY SLIDESHOW ===== */
.gallery-section { padding: 48px 0; background: #f5f0ea; }
.gallery-section h2 { text-align: center; margin-bottom: 24px; }

.slideshow {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 3/4;
}

.slide-track { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: .9rem;
  text-align: center;
  z-index: 2;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  color: #3a3226;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background .2s;
}
.slide-arrow:hover { background: #fff; }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }

.slide-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
}

.thumb-strip {
  max-width: 900px;
  margin: 12px auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c4b5a0 transparent;
}
.thumb-strip::-webkit-scrollbar { height: 6px; }
.thumb-strip::-webkit-scrollbar-track { background: transparent; }
.thumb-strip::-webkit-scrollbar-thumb { background: #c4b5a0; border-radius: 3px; }

.thumb-scroll {
  display: flex;
  gap: 6px;
  padding: 4px 0;
  width: max-content;
}

.thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, border-color .2s;
  background: none;
}
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--terracotta); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .slideshow { border-radius: 8px; aspect-ratio: 3/4; }
  .slide-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .slide-prev { left: 6px; }
  .slide-next { right: 6px; }
  .thumb { width: 56px; height: 42px; }
  .slide-caption { font-size: .78rem; padding: 8px 10px; }
}

/* ===== LIGHTBOX FULLSCREEN ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .95rem;
  background: rgba(0,0,0,.5);
  padding: 6px 18px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}

.slide { cursor: zoom-in; }

@media (max-width: 700px) {
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-caption { font-size: .8rem; padding: 5px 14px; }
}

/* ===== VIDEO THUMBNAIL FALLBACK ===== */
.video-thumb-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-embed img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
  pointer-events: none;
}
.video-thumb-link:hover .video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
