:root {
  --accent: #de5a65;
  --accent-dark: #ba3f50;
  --accent-soft: #fff2ef;
  --ink: #1f1a17;
  --muted: #766b63;
  --muted-strong: #4b413a;
  --surface: #fffdf9;
  --surface-2: #f7efe6;
  --surface-3: #efe4d7;
  --border: #e7dbc9;
  --success: #32785d;
  --danger: #b94035;
  --shadow-sm: 0 8px 20px rgba(47, 30, 20, 0.06);
  --shadow-md: 0 20px 48px rgba(47, 30, 20, 0.1);
  --shadow-lg: 0 28px 72px rgba(47, 30, 20, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

html {
  background: #f7f0e8;
}

body {
  background:
    radial-gradient(circle at top left, rgba(222, 90, 101, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(198, 154, 98, 0.12), transparent 24%),
    linear-gradient(180deg, #fcf8f2 0%, #fffdf9 38%, #f6eee6 100%);
  color: var(--ink);
}

body.admin-shell {
  background:
    radial-gradient(circle at top right, rgba(222, 90, 101, 0.08), transparent 24%),
    linear-gradient(180deg, #f8f2ea 0%, #f4ede6 100%);
}

::selection {
  background: rgba(222, 90, 101, 0.18);
}

.navbar {
  background: rgba(255, 252, 247, 0.84);
  border-bottom: 1px solid rgba(60, 42, 28, 0.08);
  box-shadow: 0 16px 38px rgba(47, 30, 20, 0.06);
}

.navbar-brand,
.sidebar-brand h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.navbar-brand {
  font-size: 1.42rem;
}

.navbar-links a {
  border: 1px solid transparent;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(71, 52, 36, 0.08);
  box-shadow: 0 8px 18px rgba(47, 30, 20, 0.05);
}

.btn {
  letter-spacing: -0.01em;
}

.btn-primary,
.btn-nav {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff !important;
  box-shadow: 0 18px 32px rgba(186, 63, 80, 0.22);
}

.btn-dark {
  background: #241d19;
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 26, 23, 0.18);
}

.btn-ghost,
.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(71, 52, 36, 0.12);
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(71, 52, 36, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(222, 90, 101, 0.4);
  box-shadow:
    0 0 0 4px rgba(222, 90, 101, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero {
  border: 1px solid rgba(71, 52, 36, 0.08);
  background: linear-gradient(145deg, rgba(255, 249, 242, 0.94) 0%, rgba(255, 255, 255, 0.96) 44%, rgba(246, 236, 228, 0.94) 100%);
  box-shadow: 0 28px 80px rgba(47, 30, 20, 0.12);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.hero-bg {
  background:
    radial-gradient(circle at top right, rgba(222, 90, 101, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(194, 154, 101, 0.2), transparent 24%);
}

.hero-grid-overlay {
  opacity: 0.12;
}

.hero-tag,
.section-tag,
.badge-gold,
.sidebar a:hover,
.sidebar a.active,
.profile-avatar {
  background: rgba(194, 154, 101, 0.12);
  color: #8a6238;
}

.hero-search {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(71, 52, 36, 0.08);
  box-shadow: 0 20px 42px rgba(47, 30, 20, 0.09);
}

.hero-trust,
.quick-links-list,
.showcase-meta,
.search-preset-links,
.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust {
  margin-top: 18px;
}

.hero-trust span,
.quick-link-chip,
.search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(71, 52, 36, 0.08);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.quick-link-chip,
.search-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-link-chip:hover,
.search-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(47, 30, 20, 0.08);
}

.hero-showcase {
  display: grid;
  gap: 16px;
}

.showcase-card,
.showcase-cities,
.service-item,
.collection-card,
.search-highlight {
  border: 1px solid rgba(71, 52, 36, 0.1);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(47, 30, 20, 0.07);
  backdrop-filter: blur(12px);
}

.showcase-card {
  overflow: hidden;
}

.showcase-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6eee6, #efe4d7);
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-body {
  padding: 22px;
}

.showcase-eyebrow,
.service-kicker,
.collection-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6238;
  font-weight: 800;
}

.showcase-body h3,
.service-item h3,
.collection-card h3 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.showcase-body p,
.service-item p,
.collection-card p,
.search-highlight span,
.results-head small {
  color: var(--muted);
  line-height: 1.7;
}

.showcase-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6eee6;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.showcase-footer strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.showcase-cities {
  padding: 20px;
}

.showcase-list-title {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-strong);
  font-weight: 800;
}

.destination-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(71, 52, 36, 0.08);
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.destination-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 30, 20, 0.08);
}

.destination-pill strong {
  color: var(--ink);
}

.destination-pill span {
  color: var(--muted);
  font-size: 0.88rem;
}

.home-quick-links,
.service-strip {
  margin-top: 28px;
}

.service-strip,
.collection-grid,
.search-highlights {
  display: grid;
  gap: 18px;
}

.service-item,
.collection-card,
.search-highlight {
  padding: 22px;
}

.collection-card {
  display: block;
}

.collection-count {
  display: inline-flex;
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f6eee6;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.search-header {
  align-items: flex-start;
}

.search-highlight strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.filters-actions {
  margin-top: 4px;
}

.hero-stat,
.stat-card,
.card-imovel,
.filtros,
.busca-mapa,
#calendar,
.imovel-info,
.selected-property,
.auth-card,
.auth-hero,
.table-wrap,
.profile-card,
.admin-panel,
.form-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(71, 52, 36, 0.1);
  box-shadow: 0 18px 38px rgba(47, 30, 20, 0.07);
}

.card-imovel,
.admin-panel,
.profile-card,
.auth-card,
.auth-hero {
  backdrop-filter: blur(12px);
}

.card-imovel:hover {
  box-shadow: 0 30px 68px rgba(47, 30, 20, 0.14);
}

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26, 18, 14, 0.14) 100%);
  pointer-events: none;
}

