:root {
  --bg: #f3ead9;
  --surface: #f8efde;
  --panel: #fff8eb;
  --text: #2a1a12;
  --muted: #6a584b;
  --brand: #8b3d18;
  --brand-2: #b25d22;
  --line: #dcc6a3;
  --shadow: 0 14px 34px rgba(56, 28, 13, 0.16);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.public-body {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(178, 93, 34, 0.14),
      transparent 26%
    ),
    radial-gradient(circle at 4% 70%, rgba(139, 61, 24, 0.14), transparent 24%),
    linear-gradient(180deg, #f7efdf 0%, var(--bg) 100%);
}

a {
  color: #713312;
}

a:hover {
  color: #a54f1f;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(270px, 320px) 1fr;
}

.container {
  width: min(1250px, 95%);
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, #efe2c7 0%, #ead9ba 100%);
  border-right: 1px solid #d6bd99;
  padding: 22px 20px 16px;
}

.brand {
  text-decoration: none;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.brand-logo {
  max-width: 180px;
  height: auto;
  border-radius: 0;
}

.menu-toggle {
  display: none;
  width: 100%;
  border: 1px solid #cfb088;
  background: #fff6e4;
  color: #4a2c18;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.main-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.main-nav a {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: #55331f;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: #fff4de;
  border-color: #d6ba93;
}

.rail-map {
  margin: 16px 0;
}

.rail-map h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
  color: #5b412f;
}

.rail-map iframe {
  width: 100%;
  min-height: 170px;
  border: 1px solid #cdae84;
  border-radius: 10px;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-contact {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #5c4638;
  border-top: 1px solid #d8c09a;
  border-bottom: 1px solid #d8c09a;
  padding: 12px 0;
}

.rail-contact strong {
  color: #3f2a1e;
  margin-right: 4px;
}

.rail-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.rail-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  border: 1px solid #d8bd95;
  border-radius: 10px;
  background: #fef4e4;
  color: #422515;
}

.rail-social a:hover {
  transform: translateY(-1px);
}

.social-glyph {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

a[data-platform="instagram"] {
  color: #c13584;
}
a[data-platform="facebook"] {
  color: #1877f2;
}
a[data-platform="youtube"] {
  color: #ff0000;
}
a[data-platform="x"] {
  color: #111;
}
a[data-platform="whatsapp"] {
  color: #20b857;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 40px;
  height: 40px;
  border: 1px solid #d8bd95;
  border-radius: 10px;
  background: #fff7e8;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rail-subtle-links {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  padding-top: 6px;
}

.page-area {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

.page-main {
  width: min(1250px, 95%);
  margin: 0 auto;
  padding: 30px 0 28px;
}

.hero {
  background: linear-gradient(135deg, #f9efd9 0%, #f6e5c8 100%);
  border: 1px solid #e0c6a0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  background: #ead0a7;
  color: #593115;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  color: #4f230f;
}

.hero-copy {
  font-size: 1.05rem;
  max-width: 68ch;
  color: #574236;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-secondary {
  border-color: #cfb188;
  background: #fff5e6;
}

.section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.subtle-link {
  text-underline-offset: 3px;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 10px;
}

.collage-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddc4a3;
  box-shadow: var(--shadow);
  background: #fff8eb;
}

.collage-grid figure:nth-child(1) {
  grid-column: span 7;
  grid-row: span 3;
}
.collage-grid figure:nth-child(2) {
  grid-column: span 5;
  grid-row: span 2;
}
.collage-grid figure:nth-child(3) {
  grid-column: span 5;
  grid-row: span 2;
}
.collage-grid figure:nth-child(4) {
  grid-column: span 7;
  grid-row: span 2;
}
.collage-grid figure:nth-child(5) {
  grid-column: span 4;
  grid-row: span 2;
}
.collage-grid figure:nth-child(6) {
  grid-column: span 4;
  grid-row: span 2;
}
.collage-grid figure:nth-child(7) {
  grid-column: span 4;
  grid-row: span 2;
}

.collage-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-strip {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel,
.menu-stage,
.prose {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.details-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.details-list strong {
  display: inline-block;
  min-width: 84px;
}

.menu-stage {
  padding: 0;
  overflow: hidden;
}

.menu-doc {
  width: 100%;
  min-height: 82vh;
  border: 0;
  display: block;
}

.menu-empty {
  min-height: 58vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  background:
    radial-gradient(
      circle at top right,
      rgba(178, 93, 34, 0.12),
      transparent 35%
    ),
    linear-gradient(180deg, #fff7e8 0%, #fbf0de 100%);
}

.menu-empty-badge {
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ecd4ad;
  color: #65381e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.menu-empty h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #4f2b18;
}

.menu-empty p {
  margin: 0;
  max-width: 62ch;
  color: #624b3d;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 12px;
}

.gallery-masonry figure {
  margin: 0 0 12px;
  break-inside: avoid;
  border: 1px solid #ddc3a0;
  border-radius: 12px;
  padding: 4px;
  background: #fff8eb;
  box-shadow: var(--shadow);
}

.gallery-masonry img {
  width: 100%;
  border-radius: 10px;
}

.gallery-link {
  display: block;
  position: relative;
}

.gallery-link::after {
  content: "View";
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(28, 16, 10, 0.72);
  color: #fff;
  font-size: 0.74rem;
  opacity: 0;
  transform: translateY(4px);
  transition: 180ms ease;
}

.gallery-link:hover::after,
.gallery-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  background: rgba(10, 6, 4, 0.88);
  padding: clamp(16px, 4vw, 28px);
}

.lightbox::backdrop {
  background: rgba(10, 6, 4, 0.88);
}

.lightbox-frame {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.lightbox-frame img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
}

.lightbox-caption {
  color: #f5e8d8;
  text-align: center;
  font-size: 0.92rem;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  background: rgba(253, 248, 238, 0.9);
  color: #3a2418;
  font-size: 1.4rem;
  line-height: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-panel iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
  border-radius: 10px;
}

.site-footer {
  border-top: 1px solid #d8c09a;
  background: #ebd7b6;
}

.footer-inner {
  width: min(1250px, 95%);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #5e4838;
}

.footer-inner p,
.footer-inner small {
  margin: 0;
}

.admin-wrap {
  width: min(960px, 94%);
  margin: 28px auto;
}

.grid-gallery.full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.admin-form-grid {
  display: grid;
  gap: 14px;
}

.admin-form-grid.two {
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
button,
select {
  font: inherit;
}

input,
textarea {
  border: 1px solid #ccb390;
  border-radius: 9px;
  padding: 10px 11px;
  background: #fff;
}

button {
  cursor: pointer;
}

.notice {
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 12px;
}

.notice.ok {
  background: #e8f6e8;
  border: 1px solid #8ab18b;
}

.notice.error {
  background: #fde9e8;
  border: 1px solid #d38d87;
}

@media (max-width: 1080px) {
  .site-shell {
    grid-template-columns: 280px 1fr;
  }

  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 920px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d6bd99;
  }

  .menu-toggle {
    display: inline-block;
    margin-bottom: 10px;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: grid;
  }

  .rail-map {
    display: none;
  }

  .page-main {
    width: min(1200px, 94%);
  }

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

  .collage-grid figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .collage-grid img {
    aspect-ratio: 4 / 3;
  }

  .heritage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gallery-masonry {
    column-count: 1;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-form-grid.two {
    grid-template-columns: 1fr;
  }
}

:focus-visible {
  outline: 3px solid #cc7a30;
  outline-offset: 2px;
}
