/* ========================================
   Familienimmobilien App – Glassmorphism Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-bg: #f5f0eb;
  --color-bg-warm: #faf8f5;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-solid: #ffffff;
  --color-surface-hover: rgba(255, 255, 255, 0.85);
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-strong: rgba(0, 0, 0, 0.1);
  --color-text: #1a1a1a;
  --color-text-secondary: #8a8580;
  --color-text-muted: #b5afa8;
  --color-primary: #E8943A;
  --color-primary-hover: #d4842e;
  --color-primary-light: #fef3e2;
  --color-green: #4a9e6f;
  --color-green-light: #e8f5ec;
  --color-orange: #E8943A;
  --color-orange-light: #fef3e2;
  --color-red: #d4574e;
  --color-red-light: #fde8e7;
  --color-blue: #4a7eb5;
  --color-blue-light: #e8f0f8;
  --color-dark: #1a1a1a;
  --color-input-bg: #f0ebe4;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.1);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle decorative gradient orb */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 148, 58, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Screens ---- */
.screen { display: none; }
.screen.active { display: block; }

/* ---- Login ---- */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 148, 58, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.login-logo { font-size: 4rem; margin-bottom: 0.75rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }

.login-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.login-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.login-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.login-form input {
  padding: 0.9rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-input-bg);
  color: var(--color-text);
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.login-form input::placeholder {
  color: var(--color-text-muted);
}

.login-form input:focus {
  outline: none;
  background: #ece6de;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(232, 148, 58, 0.15);
}

.login-hint {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  position: relative;
}

.login-hint code {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--color-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.15);
}
.btn-primary:hover {
  background: #2d2d2d;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.2);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.btn-small {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 0.9rem;
  font-size: 1rem;
}

