:root {
  --bg: #1a2a3a;
  --ink: #1e2936;
  --ink-soft: #2c3a4a;
  --muted: #4a5c6e;
  --line: rgba(255, 255, 255, 0.35);
  --line-strong: rgba(255, 255, 255, 0.5);
  --terracotta: #c0784a;
  --terracotta-dark: #a45f35;
  --sage: #6b8f71;
  --sage-soft: #a8c5a0;
  --cream: rgba(255, 255, 255, 0.62);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-soft: rgba(255, 255, 255, 0.4);
  --glass-row: rgba(255, 255, 255, 0.62);
  --glass-row-alt: rgba(255, 255, 255, 0.48);
  --glass-border: 1px solid rgba(255, 255, 255, 0.55);
  --glass-blur: blur(18px) saturate(160%);
  --glass-blur-heavy: blur(28px) saturate(180%);
  --shadow: 0 8px 32px rgba(20, 40, 60, 0.12), 0 2px 8px rgba(20, 40, 60, 0.06);
  --shadow-lg: 0 16px 48px rgba(20, 40, 60, 0.18), 0 4px 12px rgba(20, 40, 60, 0.08);
  --radius: 18px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  /* Soft photo-ish gradient so backdrop-blur is visible */
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(232, 168, 124, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(130, 180, 200, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 70% 90%, rgba(168, 197, 160, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(200, 160, 210, 0.3) 0%, transparent 45%),
    linear-gradient(160deg, #d4e4f0 0%, #e8d8c8 35%, #c8dcc8 65%, #d0d8e8 100%);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
}

h1,
h2,
.brand h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

a {
  color: var(--terracotta-dark);
}

code {
  background: rgba(255, 255, 255, 0.45);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Shared glass panel mixin via class */
.glass,
.panel,
.kpi-card,
.auth-card,
.burger-panel,
.topbar,
.settings-tabs,
.settings-subnav,
.booking-card,
.photo-card,
.agreement-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--shadow);
}

/* Auth */
.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
  /* Richer background on login so frosted card pops */
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(232, 168, 124, 0.65) 0%, transparent 50%),
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(100, 160, 190, 0.55) 0%, transparent 48%),
    radial-gradient(ellipse 55% 45% at 60% 85%, rgba(140, 190, 150, 0.5) 0%, transparent 50%),
    linear-gradient(145deg, #b8cfe0 0%, #e0cfc0 40%, #c0d8c8 70%, #c8d0e0 100%);
  background-attachment: fixed;
}

.auth-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.5rem;
}

.brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(232, 168, 124, 0.9), var(--terracotta));
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(192, 120, 74, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand h1 {
  margin: 0;
  font-size: 1.75rem;
}

.subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

label {
  display: block;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.35rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(192, 120, 74, 0.4);
  border-color: var(--terracotta);
  background: rgba(255, 255, 255, 0.9);
}

.error {
  margin: 0.85rem 0 0;
  color: #9b3b2e;
  background: rgba(253, 236, 234, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 196, 190, 0.6);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  width: 100%;
  margin-top: 1.1rem;
  background: linear-gradient(145deg, rgba(208, 137, 88, 0.95), var(--terracotta-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(164, 95, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--terracotta), #8f522c);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.demo-hint {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.demo-hint p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Layout */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(20, 40, 60, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  margin: 0;
  border-radius: 12px;
}

.topbar-brand strong {
  display: block;
  font-family: var(--font-display);
}

.muted,
.topbar-brand .muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.lede {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.kpi-card {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.kpi-card h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
}

.kpi-value {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.kpi-card.income .kpi-value {
  color: var(--sage);
}

.kpi-card.costs .kpi-value {
  color: var(--terracotta-dark);
}

.kpi-card.balance.positive .kpi-value {
  color: var(--sage);
}

.kpi-card.balance.negative .kpi-value {
  color: #9b3b2e;
}

.charts-grid,
.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.chart-wrap {
  position: relative;
  height: 260px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--chip);
}

.table-scroll {
  overflow-x: auto;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  vertical-align: top;
}

th {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

th:first-child {
  border-top-left-radius: 10px;
}

th:last-child {
  border-top-right-radius: 10px;
}

tbody tr {
  background: var(--glass-row);
}

tbody tr:nth-child(even) {
  background: var(--glass-row-alt);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.85);
}

td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag) 22%, rgba(255, 255, 255, 0.7));
  color: #4a3f35;
  border: 1px solid color-mix(in srgb, var(--tag) 35%, white);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 1rem 2rem;
}

@media (max-width: 860px) {
  .kpi-grid,
  .charts-grid,
  .tables-grid {
    grid-template-columns: 1fr;
  }

  .user-label {
    display: none;
  }
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.55);
  color: var(--terracotta-dark);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.08);
}

