﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");
:root {
  --ink: #18352f;
  --green: #214f43;
  --green-2: #2f6b5b;
  --coral: #ee6b58;
  --cream: #fbf7ef;
  --sand: #f0e6d5;
  --white: #fff;
  --muted: #65746f;
  --line: #dce2de;
  --shadow: 0 18px 50px rgba(24, 53, 47, 0.1);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
}
h1,
h2,
h3,
.brand {
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: -0.035em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid rgba(24, 53, 47, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: -0.06em;
}
.brand span {
  color: var(--coral);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
}
.main-nav a:not(.button).active {
  color: var(--coral);
}
.nav-text-button,
.button-link,
.inline-state button {
  border: 0;
  background: none;
  color: var(--green-2);
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle,
.nav-toggle-label {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 46px;
  font-size: 0.95rem;
}
.button:hover {
  background: #1a4538;
  color: #fff;
  box-shadow: 0 6px 20px rgba(33, 79, 67, 0.18);
  transform: translateY(-2px);
}
.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.button--small {
  min-height: 40px;
  padding: 0.55rem 1rem;
}
.button--block {
  width: 100%;
}
.button--light {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}
.text-link,
.back-link {
  color: var(--green-2);
  font-weight: 700;
}
.hero {
  background: var(--cream);
  overflow: hidden;
}
.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 5rem;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.02;
  max-width: 760px;
  margin: 0.8rem 0 1.35rem;
}
.hero-copy h1 em {
  color: var(--coral);
  font-style: normal;
}
.hero-copy > p {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 590px;
}
.eyebrow {
  text-transform: uppercase;
  color: var(--coral);
  font-size: 0.73rem;
  letter-spacing: 0.15em;
  font-weight: 800;
}
.eyebrow--light {
  color: #ffd8d0;
}
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 620px;
  margin: 2rem 0 1rem;
}
.search-bar > span {
  font-size: 1.5rem;
  margin-left: 0.8rem;
}
.search-bar input {
  border: 0;
  outline: 0;
  padding: 0.8rem;
  flex: 1;
  min-width: 0;
}
.trust-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-art {
  height: 420px;
  position: relative;
}
.sun {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #f4c774;
  right: 3%;
  top: 8%;
}
.shape {
  position: absolute;
  border-radius: 35% 65% 50% 50%;
}
.shape-a {
  width: 250px;
  height: 290px;
  background: var(--green-2);
  right: 15%;
  top: 23%;
  transform: rotate(9deg);
}
.shape-b {
  width: 160px;
  height: 160px;
  background: var(--coral);
  right: 2%;
  bottom: 2%;
  opacity: 0.9;
}
.mini-card {
  position: absolute;
  left: 2%;
  bottom: 12%;
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.8rem;
}
.mini-card .mini-icon {
  grid-row: 1/3;
  background: #e8f0ec;
  padding: 0.7rem;
  border-radius: 11px;
  font-size: 1.5rem;
}
.mini-card small {
  color: var(--muted);
}
.section {
  padding: 82px 0;
}
.section--tint {
  background: #f4f7f5;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 3vw, 3.15rem);
  margin: 0.35rem 0 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.category-icon {
  height: 54px;
  width: 54px;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 1rem;
}
.category-card small {
  color: var(--muted);
  margin-top: 0.25rem;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.listing-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.listing-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.2s;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.listing-image {
  height: 185px;
  background: linear-gradient(135deg, #dfece7, #f5e4c9);
  display: grid;
  place-items: center;
  position: relative;
}
.listing-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-image > span {
  font: bold 4rem Manrope;
  color: rgba(33, 79, 67, 0.25);
}
.listing-image small {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--coral);
  color: #fff;
  border-radius: 99px;
  padding: 0.3rem 0.65rem;
  font-weight: 700;
}
.listing-body {
  padding: 1.15rem;
}
.listing-category {
  color: var(--coral);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.listing-body h3 {
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.35rem 0 0.6rem;
}
.price {
  font-size: 1.35rem;
}
.listing-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 1rem;
}
.skeleton {
  background: linear-gradient(90deg, #edf0ee 25%, #f8f9f8 50%, #edf0ee 75%);
  background-size: 200% 100%;
  animation: shine 1.5s infinite;
  border-radius: var(--radius);
}
.category-skeleton {
  height: 180px;
}
.listing-skeleton {
  height: 340px;
}
.plan-skeleton {
  height: 430px;
}
.detail-skeleton {
  height: 620px;
  margin: 3rem 0;
}
@keyframes shine {
  to {
    background-position: -200% 0;
  }
}
.empty-state {
  text-align: center;
  border: 1px dashed #b8c5c0;
  border-radius: var(--radius);
  padding: 3.5rem 1.5rem;
}
.empty-state > span {
  font-size: 2rem;
}
.inline-state,
.backend-note {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 1rem 1.2rem;
  border-radius: 12px;
}
.cta-band {
  background: var(--green);
  color: #fff;
  padding: 60px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 {
  font-size: 2rem;
  margin: 0.3rem 0;
}
.cta-note {
  margin: 0;
  opacity: 0.85;
  font-size: 0.95rem;
}
.site-footer {
  background: #132e28;
  color: #dbe6e2;
  padding: 42px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand--footer,
.brand--light {
  color: #fff;
}
.footer-inner p {
  margin: 0;
}
.footer-inner nav {
  display: flex;
  gap: 1.5rem;
}
.page-hero {
  background: var(--cream);
  padding: 65px 0;
}
.page-hero p {
  color: var(--muted);
  margin: 0;
}
.page-hero--center {
  text-align: center;
}

.contact-page {
  padding-block: 4rem 5rem;
}

.contact-heading {
  width: min(680px, 100%);
  margin: 0 auto 2.25rem;
  text-align: center;
}

.contact-heading h2 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.contact-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.whatsapp-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(900px, 100%);
  margin-inline: auto;
}

.whatsapp-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.whatsapp-card:hover {
  border-color: #25d366;
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.16);
  transform: translateY(-3px);
}

.whatsapp-card__icon {
  display: grid;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e9fbef;
  color: #20b858;
  place-items: center;
}

.whatsapp-icon {
  width: 38px;
  height: 38px;
}

.whatsapp-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.whatsapp-card__content small {
  color: #168d45;
  font-weight: 700;
}

.whatsapp-card__content strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.whatsapp-card__content span {
  color: var(--muted);
  font-size: 0.9rem;
}

.whatsapp-card__arrow {
  color: var(--green-2);
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(900px, 100%);
  margin: 2rem auto 0;
}

.contact-help article {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--cream);
}

.contact-help article > span {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  place-items: center;
}

.contact-help h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.contact-help p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.results-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding-block: 55px;
}
.filters {
  border: 1px solid var(--line);
  padding: 1.4rem;
  border-radius: var(--radius);
  height: max-content;
  position: sticky;
  top: 100px;
}
.filters h2 {
  font-size: 1.2rem;
}
.filters label,
.auth-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.filters input,
.filters select,
.auth-form input {
  display: block;
  width: 100%;
  border: 1px solid #bac5c1;
  border-radius: 9px;
  padding: 0.72rem;
  margin-top: 0.35rem;
  background: #fff;
}
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.results-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.results-head h2 {
  margin: 0.25rem 0;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.pagination button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 0.6rem 0.9rem;
}
.pagination button:disabled {
  opacity: 0.4;
}
.detail-page {
  padding-block: 45px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.gallery-main {
  position: relative;
}

.gallery-main-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}

.gallery-main-image img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(14, 45, 38, 0.72);
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover {
  background: rgba(14, 45, 38, 0.92);
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow--previous {
  left: 1rem;
}

.gallery-arrow--next {
  right: 1rem;
}

.gallery-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 45, 38, 0.78);
  color: #fff;
  font-size: 0.82rem;
}
.image-placeholder {
  height: 480px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dfece7, #f5e4c9);
  font: bold 8rem Manrope;
  color: rgba(33, 79, 67, 0.2);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.gallery-thumb {
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.gallery-thumb:hover,
.gallery-thumb--active {
  border-color: var(--coral);
  opacity: 1;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: 2rem;
  background: rgba(5, 18, 15, 0.92);
  place-items: center;
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  display: grid;
  width: min(1200px, 100%);
  height: min(88vh, 900px);
  place-items: center;
  cursor: default;
}

.lightbox-dialog > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 1;
  display: grid;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(14, 45, 38, 0.82);
  color: #fff;
  place-items: center;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--coral);
}