.btn-success {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 158, 111, 0.2);
}
.btn-success:hover { background: #3d8a5f; transform: translateY(-1px); }

.btn-danger {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(212, 87, 78, 0.2);
}
.btn-danger:hover { background: #bf4a42; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ---- Header ---- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left { display: flex; align-items: center; gap: 0.6rem; }
.header-logo { font-size: 1.4rem; }
.header-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.header-right { display: flex; align-items: center; gap: 0.85rem; }

.user-name {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ---- Property Switcher ---- */
.property-switcher {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.property-card {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 0.85rem;
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.property-card:hover {
  border-color: rgba(232, 148, 58, 0.3);
  background: var(--color-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(232, 148, 58, 0.1);
}

.property-card.active {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(232, 148, 58, 0.12);
}

.property-flag { font-size: 1.6rem; }
.property-name { font-weight: 700; font-size: 0.9rem; letter-spacing: -0.02em; }
.property-location { font-size: 0.75rem; color: var(--color-text-secondary); font-weight: 400; }

/* ---- Tab Nav ---- */
.tab-nav {
  display: flex;
  gap: 0.35rem;
  background: transparent;
  padding: 0.75rem 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: none;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.tab-btn.active {
  color: #fff;
  background: var(--color-dark);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.15);
}

.tab-icon { font-size: 1rem; }

/* ---- Tab Content ---- */
.tab-content {
  padding: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---- Calendar ---- */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calendar-nav h3 {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
  letter-spacing: -0.02em;
}

.calendar-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

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

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.dot-confirmed { background: var(--color-green); }
.dot-pending { background: var(--color-orange); }
.dot-vetoed { background: var(--color-red); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.cal-header {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.6rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-day {
  background: rgba(255, 255, 255, 0.65);
  min-height: 64px;
  padding: 0.4rem;
  position: relative;
  transition: background 0.2s ease;
}

.cal-day:hover {
  background: rgba(255, 255, 255, 0.85);
}

.cal-day.other-month { opacity: 0.3; }

.cal-day.today {
  background: var(--color-primary-light);
}

.cal-day-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.cal-event {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cal-event:hover {
  transform: scale(1.02);
}

.cal-event.confirmed {
  background: var(--color-green-light);
  color: var(--color-green);
}
.cal-event.pending {
  background: var(--color-orange-light);
  color: var(--color-orange);
}
.cal-event.vetoed, .cal-event.discussion, .cal-event.Diskussion {
  background: var(--color-red-light);
  color: var(--color-red);
}

/* ---- Bookings ---- */
.bookings-list { display: flex; flex-direction: column; gap: 0.85rem; }

.booking-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-orange);
  cursor: pointer;
  transition: all 0.25s ease;
  border-top: var(--glass-border);
}

.booking-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.booking-card.confirmed { border-left-color: var(--color-green); }
.booking-card.vetoed, .booking-card.discussion, .booking-card.Diskussion { border-left-color: var(--color-red); }

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

.booking-family { font-weight: 700; letter-spacing: -0.02em; }

.booking-status {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.booking-status.confirmed { background: var(--color-green-light); color: var(--color-green); }
.booking-status.pending { background: var(--color-orange-light); color: var(--color-orange); }
.booking-status.vetoed, .booking-status.discussion, .booking-status.Diskussion { background: var(--color-red-light); color: var(--color-red); }

.booking-dates { font-size: 0.85rem; color: var(--color-text-secondary); }
.booking-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.25rem; }

/* ---- Costs ---- */
.costs-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.summary-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.summary-label {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.summary-value.positive { color: var(--color-green); }
.summary-value.negative { color: var(--color-red); }

.saldo-overview {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.saldo-overview h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.saldo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.saldo-row:last-child { border-bottom: none; }
.saldo-family { font-weight: 600; }

.saldo-amount { font-weight: 700; letter-spacing: -0.02em; }
.saldo-amount.positive { color: var(--color-green); }
.saldo-amount.negative { color: var(--color-red); }

.saldo-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }

.bank-info {
  background: rgba(232, 148, 58, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  border: 1px solid rgba(232, 148, 58, 0.12);
}
.bank-info strong { display: block; margin-bottom: 0.3rem; font-weight: 700; }

.costs-list { display: flex; flex-direction: column; gap: 0.6rem; }

.cost-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}

.cost-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.cost-info { flex: 1; }
.cost-title { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; }
.cost-meta { font-size: 0.8rem; color: var(--color-text-secondary); }
.cost-amount { font-weight: 800; font-size: 1.1rem; white-space: nowrap; letter-spacing: -0.02em; }

.cost-status-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.cost-status-badge.offen { background: var(--color-red-light); color: var(--color-red); }
.cost-status-badge.teilweise { background: var(--color-orange-light); color: var(--color-orange); }
.cost-status-badge.bezahlt { background: var(--color-green-light); color: var(--color-green); }

/* ---- Suggestions ---- */
.suggestions-list { display: flex; flex-direction: column; gap: 0.85rem; }

.suggestion-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.suggestion-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.suggestion-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }

.suggestion-cost {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  background: var(--color-primary-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
}

.suggestion-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.suggestion-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

.suggestion-votes {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vote-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.vote-btn.voted-yes { background: var(--color-green-light); border-color: var(--color-green); color: var(--color-green); }
.vote-btn.voted-no { background: var(--color-red-light); border-color: var(--color-red); color: var(--color-red); }

.suggestion-status-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.suggestion-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ---- Comments ---- */
.comments-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
}

.comments-list {
  margin-bottom: 0.6rem;
  max-height: 200px;
  overflow-y: auto;
}

.comments-empty, .comments-loading {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.comment-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.comment-item:last-child { border-bottom: none; }

.comment-author {
  font-weight: 700;
  color: var(--color-text);
  margin-right: 0.5rem;
}

.comment-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.comment-text {
  margin-top: 0.2rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.comment-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.comment-input {
  flex: 1;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--color-input-bg);
  color: var(--color-text);
  transition: all 0.25s ease;
}

.comment-input::placeholder { color: var(--color-text-muted); }

.comment-input:focus {
  outline: none;
  background: #ece6de;
  box-shadow: 0 0 0 3px rgba(232, 148, 58, 0.12);
}

/* ---- Inline Edit (Info Board) ---- */
.info-edit-btn {
  font-size: 0.68rem !important;
  padding: 0.15rem 0.5rem !important;
  margin-left: 0.5rem;
  opacity: 0.5;
  border-radius: var(--radius-pill) !important;
}
.info-edit-btn:hover { opacity: 1; }

.inline-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.inline-edit-form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

.inline-edit-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.inline-edit-input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-input-bg);
  color: var(--color-text);
  resize: vertical;
  transition: all 0.25s ease;
}

.inline-edit-input::placeholder { color: var(--color-text-muted); }

.inline-edit-input:focus {
  outline: none;
  background: #ece6de;
  box-shadow: 0 0 0 3px rgba(232, 148, 58, 0.12);
}

.inline-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

/* ---- Info Board ---- */
.info-board { display: flex; flex-direction: column; gap: 1.15rem; }

.info-section {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.info-section:hover {
  box-shadow: var(--shadow-md);
}

.info-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.02em;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.info-item:last-child { border-bottom: none; }

.info-label { color: var(--color-text-secondary); font-weight: 400; }
.info-value { font-weight: 600; text-align: right; }
.info-value a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.info-value a:hover { text-decoration: underline; }

/* ---- Modals ---- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem 0.85rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.modal-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.modal-close:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.1);
}

.modal-form { padding: 0.85rem 1.75rem 1.75rem; }

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-input-bg);
  color: var(--color-text);
  transition: all 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #ece6de;
  box-shadow: 0 0 0 3px rgba(232, 148, 58, 0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 0.75rem; }

.cost-preview {
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid rgba(232, 148, 58, 0.15);
}

/* ---- Booking Detail ---- */
.booking-detail { padding: 0.85rem 1.75rem 1.75rem; }

.booking-detail .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.booking-detail .detail-label { color: var(--color-text-secondary); }
.booking-detail .detail-value { font-weight: 600; }

.booking-detail .detail-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.deadline-info {
  background: var(--color-orange-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.85rem;
  color: var(--color-orange);
  margin-top: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(232, 148, 58, 0.15);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-dark);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(26, 26, 26, 0.2);
  letter-spacing: -0.01em;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Spinner ---- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: grayscale(0.3);
}

.empty-state-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.18);
}

/* ---- Selection ---- */
::selection {
  background: rgba(232, 148, 58, 0.2);
  color: var(--color-text);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  body::before { display: none; }

  .property-switcher { padding: 0.85rem; gap: 0.6rem; }
  .property-card { min-width: 110px; padding: 0.75rem 0.6rem; }
  .property-flag { font-size: 1.3rem; }
  .property-name { font-size: 0.82rem; }

  .tab-nav { padding: 0.6rem 0.85rem; }
  .tab-content { padding: 1.15rem; }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-header h2 { font-size: 1.35rem; }

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

  .cal-day { min-height: 48px; }
  .cal-day-number { font-size: 0.65rem; }
  .cal-event { font-size: 0.55rem; }

  .cost-card { flex-direction: column; align-items: flex-start; }

  .modal-content {
    width: 95%;
    border-radius: var(--radius-lg);
  }

  .header-title { font-size: 0.92rem; }
  .calendar-legend { flex-wrap: wrap; gap: 0.75rem; }

  .login-form {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .login-title { font-size: 1.6rem; }
}
