/* ============================================================
   TUMBOH COFFEE JOINT — Premium Static Stylesheet
   Brand: calm botanical coffee, analog music, local Terengganu
   Palette: cream/off-white bg, coffee brown, muted green,
            warm terracotta/clay accent, soft black text
   Typography: DM Serif Display (headings), Inter (body)
   ============================================================ */

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f8f4ee;
  --cream-dark: #f0ebe4;
  --brown-900: #2a201a;
  --brown-800: #3d3228;
  --brown-700: #5a4a3a;
  --brown-500: #8a7a6a;
  --brown-300: #c4b59a;
  --brown-200: #d4c5b0;
  --brown-100: #e8ddd0;
  --green-muted: #7a9a6d;
  --green-pale: #a8b5a0;
  --terracotta: #c4411c;
  --terracotta-light: #e85d3a;
  --gold-muted: #c9a96e;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(42,32,26,0.08);
  --shadow-md: 0 4px 16px rgba(42,32,26,0.1);
  --shadow-lg: 0 8px 32px rgba(42,32,26,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--brown-800);
  background: var(--cream);
  padding-bottom: 64px; /* room for sticky CTA */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--terracotta-light);
}

address {
  font-style: normal;
}

/* ---- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Section Common --------------------------------------- */
.section {
  padding: 64px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--brown-900);
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--brown-500);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* ---- Sticky Mobile CTA Bar -------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--brown-100);
  box-shadow: 0 -2px 12px rgba(42,32,26,0.08);
  padding: 8px 12px;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brown-800);
  background: var(--cream);
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: var(--brown-100);
  color: var(--brown-900);
}

.cta-btn svg {
  flex-shrink: 0;
}

/* ---- Navigation -------------------------------------------- */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(248,244,238,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-bar.scrolled {
  border-bottom: 1px solid var(--brown-100);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brown-900);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brown-900);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--brown-900);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brown-700);
}

.nav-links a:hover {
  background: var(--brown-100);
  color: var(--brown-900);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-800);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(248,244,238,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--brown-100);
}

/* ---- Hero --------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--brown-900);
  /* Gradient texture overlay to simulate paper/linen */
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%,
                    transparent 50%, rgba(255,255,255,0.03) 50%,
                    rgba(255,255,255,0.03) 75%, transparent 75%),
    linear-gradient(180deg, rgba(42,32,26,1) 0%, rgba(58,44,34,1) 50%, rgba(42,32,26,1) 100%);
  background-size: 60px 60px, 100% 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(42,32,26,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.15);
}

.chip-muted {
  opacity: 0.7;
}

.hero-scroll {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.4);
}

/* ---- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white) !important;
  border-color: var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-light);
  border-color: var(--terracotta-light);
}

.btn-secondary {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ---- About Section ---------------------------------------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 40px;
}

.about-image {
  order: -1;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--brown-700);
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ---- Image Placeholders ------------------------------------- */
.img-placeholder {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-dark);
  width: 100%;
}

.img-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

.placeholder-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--brown-500);
  background: rgba(255,255,255,0.85);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Menu Section ------------------------------------------- */
.menu-section {
  background: var(--cream);
}

.menu-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.menu-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--brown-700);
}

.menu-icon svg {
  width: 100%;
  height: 100%;
}

.menu-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brown-900);
  margin-bottom: 6px;
}

.menu-card p {
  font-size: 0.9rem;
  color: var(--brown-500);
  line-height: 1.5;
}

.menu-cta {
  text-align: center;
}

.menu-cta .btn {
  background: var(--brown-900);
  color: var(--white) !important;
  border-color: var(--brown-900);
}

.menu-cta .btn:hover {
  background: var(--brown-800);
  border-color: var(--brown-800);
}

/* ---- Hari Analog Section ------------------------------------ */
.analog {
  background: var(--brown-900);
  color: var(--white);
}

.analog .section-title {
  color: var(--white);
}

.analog-feature {
  display: grid;
  gap: 40px;
}

.analog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.analog-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.88);
}

.analog-credit {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-muted);
  margin-bottom: 24px;
}

.analog .btn-secondary {
  align-self: flex-start;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--terracotta);
  color: var(--white);
  margin-bottom: 12px;
  width: fit-content;
}

/* ---- Community Section -------------------------------------- */
.community {
  background: var(--white);
}

.community-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.community-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.community-card-img .img-placeholder {
  border-radius: 0;
}

.community-card-body {
  padding: 16px 20px 20px;
}

.community-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--brown-900);
  margin-bottom: 4px;
}

.community-card-body p {
  font-size: 0.875rem;
  color: var(--brown-500);
  line-height: 1.5;
}

.community-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--brown-500);
}