.card-badge {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(71, 52, 36, 0.08);
}

.card-badge-secondary {
  margin-left: auto;
  background: rgba(36, 29, 25, 0.7);
  color: #fff;
  border-color: transparent;
}

.card-body h3,
.section-title,
.page-header h1,
.imovel-info h1,
.auth-hero h1,
.panel-top h2,
.profile-main h3,
.price,
.card-price {
  font-family: var(--font-display);
}

.price,
.card-price {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.card-topline {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
}

.card-price-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.card-detail,
.detalhes span,
.profile-meta span,
.badge-neutral {
  background: #f6eee6;
  color: var(--muted-strong);
}

.empty-state {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(71, 52, 36, 0.14);
}

.sidebar {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(247, 239, 230, 0.96) 100%);
  box-shadow: inset -1px 0 0 rgba(71, 52, 36, 0.08);
}

.sidebar-section-label,
th {
  color: #7c6650;
}

thead {
  background: rgba(246, 238, 230, 0.9);
}

table tr:hover td {
  background: rgba(255, 249, 242, 0.72);
}

.inline-actions a,
.table-wrap a {
  color: var(--accent-dark);
}

.results-head-premium {
  align-items: center;
}

.results-head-premium div {
  display: grid;
  gap: 4px;
}

.fc .fc-button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: transparent;
}

.fc .fc-daygrid-day.fc-day-today {
  background: rgba(222, 90, 101, 0.08);
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) 420px;
    align-items: stretch;
  }

  .hero {
    padding: 42px;
  }

  .card-img-wrap {
    height: 290px;
  }

  .showcase-image {
    height: 300px;
  }

  .service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .search-highlights {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .admin-content {
    padding-top: 42px;
  }
}

body.admin-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(222, 90, 101, 0.08) 0%, transparent 32%),
    linear-gradient(215deg, rgba(138, 98, 56, 0.12) 0%, transparent 30%),
    linear-gradient(180deg, #fbf6ef 0%, #f4ece3 100%);
}

.admin {
  color: var(--ink);
}

.sidebar {
  width: 292px;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.92) 0%, rgba(247, 239, 230, 0.96) 100%);
  border-right: 1px solid rgba(71, 52, 36, 0.1);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.72), 20px 0 60px rgba(47, 30, 20, 0.06);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 24px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(71, 52, 36, 0.08);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #241d19 0%, #584237 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(47, 30, 20, 0.16);
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1;
}