.nav-link.nav-dimmed {
  opacity: 0.55;
}

/* Calendar */
.calendar-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.calendar-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cal-toolbar h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
  text-transform: capitalize;
}

.cal-toolbar .btn-ghost {
  min-width: 2.4rem;
  padding: 0.45rem 0.65rem;
}

.cal-today-btn {
  font-size: 0.85rem;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 4px;
}

.legend-dot.status-approved,
.cal-event.status-approved,
.status-badge.status-approved {
  background: #6b8f71;
  color: #fff;
}

.legend-dot.status-pending,
.cal-event.status-pending {
  background: #e6c84a;
  color: #3d342c;
}

.status-badge.status-pending {
  background: rgba(247, 229, 154, 0.85);
  color: #6b5a12;
  border: 1px solid rgba(230, 200, 74, 0.4);
}

.legend-dot.status-rejected,
.cal-event.status-rejected {
  background: #c4a8a3;
  color: #5c3430;
}

.status-badge.status-rejected {
  background: rgba(240, 224, 221, 0.85);
  color: #9b3b2e;
  border: 1px solid rgba(196, 168, 163, 0.4);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.cal-day {
  min-height: 5.2rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.cal-day.empty {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cal-day.today {
  border-color: var(--terracotta);
  box-shadow: inset 0 0 0 1px rgba(192, 120, 74, 0.4), 0 0 12px rgba(192, 120, 74, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

.cal-day.has-approved {
  background: color-mix(in srgb, #6b8f71 14%, rgba(255, 255, 255, 0.4));
}

.cal-day.has-pending:not(.has-approved) {
  background: color-mix(in srgb, #e6c84a 18%, rgba(255, 255, 255, 0.4));
}

.cal-day-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  align-self: flex-end;
}

.cal-event {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
  padding: 0.15rem 0.3rem;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.cal-more {
  font-size: 0.68rem;
  color: var(--muted);
  padding-left: 0.2rem;
}

.booking-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-card {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(20, 40, 60, 0.06);
}

.booking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.booking-meta {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.booking-note {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.btn-approve {
  background: var(--sage);
  color: #fff;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(107, 143, 113, 0.3);
}

.btn-approve:hover {
  background: #5a7a60;
}

.btn-reject {
  background: rgba(255, 255, 255, 0.45);
  color: #9b3b2e;
  border: 1px solid rgba(229, 196, 190, 0.6);
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-reject:hover {
  background: rgba(253, 236, 234, 0.8);
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.status-approved {
  background: color-mix(in srgb, #6b8f71 28%, rgba(255, 255, 255, 0.7));
  color: #3d5c42;
  border: 1px solid rgba(107, 143, 113, 0.35);
}

.empty-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.booking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.booking-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  color: var(--ink);
}

.booking-form .btn-primary {
  width: 100%;
}

.success {
  margin: 0.85rem 0 0;
  color: #2f5d3a;
  background: rgba(232, 243, 234, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 197, 160, 0.5);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
}

.hint-nights {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.brother-notice {
  margin-top: 1rem;
}

.brother-notice h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

@media (max-width: 960px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .topbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .booking-form .form-row {
    grid-template-columns: 1fr;
  }

  .cal-day {
    min-height: 4rem;
  }
}

/* Listing & Family */
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  color: var(--ink);
  resize: vertical;
  min-height: 8rem;
}

textarea:focus {
  outline: 2px solid rgba(192, 120, 74, 0.4);
  border-color: var(--terracotta);
  background: rgba(255, 255, 255, 0.55);
}

.listing-form input[type="file"] {
  padding: 0.55rem 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.listing-readonly {
  margin-top: 0.5rem;
}

.listing-ro-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.listing-ro-desc {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
  line-height: 1.55;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: rgba(200, 210, 220, 0.5);
}

.photo-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  width: auto;
}

.agreement-box {
  margin-top: 0.25rem;
}

.agreement-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.friend-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.actions-cell {
  white-space: nowrap;
}

.actions-cell .btn {
  margin-right: 0.25rem;
}

@media (max-width: 860px) {
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

/* Expenses (Ausgaben) on dashboard */
.expenses-section {
  margin-top: 1.25rem;
}

.panel-head h2 {
  margin-bottom: 0.25rem;
}

.panel-sub {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.expense-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  color: var(--ink);
}

.expense-form select:focus {
  outline: 2px solid rgba(192, 120, 74, 0.4);
  border-color: var(--terracotta);
}

.form-row-expense {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.att-cell {
  font-size: 0.85rem;
  max-width: 14rem;
}

.att-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.att-link:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .form-row-expense {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .form-row-expense {
    grid-template-columns: 1fr;
  }
}

/* Settings tabs */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
}

.settings-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  cursor: pointer;
}

.settings-tab:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}

.settings-tab.active {
  background: rgba(255, 255, 255, 0.55);
  color: var(--terracotta-dark);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.08);
  font-weight: 600;
}

.settings-panel {
  margin-top: 0.25rem;
}

.users-table code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.4);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.role-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.45);
  color: #4a3f35;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.role-badge.role-owner {
  background: rgba(232, 213, 196, 0.7);
  color: #5a3a22;
}

.role-badge.role-brother {
  background: rgba(220, 232, 224, 0.7);
  color: #2f4a38;
}

.role-badge.role-parent {
  background: rgba(220, 228, 236, 0.7);
  color: #2f3f4a;
}

.role-key {
  margin-left: 0.35rem;
  font-size: 0.8rem;
}

/* Burger menu */
.burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.06);
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.15rem;
}

.burger-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.burger-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 50, 70, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
}

.burger-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: -16px 0 48px rgba(20, 40, 60, 0.18);
  z-index: 50;
  padding: 1rem 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.burger-panel[hidden],
.burger-backdrop[hidden] {
  display: none !important;
}

.burger-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.burger-close {
  min-width: 2.4rem;
}

.burger-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.burger-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.burger-link:hover {
  background: rgba(255, 255, 255, 0.75);
}

.burger-link.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(192, 120, 74, 0.35);
  color: var(--terracotta-dark);
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.08);
}

body.burger-open {
  overflow: hidden;
}

/* Burger nested section (Einstellungen → Nutzer) */
.burger-section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.15rem;
}

