:root {
  --ink: #1f1f1f;
  --paper: #f7f2ea;
  --accent: #111111;
  --accent-2: #f1f1f1;
  --muted: #6b6b6b;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  --ring: rgba(0, 0, 0, 0.12);
  --surface: rgba(255, 255, 255, 0.72);
  --card-cream: #fbf4e4;
  --card-sage: #eef5ef;
  --card-rose: #f8edf0;
  --card-sand: #f4efe6;
}

* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f2ea 0%, #efe7db 100%);
  position: relative;
}

.page {
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: -8% -8% -8% -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 231, 207, 0.85) 0%, transparent 45%),
    radial-gradient(circle at 82% 12%, rgba(246, 230, 255, 0.8) 0%, transparent 45%),
    url("https://images.unsplash.com/photo-Xm8XD2b9AUs?auto=format&fit=crop&w=1200&q=55") left 4% top 4% / 500px 360px no-repeat,
    url("https://images.unsplash.com/photo-jh5XyK4Rr3Y?auto=format&fit=crop&w=1200&q=55") right 2% top 12% / 460px 340px no-repeat;
  opacity: 0.76;
  filter: saturate(1.2) contrast(1.06);
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 50% 90%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(0,0,0,0.03));
  mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }

.page { min-height: 100vh; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 5vw 1.5rem;
  align-items: center;
  text-align: center;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0.5rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.subhead { color: var(--muted); max-width: 48ch; }

.title-sub {
  margin: 0.2rem 0 0.8rem;
  font-weight: 600;
  color: #4b4b4b;
  font-size: 1.05rem;
}

.title-sub--secondary {
  margin-top: -0.15rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #5f5348;
}

.rotator {
  margin: 0.6rem 0 0;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.rotator__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #7a6f65;
}

.rotator__text {
  font-weight: 700;
  color: var(--ink);
  display: inline-block;
  min-width: 12ch;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rotator__text--fadeout {
  opacity: 0;
  transform: translateY(-4px);
}

.search {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.search__input {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #e3d7c8;
  background: #fff;
  font-size: 1rem;
  width: min(520px, 80vw);
}

.search__input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: var(--accent);
}

.tabs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.directory-tabs {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.directory-tab {
  border: 1px solid #d7cab8;
  background: rgba(255, 255, 255, 0.96);
  color: #2a2a2a;
  padding: 0.52rem 0.88rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 44px;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.directory-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.directory-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.tab {
  border: 1px solid #e3d7c8;
  background: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.chips { display: none; }

.btn {
  border: 1px solid #e3d7c8;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  min-height: 44px;
}

.btn.ghost { background: #fff; color: var(--ink); }

.hero__art { display: none; }

.content { padding: 1rem 5vw 4rem; }

.content__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pill {
  background: #fff;
  border: 1px solid #e3d7c8;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.notice {
  background: #fff6e5;
  border: 1px solid #f2d2a6;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  color: #7b4e0d;
  margin: 0 0 1rem;
}

.hidden { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.12rem;
  box-shadow: var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: 360px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card:nth-child(4n + 1) { background: var(--card-cream); }
.card:nth-child(4n + 2) { background: var(--card-sage); }
.card:nth-child(4n + 3) { background: var(--card-rose); }
.card:nth-child(4n + 4) { background: var(--card-sand); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card__title h3 {
  margin: 0;
  line-height: 1.24;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 170px;
  border-radius: 18px;
  margin-bottom: 0.9rem;
  background: #f3eee4;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f3eee4;
  transition: opacity 260ms ease, transform 220ms ease;
}

.card__image--fade {
  opacity: 0.45;
}

.card__image--portrait {
  object-fit: cover;
  object-position: 50% 68%;
}

.card__image--landscape {
  object-fit: cover;
  object-position: 50% 50%;
}

.card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card--sumaq .card__image {
  animation: sumaqZoom 10s ease-in-out infinite;
  transform-origin: center;
}

.card--sumaq .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17,17,17,0.35), rgba(0,0,0,0));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.card__media.fallback {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.badge { display: none; }

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag {
  border: 1px solid #e3d7c8;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  height: fit-content;
  z-index: 2;
}

.sidebar .panel {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #eadfce;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.map {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eadfce;
  box-shadow: var(--shadow);
  background: #fff;
}

.map--bottom {
  margin-top: 2rem;
}

.map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.contact-section {
  margin-top: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #eadfce;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.contact-head h2 {
  margin: 0;
}

.contact-head p {
  margin: 0.35rem 0 0.9rem;
  color: #5f5a53;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.85rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: #3f3a34;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8cab8;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__full {
  grid-column: 1 / -1;
}

.contact-form .btn {
  width: fit-content;
  margin-top: 0.25rem;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


.sidebar h3 {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6f65;
}

.select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 2px solid #111;
  background: #fff;
  font-size: 0.95rem;
}

.card__divider {
  height: 1px;
  background: #efe7dc;
  margin: 0.66rem 0;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.52rem;
}

.card__cta.alt {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.card__cta.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-state {
  padding: 2rem;
  border-radius: 18px;
  border: 1px dashed #e1d7c8;
  background: #fff;
  text-align: center;
  color: #5f5a53;
  font-weight: 600;
  max-width: 680px;
  margin: 0 auto;
}

.empty-state--muted {
  color: #6c655b;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.6rem 0 0.8rem;
}

.pagination__info {
  font-weight: 600;
  color: #4b4b4b;
  min-width: 120px;
  text-align: center;
}

.pagination .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    order: -1;
    position: static;
    top: auto;
    z-index: 2;
    margin-bottom: 0.35rem;
  }
  .sidebar .panel {
    padding: 0.15rem 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
  }
  .grid { grid-template-columns: 1fr; }
  body::before {
    background:
      radial-gradient(circle at 18% 18%, rgba(255, 231, 207, 0.75) 0%, transparent 50%),
      radial-gradient(circle at 82% 12%, rgba(246, 230, 255, 0.65) 0%, transparent 52%);
    opacity: 0.6;
  }
}

.muted { color: var(--muted); }

.card__address,
.card__phone {
  margin: 0.12rem 0;
  line-height: 1.3;
}

.address-link {
  color: #2e2e2e;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.address-link::after {
  content: " (Open Map)";
  font-size: 0.75rem;
  font-weight: 700;
  color: #6a5a4a;
  text-decoration: none;
}

.address-link:hover {
  color: #111;
}

.notice--alert {
  border-color: #edc2c2;
  background: #fff1f1;
  color: #b31313;
  font-weight: 800;
}

.notice--success {
  border-color: #b7e3c8;
  background: #f2fff6;
  color: #12663a;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { min-height: 200px; }
  .search { flex-direction: column; }
  .directory-tabs { gap: 0.45rem; }
  .directory-tab { font-size: 0.82rem; padding: 0.5rem 0.75rem; }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.4rem 1rem 1rem;
    gap: 1rem;
  }

  .hero__content h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 0.6rem;
  }

  .title-sub {
    font-size: 0.98rem;
  }

  .content {
    padding: 0.8rem 1rem 2rem;
  }

  .search {
    gap: 0.65rem;
  }

  .search__input {
    width: 100%;
  }

  .search .btn {
    width: 100%;
  }

  .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    padding-bottom: 0;
  }

  .tab {
    flex: 0 1 auto;
    white-space: normal;
  }

  .directory-tabs {
    justify-content: center;
  }

  .directory-tab {
    white-space: normal;
  }

  .sidebar {
    margin-bottom: 0.45rem;
  }

  .sidebar h3 {
    font-size: 0.74rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.09em;
  }

  .select {
    min-height: 42px;
    font-size: 0.95rem;
    border-width: 1.5px;
  }

  .content__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .pill {
    font-size: 0.8rem;
  }

  .card {
    padding: 1rem;
  }

  .card__media {
    aspect-ratio: 16 / 10;
    min-height: 170px;
  }

  .card__actions {
    flex-direction: column;
  }

  .card__cta {
    width: 100%;
    margin-top: 0.2rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .pagination__info {
    min-width: 0;
    width: 100%;
  }

  .map iframe {
    height: 220px;
  }

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

  .contact-form .btn {
    width: 100%;
  }
}

@keyframes sumaqZoom {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.08) translateY(-2%); }
  100% { transform: scale(1) translateY(0); }
}