.lightbox-close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 2.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-arrow--previous {
  left: 1rem;
}

.lightbox-arrow--next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 0;
  left: 50%;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 45, 38, 0.82);
  color: #fff;
  font-size: 0.9rem;
  transform: translateX(-50%);
}
.detail-copy {
  padding-top: 2rem;
}
.detail-copy h1 {
  font-size: 2.6rem;
  margin: 0.4rem 0 1.4rem;
}
.detail-description {
  white-space: pre-line;
  color: #41534d;
}
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: max-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}
.detail-price {
  display: block;
  font: 800 2rem Manrope;
  margin: 0.5rem 0;
}
.pill {
  display: inline-block;
  background: #e7f1ed;
  border-radius: 99px;
  padding: 0.3rem 0.7rem;
  color: var(--green-2);
  font-size: 0.8rem;
  font-weight: 700;
}
.contact-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.4rem 0;
}
.contact-panel h2 {
  font-size: 1rem;
}
.contact-panel .button + .button {
  margin-top: 0.6rem;
}
.muted {
  color: var(--muted);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: center;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.plan-card--featured {
  border: 2px solid var(--coral);
  box-shadow: var(--shadow);
  padding-block: 2.7rem;
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
}
.plan-price {
  display: block;
  font: 800 2.3rem Manrope;
}
.plan-card > small {
  color: var(--muted);
}
.plan-card ul {
  list-style: none;
  padding: 1rem 0;
  line-height: 2;
}
.plan-grid + .backend-note {
  margin-top: 2rem;
}
.auth-page {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.auth-aside {
  background: var(--green);
  color: #fff;
  padding: 3rem 8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside--coral {
  background: #c95445;
}
.auth-aside h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
  max-width: 550px;
}
.auth-aside p {
  color: #d5e2de;
  font-size: 1.1rem;
}
.auth-form-wrap {
  padding: 3rem 10vw;
}
.auth-form {
  max-width: 520px;
  margin: 8vh auto 0;
}
.auth-form h1 {
  font-size: 2.3rem;
  margin: 0.4rem 0;
}
.auth-form > p {
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.validation-message {
  display: block;
  color: #b42318;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.valid.modified:not([type="checkbox"]) {
  border-color: #2f7d5c;
}
.invalid {
  border-color: #b42318 !important;
}
.alert {
  background: #fff0ed;
  border: 1px solid #f3b4aa;
  color: #8b2d20;
  padding: 0.8rem 1rem;
  border-radius: 9px;
  margin: 1rem 0;
}
.form-foot {
  text-align: center;
  margin-top: 1.5rem !important;
}
.form-foot a {
  color: var(--green-2);
  font-weight: 700;
}
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 76px);
}
.admin-nav {
  background: #173c33;
  color: #fff;
  padding: 2.5rem 1.8rem;
}
.admin-nav strong {
  display: block;
  font-size: 1.15rem;
  margin: 0.4rem 0 2rem;
}
.scope-indicator {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0.65rem 0 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #9bb9ae;
  border-radius: 999px;
  background: #e8f3ee;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.platform-shell .admin-nav {
  background: #102f29;
}

.platform-shell .admin-nav,
.platform-shell .admin-nav a,
.platform-shell .admin-nav strong {
  color: #fff;
}

.platform-shell .scope-indicator {
  border-color: #8fc9b3;
  background: #d8f0e6;
  color: #123d33;
}

.status-pill--trial {
  background: #e5ecff;
  color: #294a9b;
}
.admin-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-nav nav a {
  padding: 0.7rem;
  border-radius: 8px;
}
.admin-nav nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.admin-main {
  padding: 4rem clamp(1.5rem, 5vw, 5rem);
  background: #f7f8f7;
}
.admin-main > p {
  color: var(--muted);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.admin-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.admin-grid article > span {
  font-size: 1.7rem;
  color: var(--coral);
}
.admin-grid h2 {
  font-size: 1.2rem;
  margin: 0.7rem 0;
}
.access-state {
  text-align: center;
  padding: 15vh 1rem;
}
.access-state > span {
  font-size: 2.5rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
*:focus-visible {
  outline: 3px solid #f19a56;
  outline-offset: 3px;
}
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff2d8;
  padding: 1rem;
  z-index: 100;
}
#blazor-error-ui .dismiss {
  float: right;
  cursor: pointer;
}
@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .listing-grid,
  .listing-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 70px;
  }
  .hero-art {
    display: none;
  }
  .results-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    position: static;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    min-height: 340px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-nav nav {
    flex-direction: row;
    overflow: auto;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }
  .site-header {
    height: 66px;
  }

  .contact-page {
    padding-block: 2.5rem 3.5rem;
  }

  .whatsapp-options,
  .contact-help {
    grid-template-columns: 1fr;
  }

  .whatsapp-card {
    padding: 1rem;
  }

  .whatsapp-card__icon {
    width: 48px;
    height: 48px;
  }

  .whatsapp-icon {
    width: 32px;
    height: 32px;
  }
  .nav-toggle-label {
    display: flex;
    width: 28px;
    flex-direction: column;
    gap: 5px;
  }
  .nav-toggle-label span {
    height: 2px;
    background: var(--ink);
    width: 100%;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    background: #fff;
    padding: 1.3rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }
  .hero-grid {
    padding-block: 55px;
  }
  .hero-copy h1 {
    font-size: 2.65rem;
  }
  .search-bar {
    display: grid;
    grid-template-columns: auto 1fr;
  }
  .search-bar .button {
    grid-column: 1/3;
  }
  .trust-row {
    flex-direction: column;
    gap: 0.3rem;
  }
  .section {
    padding: 58px 0;
  }
  .section-heading {
    align-items: start;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card {
    min-height: 160px;
    padding: 1rem;
  }
  .listing-grid,
  .listing-grid--three {
    grid-template-columns: 1fr;
  }
  .cta-band .container,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }
  .results-layout {
    padding-block: 30px;
  }
  .detail-copy h1 {
    font-size: 2rem;
  }
  .gallery > img,
  .image-placeholder {
    height: 330px;
  }
  .auth-aside {
    padding: 2rem 1.5rem;
    min-height: 300px;
  }
  .auth-form-wrap {
    padding: 2rem 1.4rem;
  }
  .auth-form {
    margin-top: 3rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-heading h1,
.admin-heading h2 {
  margin-bottom: 0.25rem;
}
.admin-toolbar {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin: 1.5rem 0;
}
.admin-toolbar label {
  font-size: 0.8rem;
  font-weight: 700;
  flex: 1;
}
.admin-toolbar input,
.form-panel input,
.form-panel select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #bac5c1;
  border-radius: 9px;
  padding: 0.72rem;
  background: #fff;
}
.admin-table {
  height: 390px;
  margin-top: 1.5rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.data-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #f2f5f3;
}
.data-table th,
.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table td small {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
}
.status-pill {
  display: inline-block;
  border-radius: 99px;
  background: #e8f0ec;
  color: var(--green);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-section {
  margin-top: 2.5rem;
}
.admin-section > h2 {
  font-size: 1.35rem;
}
.catalog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.catalog-cards article,
.role-grid article,
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.catalog-cards small {
  color: var(--muted);
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.role-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.role-grid details ul {
  padding-left: 1.2rem;
}
.role-grid code {
  font-size: 0.72rem;
}
.success {
  background: #e5f5ec;
  border: 1px solid #9bdbb5;
  color: #185c36;
  padding: 0.8rem 1rem;
  border-radius: 9px;
  margin: 1rem 0;
}
.form-panel form > label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 1rem 0;
}
.access-state.compact {
  padding: 8vh 1rem;
}
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
@media (max-width: 900px) {
  .catalog-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .admin-heading,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-heading .button,
  .admin-toolbar .button {
    width: 100%;
  }
  .catalog-cards,
  .role-grid {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 2rem 1rem;
  }
}
.row-link {
  display: block;
}
.row-link:hover strong {
  color: var(--coral);
}
.workspace-heading {
  margin-top: 1.5rem;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}
.stepper a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem;
  border-bottom: 2px solid var(--line);
}
.stepper a span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e7eeeb;
  color: var(--green);
}
.stepper a.active {
  border-color: var(--coral);
  color: var(--ink);
}
.workspace-section {
  display: grid;
  grid-template-columns: 55px 180px 1fr;
  gap: 1.4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.workspace-section h2 {
  font-size: 1.25rem;
}
.section-index {
  font: 800 1.8rem Manrope;
  color: #b8c5c0;
}
.design-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.design-form label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
}
.design-form input:not([type="checkbox"]),
.design-form select,
.design-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #bac5c1;
  border-radius: 9px;
  padding: 0.72rem;
  background: #fff;
}
.design-form textarea {
  resize: vertical;
}
.design-form small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.3rem;
}
.span-2 {
  grid-column: 1/-1;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
}
.check input {
  width: 18px;
  height: 18px;
}
.blocked-control {
  background: #f5f6f5;
  border-radius: 10px;
  padding: 0.7rem;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.asset-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 0.7rem;
}
.asset-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.asset-card strong,
.asset-card small {
  display: block;
  padding: 0 0.7rem;
}
.asset-empty {
  border: 1px dashed #b8c5c0;
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.image-upload-preview {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.image-upload-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  object-fit: cover;
}
.image-upload-preview strong,
.image-upload-preview small {
  display: block;
  overflow-wrap: anywhere;
}
.image-upload-preview small {
  margin: 0.25rem 0 0.7rem;
  color: var(--muted);
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 0.6rem;
}
.summary-row small {
  display: block;
  color: var(--muted);
}
.review-actions,
.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.review-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.button--secondary {
  background: #ffffff;
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.button--secondary:hover {
  background: #e8f0ec;
  border-color: #1a4538;
  color: #1a4538;
  box-shadow: 0 4px 12px rgba(33, 79, 67, 0.12);
  transform: translateY(-1px);
}
.button--danger {
  background: #c2574c;
  border-color: #c2574c;
  color: #fff;
  font-weight: 700;
}
.button--danger:hover {
  background: #a63b31;
  border-color: #a63b31;
  color: #fff;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.2rem;
}
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.info-card h2 {
  font-size: 1.2rem;
}
.action-stack {
  flex-direction: column;
}
.action-stack button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem;
  text-align: left;
}
.danger-link {
  color: #a63b31 !important;
}
.status-pill--warning {
  background: #fff0d8;
  color: #815511;
}
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1rem 0;
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.editor-panel {
  max-width: 850px;
  margin-top: 2rem;
}
.choice-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.permission-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.permission-matrix .check {
  align-items: flex-start;
}
.permission-matrix small {
  display: block;
}
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
@media (max-width: 900px) {
  .workspace-section {
    grid-template-columns: 45px 1fr;
  }
  .workspace-section > div:last-child {
    grid-column: 1/-1;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .stepper {
    overflow-x: auto;
  }
  .stepper a {
    min-width: 135px;
  }
}
@media (max-width: 640px) {
  .design-form,
  .permission-matrix,
  .toggle-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .workspace-section {
    grid-template-columns: 1fr;
  }
  .section-index {
    font-size: 1rem;
  }
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .image-upload-preview {
    grid-template-columns: 1fr;
  }
  .image-upload-preview img {
    max-height: 280px;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .form-actions .button {
    width: 100%;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(19, 46, 40, 0.58);
  overflow-y: auto;
}
.review-modal {
  position: relative;
  display: block;
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 1.5rem;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(19, 46, 40, 0.28);
}
.review-modal h3 {
  margin-bottom: 1.25rem;
}
body:has(.modal-overlay) {
  overflow: hidden;
}
.inline-editor {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.master-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  font-weight: 700;
}
.master-links a:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.table-actions a,
.table-actions button {
  border: 0;
  background: none;
  color: var(--green-2);
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem;
}
.confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff4df;
  border: 1px solid #edce91;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}
.confirm-bar small {
  display: block;
  color: var(--muted);
}
.confirm-bar > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.module-tabs a {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  padding: 0.55rem 1rem;
  font-weight: 700;
  color: var(--green-2);
}
.module-tabs a.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.geography-filters select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #bac5c1;
  border-radius: 9px;
  padding: 0.72rem;
  background: #fff;
}
.geography-filters label {
  min-width: 190px;
}
@media (max-width: 640px) {
  .confirm-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .confirm-bar > div:last-child {
    justify-content: flex-end;
  }
}

/* Consistent action sizing, alignment and interaction states. */
button {
  appearance: none;
}

.button {
  gap: 0.45rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
  position: relative;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button--secondary {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
}

.button--secondary:hover {
  background: #e8f0ec;
  border-color: var(--green);
  color: var(--green);
}

.button--light:hover {
  background: #f4f7f5;
  border-color: #f4f7f5;
  color: var(--green);
}

.button--danger,
.button--alert {
  background: #a63b31;
  border-color: #a63b31;
  color: #fff;
}

.button--alert {
  background: #c2574c;
  border-color: #c2574c;
  color: #fff;
  font-weight: 700;
}
.button--alert:hover {
  background: #a63b31;
  border-color: #a63b31;
  color: #fff;
  box-shadow: 0 6px 20px rgba(194, 87, 76, 0.25);
  transform: translateY(-2px);
}

.button--danger:hover {
  background: #842d25;
  border-color: #842d25;
  color: #fff;
}

.button:disabled,
.button[aria-disabled="true"] {
  box-shadow: none;
  opacity: 0.58;
}

.nav-text-button,
.button-link,
.inline-state button,
.table-actions a,
.table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.nav-text-button,
.button-link,
.inline-state button {
  padding: 0.5rem 0.65rem;
}

.nav-text-button:hover,
.button-link:hover,
.inline-state button:hover,
.table-actions a:hover,
.table-actions button:hover {
  background: #e8f0ec;
  color: var(--green);
}

.admin-toolbar .button {
  min-height: 46px;
}

.pagination {
  flex-wrap: wrap;
}

.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 112px;
  color: var(--green);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.pagination button:not(:disabled):hover {
  background: #e8f0ec;
  border-color: #a9bdb5;
}

.pagination button:disabled,
.action-stack button:disabled {
  cursor: not-allowed;
}

.table-actions {
  justify-content: flex-end;
  min-width: max-content;
}

.table-actions a,
.table-actions button {
  padding: 0.45rem 0.6rem;
}

.data-table th:last-child,
.data-table td:last-child {
  text-align: right;
}

.admin-grid article,
.plan-card,
.info-card {
  display: flex;
  flex-direction: column;
}

.admin-grid article > .button,
.plan-card > .button,
.info-card > .button {
  align-self: flex-start;
  margin-top: auto;
}

.plan-grid {
  align-items: stretch;
}

.plan-card > .button--block {
  align-self: stretch;
}

.action-stack button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.action-stack button:not(:disabled):hover {
  background: #e8f0ec;
  border-color: #a9bdb5;
}

.inline-actions,
.review-actions,
.form-actions,
.confirm-bar > div:last-child {
  align-items: center;
}

.review-modal .form-actions {
  grid-column: 1/-1;
}

@media (max-width: 640px) {
  .section-heading,
  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .main-nav .button,
  .cta-band .button,
  .inline-actions .button,
  .review-actions .button {
    width: 100%;
  }

  .button--small {
    min-height: 44px;
  }

  .inline-actions,
  .review-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .pagination span {
    grid-column: 1/-1;
    grid-row: 1;
    text-align: center;
  }

  .pagination button {
    min-width: 0;
    width: 100%;
  }

  .confirm-bar > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .confirm-bar > div:last-child > * {
    width: 100%;
  }
}

/* Responsive reinforcement: preserves the existing visual system. */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-shell > main {
  flex: 1 0 auto;
  min-width: 0;
}

img,
svg,
video {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - clamp(2rem, 5vw, 4rem)));
}

.hero-grid,
.results-layout,
.detail-grid,
.detail-layout,
.auth-page,
.admin-shell,
.admin-grid,
.catalog-cards,
.role-grid,
.workspace-section,
.design-form,
.form-grid,
.permission-matrix,
.toggle-grid,
.listing-grid,
.category-grid,
.plan-grid {
  min-width: 0;
}

.hero-grid > *,
.results-layout > *,
.detail-grid > *,
.detail-layout > *,
.auth-page > *,
.admin-shell > *,
.admin-grid > *,
.catalog-cards > *,
.role-grid > *,
.workspace-section > *,
.design-form > *,
.form-grid > *,
.permission-matrix > *,
.toggle-grid > *,
.listing-grid > *,
.category-grid > *,
.plan-grid > * {
  min-width: 0;
}

.hero-grid {
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy h1 {
  overflow-wrap: break-word;
}

.search-bar {
  width: 100%;
}

.search-bar input {
  width: 100%;
}

.listing-card,
.plan-card,
.admin-grid article,
.catalog-cards article,
.role-grid article {
  height: 100%;
}

.listing-body {
  min-width: 0;
}

.listing-meta {
  gap: 0.75rem;
}

.listing-meta > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gallery-main-image img,
.image-placeholder {
  height: clamp(320px, 42vw, 480px);
}

.gallery-thumb img {
  height: auto;
  aspect-ratio: 4/3;
}

.detail-copy h1,
.admin-main h1,
.auth-form h1 {
  overflow-wrap: anywhere;
}

.contact-panel,
.filters {
  min-width: 0;
}

.auth-form-wrap,
.auth-aside {
  min-width: 0;
}

.admin-main {
  min-width: 0;
}

.admin-nav nav a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.table-wrap {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
  overflow-wrap: break-word;
}

.data-table code,
.role-grid code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-toolbar label,
.geography-filters label {
  min-width: 0;
}

.design-form input:not([type="checkbox"]),
.design-form select,
.design-form textarea,
.form-panel input,
.form-panel select,
.form-panel textarea,
.filters input,
.filters select,
.auth-form input {
  min-width: 0;
}

.stepper {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.summary-row > *,
.confirm-bar > *,
.admin-heading > * {
  min-width: 0;
}

.review-modal {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2rem;
  }

  .hero-art {
    transform: scale(0.88);
    transform-origin: center right;
  }

  .results-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 2rem;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
    gap: 1.75rem;
  }

  .admin-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .admin-nav {
    padding-inline: 1.35rem;
  }

  .admin-main {
    padding-inline: clamp(1.5rem, 4vw, 3rem);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .results-layout,
  .detail-grid,
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    display: none;
    transform: none;
  }

  .page-hero {
    padding-block: clamp(2.75rem, 8vw, 4rem);
  }

  .section {
    padding-block: clamp(3.5rem, 8vw, 5rem);
  }

  .results-layout {
    gap: 2.25rem;
  }

  .filters,
  .contact-panel {
    position: static;
  }

  .admin-nav {
    padding: 1.25rem clamp(1rem, 4vw, 2rem);
  }

  .admin-nav strong {
    margin-bottom: 1rem;
  }

  .admin-nav nav {
    padding-bottom: 0.35rem;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .auth-page {
    min-height: 0;
  }

  .auth-aside {
    min-height: clamp(260px, 42vw, 340px);
    padding: clamp(2rem, 7vw, 3.5rem);
  }

  .auth-form-wrap {
    padding: clamp(2rem, 7vw, 4rem);
  }

  .auth-form {
    margin-top: clamp(2.5rem, 7vw, 4rem);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.75rem);
  }

  .hero-grid {
    padding-block: clamp(3rem, 12vw, 3.5rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 2.65rem);
  }

  .hero-copy > p {
    font-size: clamp(1rem, 4.5vw, 1.1rem);
  }

  .search-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .section-heading h2,
  .page-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .cta-band {
    padding-block: clamp(2.75rem, 10vw, 3.75rem);
  }

  .cta-band h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .footer-inner,
  .footer-inner nav {
    width: 100%;
  }

  .footer-inner nav {
    flex-wrap: wrap;
  }

  .page-hero {
    padding-block: 2.75rem;
  }

  .results-layout,
  .detail-page {
    padding-block: 2rem;
  }

  .filters,
  .contact-panel,
  .plan-card,
  .form-panel,
  .info-card,
  .review-modal {
    padding: clamp(1rem, 4.5vw, 1.4rem);
  }

  .gallery-main-image img,
  .image-placeholder {
    height: clamp(240px, 78vw, 330px);
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.9rem;
  }

  .gallery-arrow--previous {
    left: 0.65rem;
  }

  .gallery-arrow--next {
    right: 0.65rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-dialog {
    height: 92vh;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox-arrow--previous {
    left: 0.5rem;
  }

  .lightbox-arrow--next {
    right: 0.5rem;
  }

  .lightbox-counter {
    bottom: 0.5rem;
  }

  .image-placeholder {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .detail-copy {
    padding-top: 1.25rem;
  }

  .detail-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .detail-price {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .empty-state {
    padding: clamp(2rem, 10vw, 3rem) 1rem;
  }

  .admin-heading {
    gap: 1rem;
  }

  .admin-main {
    padding: 2rem clamp(0.875rem, 4vw, 1.25rem);
  }

  .admin-toolbar {
    padding: 0.875rem;
  }

  .data-table {
    min-width: 640px;
  }

  .data-table th,
  .data-table td {
    padding: 0.8rem;
  }

  .stepper {
    margin-block: 1.5rem;
  }

  .workspace-section {
    gap: 0.75rem;
    padding-block: 1.75rem;
  }

  .asset-card img {
    height: auto;
    aspect-ratio: 4/3;
  }

  .summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-aside {
    min-height: 250px;
    padding: 2rem 1.4rem;
  }

  .auth-aside h1 {
    font-size: clamp(2.1rem, 10vw, 2.7rem);
  }

  .auth-form-wrap {
    padding: 2rem 1.4rem;
  }

  .auth-form {
    margin-top: 2.5rem;
  }

  .review-modal {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    border-radius: 14px;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  .filter-row,
  .asset-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-grid {
    gap: 0.7rem;
  }

  .category-card {
    min-height: 150px;
    padding: 0.9rem;
  }

  .category-card strong,
  .category-card small {
    overflow-wrap: anywhere;
  }

  .confirm-bar > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .pagination {
    grid-template-columns: minmax(0, 1fr);
  }

  .pagination button,
  .pagination span {
    grid-column: 1;
  }

  .pagination span {
    grid-row: auto;
  }
}

@media (min-width: 1600px) {
  .hero-grid {
    min-height: clamp(590px, 42vh, 700px);
  }

  .section {
    padding-block: clamp(5.1rem, 6vh, 6.5rem);
  }
}

/* Configuraciones */
.configurations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 1.25rem;
}

.configurations-layout > section {
  min-width: 0;
}

.configurations-toolbar label:first-child {
  min-width: min(100%, 320px);
}

.configurations-toggle {
  flex: 0 0 auto !important;
  align-self: center;
  margin: 0 !important;
  padding: 0.7rem 0.3rem;
  white-space: nowrap;
}

.configurations-toggle input,
.configuration-public-check input {
  flex: 0 0 auto;
  margin: 0;
}

.configurations-table {
  min-width: 790px;
}

.configurations-table code {
  color: var(--ink);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.configuration-value {
  width: min(30vw, 360px);
}

.configuration-value summary {
  display: block;
  overflow: hidden;
  color: #41534d;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.configuration-value summary::-webkit-details-marker {
  display: none;
}

.configuration-value summary::after {
  content: "Ver más";
  display: block;
  margin-top: 0.2rem;
  color: var(--green-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.configuration-value[open] summary::after {
  content: "Ocultar";
}

.configuration-value > div {
  max-height: 12rem;
  margin-top: 0.55rem;
  padding: 0.65rem;
  overflow: auto;
  border-radius: 8px;
  background: var(--cream);
  color: #41534d;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.status-pill--neutral {
  background: #eef0ef;
  color: #52615d;
}

.status-pill--inactive {
  background: #f8e4e0;
  color: #8b2d20;
}

.public-configuration {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.public-configuration__heading,
.configuration-modal__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.public-configuration__heading h2,
.configuration-modal__heading h3 {
  margin: 0.2rem 0 0.75rem;
}

.public-configuration > p {
  color: var(--muted);
  font-size: 0.88rem;
}

.public-json {
  max-height: 460px;
  margin: 1rem 0 0;
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #132e28;
  color: #edf8f4;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.public-preview-state {
  padding: 2rem 1rem;
  border: 1px dashed #b8c5c0;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.public-configuration .alert p {
  margin-bottom: 0.5rem;
}

.configuration-modal {
  width: min(680px, 100%);
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #eef3f1;
}

.configuration-form {
  grid-template-columns: minmax(0, 1fr);
}

.configuration-warning {
  margin: 0;
  font-size: 0.84rem;
}

.configuration-public-check {
  width: max-content;
  max-width: 100%;
  margin: 0.25rem 0 !important;
}

@media (max-width: 1050px) {
  .configurations-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-configuration {
    position: static;
  }
}

@media (max-width: 700px) {
  .configurations-heading {
    align-items: stretch;
  }

  .configurations-heading > .button {
    width: 100%;
  }

  .configurations-toolbar {
    align-items: stretch;
  }

  .configurations-toggle {
    align-self: flex-start;
    padding: 0.35rem 0;
  }

  .configurations-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .configurations-table {
    display: block;
    min-width: 0;
  }

  .configurations-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .configurations-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .configurations-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .configurations-table td {
    display: grid;
    grid-template-columns: 6.7rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    text-align: left !important;
  }

  .configurations-table td::before {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .configurations-table td:nth-child(1)::before {
    content: "Clave";
  }
  .configurations-table td:nth-child(2)::before {
    content: "Valor";
  }
  .configurations-table td:nth-child(3)::before {
    content: "Visibilidad";
  }
  .configurations-table td:nth-child(4)::before {
    content: "Estado";
  }

  .configurations-table td:last-child {
    display: block;
    background: #f7f9f8;
  }

  .configurations-table td:last-child::before {
    content: none;
  }

  .configurations-table .table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .configurations-table .table-actions button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    text-align: center;
  }

  .configuration-value {
    width: 100%;
    min-width: 0;
  }

  .public-configuration__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .public-configuration__heading .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .configurations-table td {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .configurations-table .table-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