.burger-section-title {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem 0.25rem;
}

.burger-section-title:hover {
  color: var(--ink);
}

.burger-section-title.active {
  color: var(--terracotta-dark);
}

.burger-section-children {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  margin-left: 0.95rem;
}

.burger-link-nested {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
}

/* Settings subnav */
.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
}

.settings-subnav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.settings-subnav-link:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}

.settings-subnav-link.active {
  background: rgba(255, 255, 255, 0.55);
  color: var(--terracotta-dark);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.08);
  font-weight: 600;
}

/* Hochrechnung card */
.projection-card {
  margin: 1rem 0;
  background: linear-gradient(
    135deg,
    rgba(232, 168, 124, 0.35),
    rgba(255, 255, 255, 0.72)
  );
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.projection-value {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.projection-hint {
  margin: 0;
  font-size: 0.9rem;
}

/* Hide legacy horizontal nav if any remnant remains */
.main-nav {
  display: none !important;
}

/* Start page */
.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.house-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
}

.house-copy h2,
.house-gallery-wrap h2 {
  margin-top: 0;
}

.house-edit-hint {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.start-gallery {
  margin-top: 0.5rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin: 0;
}

.section-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.booking-legend {
  margin: 0.5rem 0 1rem;
}

.booking-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.bookings-overview .booking-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  border-left: 5px solid #c4a8a3;
  box-shadow: var(--shadow);
}

.bookings-overview .booking-card.status-pending {
  border-left-color: #e6c84a;
  background: color-mix(in srgb, #e6c84a 14%, rgba(255, 255, 255, 0.4));
}

.bookings-overview .booking-card.status-approved {
  border-left-color: #6b8f71;
  background: color-mix(in srgb, #6b8f71 12%, rgba(255, 255, 255, 0.4));
}

.bookings-overview .booking-card.status-rejected {
  border-left-color: #c4a8a3;
  background: color-mix(in srgb, #c4a8a3 16%, rgba(255, 255, 255, 0.4));
}

.booking-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.booking-guest {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.booking-dates {
  margin: 0 0 0.35rem;
}

.own-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  background: rgba(243, 224, 210, 0.75);
  border: 1px solid rgba(232, 168, 124, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .house-layout {
    grid-template-columns: 1fr;
  }

  .user-label {
    display: none;
  }
}

/* Hero sits on transparent glass-friendly background */
.hero {
  margin-bottom: 0.25rem;
}

.start-hero {
  padding: 0.5rem 0 0.25rem;
}


/* —— Map (Leaflet) —— */
.map-panel {
  margin-top: 1rem;
}

.map-frame {
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(20, 40, 60, 0.04);
  background: rgba(255, 255, 255, 0.5);
}

.map-frame .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.map-label {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

/* —— Tipps & Tricks —— */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.tip-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--sage);
}

.tip-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.tip-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.tip-meta {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* —— Owner overview strip —— */
.owner-overview {
  margin: 1rem 0 0;
  background: linear-gradient(
    120deg,
    rgba(232, 168, 124, 0.4),
    rgba(255, 255, 255, 0.78)
  );
}

.owner-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.owner-stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.owner-stat .stat-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.owner-stat .stat-value {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.owner-stat .stat-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.owner-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
}

.insight-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.panel + .panel,
.panel + .map-panel,
.kpi-grid + .panel {
  /* spacing handled inline where needed */
}

textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  color: var(--ink);
}

textarea:focus,
select:focus {
  outline: 2px solid rgba(192, 120, 74, 0.4);
  border-color: var(--terracotta);
  background: rgba(255, 255, 255, 0.9);
}

.container {
  padding-top: 1.75rem;
}

.hero h1 {
  color: var(--ink);
}

.lede {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .map-frame {
    height: 220px;
  }
}

/* —— Go-live polish: readability, a11y, mobile —— */
.burger-panel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
}

.burger-link,
.burger-section-title {
  color: var(--ink);
}

.burger-section-title {
  color: #3a4a5a;
}

.burger-link-nested {
  color: var(--ink-soft);
}

.btn:disabled,
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

:focus-visible {
  outline: 2px solid rgba(192, 120, 74, 0.65);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.start-gallery .photo-card img,
.photo-gallery .photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 560px) {
  .topbar {
    padding: 0.7rem 0.85rem;
  }

  .topbar-brand .muted {
    display: none;
  }

  .container {
    width: min(1100px, calc(100% - 1.25rem));
    padding-top: 1.1rem;
  }

  .owner-overview-actions .btn,
  .section-head .btn {
    width: 100%;
  }

  .booking-cards,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .cal-legend,
  .booking-legend {
    font-size: 0.8rem;
    gap: 0.5rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Ausflüge & Tipps —— */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.trip-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trip-card:hover,
.trip-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.trip-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.4);
}

.trip-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--sage);
}

.trip-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.trip-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.trip-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.trip-kicker {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta-dark) !important;
  font-weight: 700;
}