/* ---- Gallery Section ---------------------------------------- */
.gallery-section {
  background: var(--cream-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item svg {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item .placeholder-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--brown-500);
  background: rgba(255,255,255,0.85);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--brown-500);
}

/* ---- Visit Section ------------------------------------------ */
.visit {
  background: var(--white);
}

.visit-grid {
  display: grid;
  gap: 40px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.visit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.visit-item svg {
  flex-shrink: 0;
  color: var(--terracotta);
  margin-top: 3px;
}

.visit-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.visit-item address,
.visit-item p {
  font-size: 0.95rem;
  color: var(--brown-800);
  line-height: 1.5;
}

.visit-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visit-ctas .btn-secondary {
  color: var(--brown-700) !important;
  border-color: var(--brown-200);
  background: var(--cream);
}

.visit-ctas .btn-secondary:hover {
  border-color: var(--brown-500);
  background: var(--brown-100);
}

.map-note {
  font-size: 0.8rem;
  color: var(--brown-500);
  margin-top: 8px;
  text-align: center;
}

/* ---- FAQ Section -------------------------------------------- */
.faq-section {
  background: var(--cream);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--brown-100);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brown-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--brown-300);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  background: var(--cream);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--brown-600);
}

/* ---- Footer -------------------------------------------------- */
.footer {
  background: var(--brown-900);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-brand .logo-mark {
  background: var(--white);
  color: var(--brown-900);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-credit p {
  font-size: 0.8rem;
}

.footer-tiny {
  opacity: 0.5;
  font-size: 0.7rem;
  margin-top: 4px;
}

/* ---- Lightbox ----------------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.lightbox-content svg {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 12px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  padding: 10px;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* ---- Animations --------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ---- Desktop Breakpoints ------------------------------------ */
@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }

  .sticky-cta {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-links.open {
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    border: none;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .about-image {
    order: 0;
  }

  .analog-feature {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .visit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-credit {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }

  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .community-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-sub {
    font-size: 1.15rem;
  }
}

/* ---- Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---- Helper: sr-only (screen-reader only) ------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ---- Real social photo integration -------------------------- */
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--brown-100); }
.photo-frame img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.photo-frame figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(42,32,26,.72); color: var(--cream); font-size: .78rem; letter-spacing: .02em; backdrop-filter: blur(8px); }
.photo-frame-dark { border: 1px solid rgba(201,169,110,.18); }
.community-photo { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .45s ease; }
.community-card:hover .community-photo { transform: scale(1.04); }
.gallery-item { aspect-ratio: 4 / 5; background: var(--brown-100); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.94) contrast(1.02); }
.gallery-label { position: absolute; inset: auto 8px 8px 8px; padding: 7px 9px; border-radius: 12px; background: rgba(42,32,26,.68); color: var(--cream); font-size: .68rem; line-height: 1.2; backdrop-filter: blur(8px); opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease; }
.gallery-item:hover .gallery-label, .gallery-item:focus .gallery-label { opacity: 1; transform: translateY(0); }
#lightboxImg { display: block; max-width: min(92vw, 960px); max-height: 78vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-caption a { color: var(--gold-muted); text-decoration: underline; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }


.hero-bg.hero-photo { background-size: cover !important; background-position: center 42% !important; background-repeat: no-repeat !important; filter: saturate(.8) contrast(1.08); }
.hero-bg.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,32,26,.25), rgba(42,32,26,.64)), radial-gradient(circle at 50% 45%, rgba(0,0,0,.08), rgba(0,0,0,.55)); }
.community-card-img { min-height: 230px; background: var(--brown-100); overflow: hidden; }
.analog-media .photo-frame img { background: var(--brown-100); }


/* ---- Resilient static map card (no third-party embed blank space) ---- */
.map-card { position: relative; display: flex; min-height: 320px; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-md); background: linear-gradient(135deg, #efe4d8, #d9c8b5); border: 1px solid rgba(90,74,58,.16); box-shadow: var(--shadow-md); color: var(--brown-900); }
.map-card:hover { color: var(--brown-900); }
.map-grid { position: absolute; inset: -20px; background-image: linear-gradient(rgba(90,74,58,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(90,74,58,.15) 1px, transparent 1px), radial-gradient(circle at 48% 48%, rgba(196,65,28,.18), transparent 28%); background-size: 42px 42px, 42px 42px, 100% 100%; transform: rotate(-6deg) scale(1.08); }
.map-pin { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--terracotta); color: var(--cream); font-size: 2.3rem; box-shadow: 0 16px 44px rgba(196,65,28,.28); }
.map-card-copy { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.78); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.map-card-copy strong { display: block; font-family: var(--font-serif); font-size: 1.08rem; color: var(--brown-900); }
.map-card-copy small { display: block; margin-top: 3px; color: var(--brown-700); }