.sidebar-brand p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-section,
.sidebar-meta {
  margin-bottom: 14px;
}

.sidebar-section-label {
  padding: 12px 12px 8px;
  color: #8a6238;
}

.sidebar a {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--muted-strong);
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(71, 52, 36, 0.08);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(47, 30, 20, 0.08);
}

.nav-token {
  background: rgba(194, 154, 101, 0.13);
  color: #8a6238;
  box-shadow: inset 0 0 0 1px rgba(138, 98, 56, 0.08);
}

.sidebar a.active .nav-token,
.sidebar a:hover .nav-token {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
}

.sidebar-footer {
  border-top-color: rgba(71, 52, 36, 0.1);
}

.admin-content {
  padding: 28px 28px 64px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(71, 52, 36, 0.1);
}

.admin-topbar div {
  display: grid;
  gap: 8px;
}

.admin-topbar strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.admin-shell .page-header {
  padding: 0 0 20px;
  border-bottom-color: rgba(71, 52, 36, 0.1);
}

.admin-shell .page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.05em;
}

.admin-shell .grid {
  gap: 18px;
}

.admin-shell .stat-card {
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.9) 0%, rgba(255, 255, 255, 0.78) 52%, rgba(247, 239, 230, 0.82) 100%);
  border: 1px solid rgba(71, 52, 36, 0.09);
  box-shadow: 0 20px 42px rgba(47, 30, 20, 0.08);
}

.admin-shell .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(194, 154, 101, 0.14);
  color: #8a6238;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.admin-shell .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
}

.admin-panel,
.table-wrap,
.profile-card,
.form-card,
#calendar {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(71, 52, 36, 0.1);
  box-shadow: 0 20px 44px rgba(47, 30, 20, 0.08);
  backdrop-filter: blur(14px);
}

.admin-panel {
  padding: 24px;
}

.panel-top {
  margin-bottom: 18px;
}

.panel-top h2 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.admin-shell table {
  min-width: 720px;
}

.admin-shell th {
  color: #8a6238;
}

.admin-shell td {
  color: var(--muted-strong);
}

.admin-shell tbody tr:hover td {
  background: rgba(255, 249, 242, 0.78);
}

.admin-shell .badge,
.admin-shell .badge-neutral,
.admin-shell .profile-meta span {
  border: 1px solid rgba(71, 52, 36, 0.08);
  background: rgba(246, 238, 230, 0.86);
}

.profile-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 54px rgba(47, 30, 20, 0.12);
}

.profile-avatar {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(194, 154, 101, 0.2), rgba(222, 90, 101, 0.14));
  color: #8a6238;
}

.admin-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid rgba(71, 52, 36, 0.09);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.94) 0%, rgba(255, 255, 255, 0.82) 54%, rgba(246, 238, 230, 0.9) 100%);
  box-shadow: 0 28px 68px rgba(47, 30, 20, 0.1);
}

.admin-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -48% auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(222, 90, 101, 0.13), transparent 68%);
  pointer-events: none;
}