.trip-distance {
  align-self: flex-start;
  margin-top: auto;
}

.trip-back {
  margin: 0 0 0.75rem;
}

.trip-hero {
  padding: 0;
  overflow: hidden;
}

.trip-hero-img {
  width: 100%;
  max-height: 380px;
  height: 320px;
  object-fit: cover;
  display: block;
}

.trip-credit {
  margin: 0;
  padding: 0.35rem 1.2rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.trip-hero-body {
  padding: 0.75rem 1.2rem 1.25rem;
}

.trip-hero-body h1 {
  margin: 0.15rem 0 0.4rem;
}

.trip-hero-body .lede {
  margin: 0;
}

.trip-hero-body a.insight-chip {
  text-decoration: none;
}

.trip-section + .trip-section {
  margin-top: 1rem;
}

.trip-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.trip-section p {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
  line-height: 1.55;
}

.trip-map {
  height: 340px;
}

@media (max-width: 560px) {
  .trip-hero-img {
    height: 220px;
  }
  .trip-map {
    height: 280px;
  }
}

/* —— Beschreibung: Bild-Highlight (z. B. Schildkröte) —— */
.listing-ro-desc .desc-block {
  margin: 0;
  white-space: pre-wrap;
}

.listing-ro-desc .desc-block + .desc-block,
.listing-ro-desc .desc-highlight + .desc-block {
  margin-top: 1.55em;
}

.desc-highlight {
  margin: 0.85rem 0 0;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  white-space: normal;
}

.desc-highlight img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.desc-highlight figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* —— Ausflug: Bildergalerie —— */
.trip-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.trip-gallery-item {
  margin: 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trip-gallery-item img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.trip-gallery-item a:hover img {
  transform: scale(1.03);
}

.trip-gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* —— In der Nähe —— */
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nearby-emergency {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
  color: #9b2c2c;
}

.nearby-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.nearby-chip {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink-soft);
  cursor: pointer;
}

.nearby-chip span {
  margin-left: 0.2rem;
  color: var(--muted);
  font-weight: 500;
}

.nearby-chip.active {
  background: linear-gradient(145deg, rgba(208, 137, 88, 0.95), var(--terracotta-dark));
  color: #fff;
}

.nearby-chip.active span {
  color: rgba(255, 255, 255, 0.85);
}

.nearby-map {
  height: 380px;
}

.nearby-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 40, 60, 0.18);
  box-shadow: 0 2px 6px rgba(20, 40, 60, 0.25);
  font-size: 16px;
}

