:root {
  --bg: #f4f0eb;
  --surface: #ffffff;
  --surface-muted: #ebe5df;
  --surface-strong: #ded6ce;
  --text: #1d1a17;
  --text-soft: #544b45;
  --accent: #bf995c;
  --accent-dark: #9c7740;
  --border: #d7cec5;
  --shadow: 0 20px 50px rgba(79, 59, 37, 0.08);
  --radius: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(191, 153, 92, 0.14), transparent 28%),
    linear-gradient(180deg, #faf7f3 0%, var(--bg) 32%, #f7f3ee 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(250, 247, 243, 0.92);
  border-bottom: 1px solid rgba(191, 153, 92, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(104px, 11vw, 152px);
  height: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-dropdown {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-strong);
}

.nav-dropdown-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 240px;
  display: none;
  padding: 0.7rem 0.45rem 0.45rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(191, 153, 92, 0.18);
  box-shadow: var(--shadow);
  z-index: 70;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
  gap: 0.2rem;
}

.nav-dropdown-link {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  transition: background-color 160ms ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  background: var(--surface-muted);
}

.nav-link.cta {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 30px rgba(191, 153, 92, 0.28);
}

.nav-link.cta:hover,
.nav-link.cta.active {
  background: var(--accent-dark);
}

.page {
  flex: 1;
  padding: 1.35rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.2fr);
  gap: 2rem;
  align-items: stretch;
  margin: 1rem auto 2.5rem;
}