.admin-hero-panel h1 {
  position: relative;
  z-index: 1;
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.admin-hero-panel p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-kpi {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(71, 52, 36, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-kpi span,
.hero-kpi small,
.metric-card small,
.metric-card span,
.portfolio-main span,
.command-action span,
.form-section-title p,
.upload-zone small {
  color: var(--muted);
}

.hero-kpi strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.executive-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(71, 52, 36, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 44px rgba(47, 30, 20, 0.08);
  backdrop-filter: blur(14px);
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -36px -52px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(194, 154, 101, 0.12);
}

.metric-card-featured {
  background:
    linear-gradient(145deg, rgba(36, 29, 25, 0.94) 0%, rgba(83, 63, 52, 0.92) 100%);
  color: #fff;
}

.metric-card-featured span,
.metric-card-featured small {
  color: rgba(255, 255, 255, 0.72);
}

.metric-card-featured .metric-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.metric-card-featured .stat-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(71, 52, 36, 0.08);
  background: rgba(246, 238, 230, 0.72);
  color: #8a6238;
  font-size: 0.74rem;
  font-weight: 800;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.metric-card > span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.metric-card small {
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.metric-progress {
  position: relative;
  z-index: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.metric-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff 0%, rgba(222, 90, 101, 0.92) 100%);
}

.command-strip {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.command-action {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(71, 52, 36, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 32px rgba(47, 30, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.command-action:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 42px rgba(47, 30, 20, 0.1);
}

.command-action strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.dashboard-panels {
  display: grid;
  gap: 20px;
}

.portfolio-list,
.timeline-list {
  display: grid;
  gap: 12px;
}

.portfolio-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(71, 52, 36, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.portfolio-thumb {
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6eee6, #efe4d7);
  color: #8a6238;
  font-weight: 900;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.portfolio-main strong,
.timeline-item strong {
  color: var(--ink);
}

.portfolio-main span,
.timeline-item p {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.portfolio-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-meta strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0 14px 18px;
  border-bottom: 1px solid rgba(71, 52, 36, 0.08);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(222, 90, 101, 0.1);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item time {
  color: #8a6238;
  font-weight: 900;
  font-size: 0.82rem;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--muted);
}

.property-form-shell {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(71, 52, 36, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 64px rgba(47, 30, 20, 0.1);
  backdrop-filter: blur(14px);
}

.form-intro,
.form-section,
.form-actions-bar {
  padding: 26px;
}

.form-intro {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(36, 29, 25, 0.94), rgba(83, 63, 52, 0.9));
  color: #fff;
}

.form-intro h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.form-intro .section-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.form-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-steps span {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-section {
  border-bottom: 1px solid rgba(71, 52, 36, 0.09);
}

.form-section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.form-section-title > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(194, 154, 101, 0.14);
  color: #8a6238;
  font-weight: 900;
}

.form-section-title h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.form-section-title p {
  margin: 0;
  line-height: 1.55;
}

.property-form-shell .admin-form-grid {
  gap: 18px;
}

.property-form-shell .form-group {
  margin-bottom: 0;
}

.property-form-shell label {
  color: var(--muted-strong);
}

.property-form-shell input,
.property-form-shell textarea,
.property-form-shell select {
  min-height: 52px;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.9);
}

.property-form-shell textarea {
  min-height: 168px;
}

.upload-zone {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(138, 98, 56, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(246, 238, 230, 0.56), rgba(255, 255, 255, 0.72));
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.upload-zone:hover {
  transform: translateY(-1px);
  border-color: rgba(222, 90, 101, 0.46);
  background: rgba(255, 255, 255, 0.86);
}

.upload-zone input {
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
}

.upload-zone span {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.form-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(247, 239, 230, 0.64);
}

.gallery-panel {
  margin-top: 26px;
}

.premium-thumb-grid .thumb-item {
  padding: 10px;
  border: 1px solid rgba(71, 52, 36, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.premium-thumb-grid .thumb-item img {
  height: 160px;
  border-radius: 16px;
}

.compact-metrics {
  margin-bottom: 28px;
}

.compact-metrics .metric-card {
  min-height: 158px;
}

.list-heading {
  margin: 8px 0 18px;
}

.list-heading h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.premium-table-wrap {
  overflow: hidden;
  padding: 0;
}

.premium-table-wrap table {
  min-width: 760px;
}

.premium-table-wrap thead {
  background: rgba(246, 238, 230, 0.84);
}

.premium-table-wrap th,
.premium-table-wrap td {
  padding: 18px;
}

.premium-table-wrap td strong {
  color: var(--ink);
}

.premium-table-wrap tbody tr {
  transition: background 0.2s ease;
}

@media (min-width: 760px) {
  .admin-hero-panel {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: stretch;
  }

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

  .command-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-row {
    grid-template-columns: 78px minmax(0, 1fr) auto;
  }

  .portfolio-meta {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
  }

  .form-intro {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
    align-items: end;
  }

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

@media (min-width: 1180px) {
  .executive-grid {
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  }

  .dashboard-panels {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
    align-items: start;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    width: 100%;
    padding: 14px;
  }

  .sidebar-brand {
    padding-bottom: 14px;
  }

  .admin-content {
    padding: 22px 18px 56px;
  }

  .admin-topbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-hero-panel,
  .form-intro,
  .form-section,
  .form-actions-bar {
    padding: 22px;
  }

  .form-actions-bar {
    flex-direction: column-reverse;
  }

  .form-actions-bar .btn {
    width: 100%;
  }
}

/* Premium form language */
.hero-search,
.filtros,
.form-card,
.admin-panel form.compact-form {
  border: 1px solid rgba(71, 52, 36, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 54px rgba(47, 30, 20, 0.08);
  backdrop-filter: blur(14px);
}

.hero-search {
  display: grid;
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.filtros,
.form-card {
  padding: 22px;
}

.admin-panel form.compact-form {
  padding: 14px;
}

.hero-search-field,
.form-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero-search-field label,
.form-group label,
.property-form-shell label {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hero-search-field input,
.hero-search-field select,
.form-group input,
.form-group select,
.form-group textarea,
.property-form-shell input,
.property-form-shell select,
.property-form-shell textarea,
.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(194, 154, 101, 0.32);
  border-radius: 15px;
  background: rgba(255, 253, 250, 0.94);
  color: var(--ink);
  box-shadow: none;
}

.hero-search-field input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(75, 65, 58, 0.68);
}

.hero-search-field input:focus,
.hero-search-field select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.property-form-shell input:focus,
.property-form-shell select:focus,
.property-form-shell textarea:focus,
.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: rgba(222, 90, 101, 0.52);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(222, 90, 101, 0.1);
}

.hero-search-action {
  display: flex;
  align-items: end;
}

.hero-search-action .btn,
.filters-actions .btn,
.form-card .btn-primary,
.admin-panel form.compact-form .btn-primary,
.form-actions-bar .btn-primary {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 999px;
  box-shadow: 0 20px 44px rgba(186, 63, 80, 0.24);
}

.filters-actions,
.inline-buttons,
.form-actions-bar {
  align-items: center;
}

.filters-actions .btn-ghost,
.inline-buttons .btn-ghost,
.form-actions-bar .btn-ghost,
.hero-cta .btn-outline {
  min-height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 30px rgba(47, 30, 20, 0.06);
}

.selected-property {
  padding: 16px;
  border: 1px solid rgba(194, 154, 101, 0.26);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.86);
}

@media (min-width: 768px) {
  .hero-search {
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.7fr) auto;
  }

  .filtros {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .filtros .filters-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero-search,
  .filtros,
  .form-card,
  .admin-panel form.compact-form {
    border-radius: 24px;
    padding: 14px;
  }

  .hero-search-action .btn,
  .filters-actions .btn {
    width: 100%;
  }
}

.admin-menu-toggle,
.admin-menu-button {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

@media (max-width: 1023px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(71, 52, 36, 0.1);
    box-shadow: 0 18px 42px rgba(47, 30, 20, 0.08);
  }

  .sidebar-brand {
    gap: 10px;
    margin-bottom: 0;
    padding: 6px 4px;
    border-bottom: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.84rem;
  }

  .sidebar-brand h2 {
    font-size: 1rem;
  }

  .sidebar-brand p {
    display: none;
  }

  .admin-menu-button {
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(71, 52, 36, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 24px rgba(47, 30, 20, 0.08);
    cursor: pointer;
  }

  .admin-menu-button span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .admin-menu-toggle:checked + .sidebar .admin-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .admin-menu-toggle:checked + .sidebar .admin-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .admin-menu-toggle:checked + .sidebar .admin-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sidebar-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
  }

  .admin-menu-toggle:checked + .sidebar .sidebar-nav {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    padding-top: 12px;
  }

  .sidebar-section,
  .sidebar-meta {
    margin-bottom: 8px;
  }

  .sidebar-footer {
    margin-top: 8px;
  }

  .admin-content {
    padding: 18px 14px 56px;
  }

  .admin-topbar {
    display: none;
  }
}