.nearby-group + .nearby-group {
  margin-top: 1.25rem;
}

.nearby-group h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.nearby-card {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow);
}

.nearby-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.nearby-note,
.nearby-addr {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.nearby-note {
  color: var(--terracotta-dark);
  font-weight: 600;
}

.nearby-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.nearby-link {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  background: none;
  border: none;
  padding: 0.2rem 0.3rem;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .nearby-map {
    height: 300px;
  }
}

/* —— Logo Ca' Gusmini —— */
.topbar-brand .brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(192, 120, 74, 0.25));
}

.brand-logo {
  display: block;
  width: min(220px, 70%);
  height: auto;
  margin: -0.5rem auto 0.25rem;
  filter: drop-shadow(0 4px 14px rgba(120, 72, 30, 0.12));
}

.hero-logo-wrap {
  display: block;
  text-align: center;
  margin: 0 auto 1rem;
}

.hero-logo {
  display: inline-block;
  width: 320px;
  max-width: 80vw;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(120, 72, 30, 0.14));
}

@media (max-width: 640px) {
  .hero-logo {
    width: 220px;
  }
}


/* —— Dokumente (Owner) —— */
.docs-table td a:not(.btn) {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.docs-table td a:not(.btn):hover {
  text-decoration: underline;
}
.docs-table .docs-cat td {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  font-weight: 700;
  padding-top: 0.9rem;
}
.doc-type {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  white-space: nowrap;
}
.doc-actions {
  white-space: nowrap;
  text-align: right;
}
.doc-actions .btn + .btn {
  margin-left: 0.35rem;
}

/* —— Grundriss —— */
.floorplan-thumb {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0.5rem auto 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 18px rgba(20, 40, 60, 0.08);
  cursor: zoom-in;
}
.floorplan-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.floorplan-dialog {
  width: min(96vw, 1400px);
  max-height: 94vh;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.floorplan-dialog::backdrop {
  background: rgba(20, 30, 40, 0.55);
  backdrop-filter: blur(4px);
}
.floorplan-dialog img {
  display: block;
  width: 100%;
  height: auto;
}
.floorplan-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 1;
}

/* —— In der Nähe: Empfehlungen —— */
.nearby-rec-toggle {
  border-color: rgba(201, 150, 60, 0.55);
}
.nearby-rec-toggle.active {
  background: linear-gradient(135deg, #e3b04b, #c98a2e);
  color: #2b1d08;
  border-color: rgba(201, 150, 60, 0.9);
}
.nearby-chip-sep {
  display: inline-block;
  width: 1px;
  height: 1.6rem;
  background: rgba(20, 40, 60, 0.15);
  margin: 0 0.25rem;
  vertical-align: middle;
}
.nearby-card {
  position: relative;
}
.nearby-card.is-rec {
  border-color: rgba(214, 166, 72, 0.75);
  box-shadow: 0 6px 22px rgba(201, 138, 46, 0.18);
  background: linear-gradient(160deg, rgba(255, 248, 230, 0.92), rgba(255, 255, 255, 0.78));
}
.rec-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b4a0f;
  background: rgba(227, 176, 75, 0.28);
  border: 1px solid rgba(201, 150, 60, 0.5);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.35rem;
}
.nearby-pin { position: relative; }
.nearby-pin-rec span {
  width: 36px;
  height: 36px;
  font-size: 18px;
  background: #fffaf0 !important;
  border: 3px solid #d9a441 !important;
  box-shadow: 0 2px 10px rgba(150, 100, 20, 0.45) !important;
}
.nearby-pin .pin-star {
  position: absolute;
  top: -6px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #f2c35b, #c98a2e);
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(120, 80, 10, 0.45);
}
.nearby-title { display: flex; align-items: center; gap: 0.55rem; }
.type-ico {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(183, 122, 41, 0.25);
}
.type-ico.has-star { border: 2px solid #d9a441; }
.type-ico .type-star {
  position: absolute;
  top: -5px;
  right: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #f2c35b, #c98a2e);
  border: 1.5px solid #fff;
}

/* Jahresübersicht + Versicherung */
.year-table td.num, .year-table th.num { text-align: right; white-space: nowrap; }
.year-table .year-sum td { font-weight: 600; border-top: 1px solid rgba(120, 70, 40, 0.18); }
.year-table .year-total td { font-weight: 700; font-size: 1.05em; border-top: 2px solid rgba(120, 70, 40, 0.3); }
.insurance-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; margin: 0.75rem 0 0; }
.insurance-facts > div { padding: 0.75rem 0.9rem; border-radius: 14px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.6); }
.insurance-facts dt { font-size: 0.82em; opacity: 0.75; }
.insurance-facts dd { margin: 0.2rem 0 0; font-weight: 600; }
.insurance-facts dd small { display: block; font-weight: 400; opacity: 0.8; }
.insurance-note { margin-top: 0.75rem; }
.insurance-warn { color: #9a3b1c; }