.hero-card,
.hero-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card {
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--flat {
  --hero-right-bleed: max(calc((100vw - var(--container)) / 2), 1rem);
  align-items: center;
  gap: 2.5rem;
  margin-top: -1.35rem;
}

.hero--flat .hero-copy-panel {
  padding: 0.5rem 0;
}

.hero--flat .hero-image {
  min-height: 470px;
  background: transparent;
  border-radius: 0 0 0 72px;
  box-shadow: none;
  overflow: hidden;
  width: calc(100% + var(--hero-right-bleed));
  justify-self: end;
  margin-right: calc(var(--hero-right-bleed) * -1);
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-title,
.section-title,
.page-title {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-copy,
.rich-copy,
.page-lead,
.meta-copy {
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.82;
}

.hero-actions,
.section-actions,
.button-row,
.footer-links,
.pill-row,
.contact-list {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-actions,
.section-actions,
.button-row {
  margin-top: 1.5rem;
}

.button,
.inline-link,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button {
  background: var(--accent);
  color: white;
}

.button:hover,
.inline-link:hover,
.footer-links a:hover {
  transform: translateY(-1px);
}

.button:hover {
  background: var(--accent-dark);
}

.inline-link {
  color: var(--accent-dark);
  padding-inline: 0;
  min-height: auto;
}

.hero-image {
  background: var(--surface-muted);
  position: relative;
  min-height: 440px;
}

.hero--flat .hero-image img {
  object-fit: cover;
  object-position: right center;
  border-bottom-left-radius: 72px;
}

.hero-image img,
.media-frame img,
.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-social {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  background: rgba(24, 24, 24, 0.8);
  color: white;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.hero-social svg,
.footer-social svg,
.social-link svg,
.favorite-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.grid-3,
.offer-grid,
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card,
.contact-card,
.social-card,
.offer-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 153, 92, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.contact-card,
.social-card {
  padding: 1.5rem;
}

.card h3,
.card h4,
.contact-card h2,
.social-card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.card p,
.social-card p,
.footer-block p,
.footer-block li {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  list-style: none;
}

.rich-copy p + p,
.rich-copy h1,
.rich-copy h2,
.rich-copy h3,
.rich-copy h4,
.rich-copy h5,
.rich-copy h6,
.rich-copy h1 + p,
.rich-copy h2 + p,
.rich-copy h3 + p,
.rich-copy h4 + p,
.rich-copy h5 + p,
.rich-copy h6 + p {
  margin-top: 1rem;
}

.rich-list {
  margin: 0.25rem 0 1rem;
  padding-left: 1.4rem;
  color: var(--text-soft);
  line-height: 1.82;
}

.rich-list li + li {
  margin-top: 0.45rem;
}

.rich-copy h1,
.rich-copy h2,
.rich-copy h3,
.rich-copy h4,
.rich-copy h5,
.rich-copy h6 {
  margin-bottom: 0;
  line-height: 1.25;
}

.rich-copy h1 {
  font-size: 1.9rem;
}

.rich-copy h2 {
  font-size: 1.55rem;
}

.rich-copy h3 {
  font-size: 1.25rem;
}

.rich-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.35rem 0 1rem;
}

.rich-table th,
.rich-table td {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(191, 153, 92, 0.2);
  vertical-align: top;
  text-align: left;
}

.rich-table th {
  background: rgba(235, 229, 223, 0.72);
  color: var(--text);
}

.social-panel,
.split,
.footer-inner,
.search-row {
  display: grid;
  gap: 1.5rem;
}

.social-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin-top: 2.4rem;
  align-items: stretch;
}

.social-banner {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(191, 153, 92, 0.95), rgba(143, 107, 53, 0.92)),
    linear-gradient(135deg, #ccb288, #9c7740);
  color: white;
  box-shadow: 0 24px 50px rgba(156, 119, 64, 0.28);
}

.social-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.social-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-link,
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: #1877f2;
}

.split {
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.about-top {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.media-frame {
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.media-frame img {
  min-height: 380px;
}

.media-frame--portrait img {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

.info-stack,
.detail-stack,
.form-stack,
.filters,
.legal-copy {
  display: grid;
  gap: 1rem;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.pill {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.pill.is-active,
.chip {
  background: rgba(191, 153, 92, 0.16);
  color: var(--text);
}

.chip.muted {
  background: var(--surface-muted);
  color: var(--text-soft);
}

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

.search-row {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.notify-form-section {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.15rem;
  border: 1px solid rgba(191, 153, 92, 0.18);
  border-radius: 20px;
  background: rgba(244, 240, 235, 0.42);
}

.notify-form-section legend {
  padding: 0 0.45rem;
  color: var(--accent-dark);
  font-weight: 800;
}

.field,
.checkbox-card {
  display: grid;
  gap: 0.45rem;
}

.field label,
.checkbox-card legend {
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(191, 153, 92, 0.9);
  box-shadow: 0 0 0 4px rgba(191, 153, 92, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.checkbox-option {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--text-soft);
}

.offer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offer-card--interactive {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.offer-card--interactive:hover,
.offer-card--interactive:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(79, 59, 37, 0.14);
}

.offer-image {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-muted);
}

.offer-ribbon {
  position: absolute;
  top: 1rem;
  left: -3.25rem;
  z-index: 2;
  min-width: 11rem;
  padding: 0.45rem 0.75rem;
  background: #c73333;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-35deg);
  box-shadow: 0 10px 24px rgba(122, 20, 20, 0.28);
  pointer-events: none;
}

.favorite-toggle {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #9b8a77;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.favorite-toggle.is-active {
  color: #c14953;
}

.offer-content {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
}

.offer-topline,
.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.price {
  font-size: 1.45rem;
  font-weight: 700;
}

.status-title {
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
}

.success-box {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(86, 146, 97, 0.12);
  color: #295731;
  border: 1px solid rgba(86, 146, 97, 0.25);
}

body.is-action-busy {
  overflow: hidden;
}

.global-action-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(27, 27, 27, 0.28);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: all;
}

.global-action-overlay__panel {
  width: min(460px, 100%);
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(191, 153, 92, 0.35);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.global-action-overlay__status {
  font-weight: 600;
}

.global-action-overlay__status.is-loading::before {
  content: "⏳ ";
}

.global-action-overlay__status.is-success {
  color: #295731;
}

.global-action-overlay__status.is-error {
  color: #9f2f32;
}

.page-lead {
  margin: 0 0 2rem;
  max-width: 800px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(191, 153, 92, 0.18);
  background:
    linear-gradient(180deg, rgba(235, 229, 223, 0.5), rgba(226, 216, 205, 0.95)),
    #efe8e1;
}

.about-copy {
  max-width: 100%;
}

.about-copy p {
  margin: 0 0 1.15rem;
}

.footer-inner {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 2rem 0;
}

.footer-block h4,
.footer-block h5 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.footer-address {
  display: grid;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.footer-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  min-height: 100%;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.footer-links a,
.footer-admin-link {
  display: inline-block;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-admin-link {
  font-size: 0.76rem;
}

.footer-links a:hover,
.footer-admin-link:hover {
  transform: none;
  color: var(--text);
}

.footer-separator {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.mock-note {
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}


@media (min-width: 981px) {
  .admin-form-grid--oppervlaktes .admin-field--surface-total {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-form-grid--oppervlaktes .admin-field--surface-bewoonbare {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-form-grid--oppervlaktes .admin-field--surface-bebouwbare {
    grid-column: 1;
    grid-row: 2;
  }

  .admin-form-grid--oppervlaktes .admin-field--surface-huis-breedte {
    grid-column: 1;
    grid-row: 3;
  }

  .admin-form-grid--oppervlaktes .admin-field--surface-grond-breedte {
    grid-column: 2;
    grid-row: 3;
  }

  .admin-form-grid--oppervlaktes .admin-field--surface-huis-diepte {
    grid-column: 1;
    grid-row: 4;
  }

  .admin-form-grid--oppervlaktes .admin-field--surface-grond-diepte {
    grid-column: 2;
    grid-row: 4;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .about-top,
  .social-panel,
  .footer-inner,
  .search-row,
  .offer-grid,
  .favorites-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    padding-top: 0.5rem;
    justify-content: flex-start;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-dropdown {
    width: 100%;
    padding-bottom: 0;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .hero--flat .hero-image {
    min-height: 320px;
    border-radius: 0 0 0 40px;
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 1.2rem;
  }

  .card,
  .contact-card,
  .social-card,
  .hero-card {
    padding: 1.2rem;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
  }
}

.button-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid rgba(191, 153, 92, 0.24);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--surface-muted);
}

.error-box {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(181, 77, 77, 0.1);
  color: #7d2f2f;
  border: 1px solid rgba(181, 77, 77, 0.22);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-gallery-item img {
  min-height: 240px;
}

.detail-section {
  margin-top: 1.25rem;
  interpolate-size: allow-keywords;
}

.detail-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.detail-section > .detail-accordion-summary {
  min-height: 2.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 16px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.detail-section > .detail-accordion-summary:hover {
  background: rgba(191, 153, 92, 0.1);
}

.detail-section[open] > .detail-accordion-summary {
  background: rgba(191, 153, 92, 0.14);
  color: var(--accent-dark);
}

.detail-section > .detail-accordion-summary h3 {
  margin: 0;
  line-height: 1.25;
}

.detail-accordion-summary::-webkit-details-marker {
  display: none;
}

.detail-accordion-icon {
  display: block;
  flex: 0 0 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid rgba(155, 138, 119, 0.9);
  border-bottom: 2px solid rgba(155, 138, 119, 0.9);
  transform: rotate(-45deg);
  transform-origin: center;
  transition:
    border-color 160ms ease,
    transform 180ms ease;
}

.detail-section > .detail-accordion-summary:hover .detail-accordion-icon,
.detail-section[open] > .detail-accordion-summary .detail-accordion-icon {
  border-color: var(--accent-dark);
}

details[open] > .detail-accordion-summary .detail-accordion-icon {
  transform: rotate(45deg);
}

.detail-accordion-panel {
  margin-top: 0.75rem;
}

.detail-section::details-content {
  block-size: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    block-size 180ms ease,
    opacity 160ms ease;
}

.detail-section[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.detail-address {
  margin: -0.35rem 0 0;
}

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

.detail-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(235, 229, 223, 0.45);
}

.detail-item--full {
  grid-column: 1 / -1;
}

.detail-label {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.detail-value {
  color: var(--text);
  font-weight: 600;
  line-height: 1.7;
  word-break: break-word;
}

.admin-auth-shell,
.admin-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
}

.admin-shell--sidebar-closed {
  grid-template-columns: minmax(0, 1fr);
}

.admin-auth-shell--single {
  grid-template-columns: minmax(0, 520px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.admin-sidebar {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
}

.admin-empty {
  box-shadow: none;
  padding: 1.25rem;
}

.admin-offer-item {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  width: 100%;
  border: 1px solid rgba(191, 153, 92, 0.18);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 1rem;
  color: var(--text);
  cursor: pointer;
}

.admin-offer-item.is-active {
  background: rgba(191, 153, 92, 0.15);
  border-color: rgba(191, 153, 92, 0.4);
}

.admin-offer-item span {
  color: var(--text-soft);
}

.admin-editor {
  gap: 1rem;
}

.admin-editor .toolbar {
  margin-bottom: 0.6rem;
}

.admin-section {
  display: grid;
  gap: 1rem;
}

.admin-section-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(191, 153, 92, 0.14);
  background: rgba(244, 240, 235, 0.55);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-section-heading {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
}

.admin-section-heading h3 {
  margin: 0;
}

.admin-section > .admin-section-heading {
  padding-top: 0;
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-field--roomy textarea {
  min-height: 220px;
}

.field-help {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.admin-media-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.admin-media-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(191, 153, 92, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-media-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.admin-media-item span,
.admin-media-item a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-media-remove {
  flex: 0 0 auto;
  padding: 0.65rem 0.9rem;
}

@media (max-width: 980px) {
  .admin-auth-shell,
  .admin-shell,
  .detail-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
  }

  .admin-media-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.button-row--detail-actions {
  justify-content: space-between;
  align-items: center;
}

.checkbox-option--start {
  align-items: flex-start;
}

.inline-link--legal {
  display: inline;
  min-height: auto;
  padding: 0;
  font-weight: 700;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(29, 26, 23, 0.42);
}

body.has-modal-open {
  overflow: hidden;
}

.detail-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.detail-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.detail-modal-header h2 {
  margin-bottom: 0;
}

.detail-modal-close {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.button-row--modal-actions {
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 640px) {
  .button-row--detail-actions,
  .button-row--modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.about-contact-list {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.button-danger {
  background-color: #e53935;
  color: white;
}

.button-danger:hover {
  background-color: #c62828;
}
