/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLING - REAL ESTATE PORTAL (PROG_IMMIA)
   ========================================================================== */

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

:root {
  /* Colors */
  --bg-dark: #f0f7ff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-input: #ffffff;
  --border-light: rgba(14, 165, 233, 0.15);
  --border-glow: rgba(14, 165, 233, 0.4);
  
  --primary-glow: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --secondary-glow: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --accent-rent: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --accent-sale: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-purple: #0369a1;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.12);
  
  /* Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: #f9f9f6; /* Warm off-white fallback */
  background-image: url('bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Hide background glowing circles as we are using a custom textured background image */
body::before {
  display: none;
}

body::after {
  display: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 165, 233, 0.3);
}

/* Main Container */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header & Logo */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background: var(--primary-glow);
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
  color: #fff;
}

.logo-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #0284c7, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

/* Hero Banner (Copertina) */
.hero-banner {
  width: 100%;
  aspect-ratio: 2 / 1; /* Keeps text fully visible while trimming margins slightly */
  max-height: 380px; /* Safe max height on desktop */
  margin-bottom: 2.5rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md), 0 0 30px rgba(30, 58, 138, 0.03);
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.hero-banner:hover {
  border-color: rgba(30, 58, 138, 0.15);
  box-shadow: var(--shadow-md), 0 0 40px rgba(30, 58, 138, 0.08);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Glass Buttons */
.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--primary-glow);
  color: white;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: var(--secondary-glow);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Tabs & Switcher */
.tab-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tabs-container {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.35rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tab-btn.active .tab-badge {
  background: var(--primary-glow);
  color: white;
}

/* Dashboard Statistics Widgets */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.stat-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.stat-info h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-info .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Filters Component */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.filters-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper svg {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.filter-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  cursor: pointer;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  backdrop-filter: blur(8px);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.empty-state h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
}

/* Property Card (Immobile) */
.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.property-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-md), 0 0 25px rgba(99, 102, 241, 0.1);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #1e293b;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.badge-contract {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.badge-contract.affitto {
  background: var(--accent-rent);
}

.badge-contract.vendita {
  background: var(--accent-sale);
}

/* Request Badge Custom Styles */
.request-card .badge-contract {
  position: static;
  box-shadow: var(--shadow-sm);
}

.request-card .badge-contract.affitto {
  background: var(--accent-rent); /* Forte verde smeraldo per Affitto */
}

.request-card .badge-contract.vendita {
  background: var(--accent-sale); /* Forte giallo ambra/arancione per Acquisto */
}

.badge-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--text-main);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.property-features {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.property-desc-preview {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.property-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-purple);
}

/* Request Card (Richiesta) */
.request-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.request-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-md), 0 0 25px rgba(6, 182, 212, 0.1);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369a1;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.client-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

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

.request-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.88rem;
}

.request-info-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.request-info-val {
  font-weight: 600;
  color: var(--text-main);
}

.request-notes {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 0;
  flex-grow: 1;
}

.request-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1rem;
}

.request-budget {
  display: flex;
  flex-direction: column;
}

.request-budget-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.request-budget-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Modals (Register Form Overlays) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), var(--shadow-glow);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* Forms */
.modal-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

/* Detail view style inside Modal */
.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.detail-img-wrapper {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: #1e293b;
  border: 1px solid var(--border-light);
}

.detail-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-title-area h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-purple);
}

.detail-description {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
}

.contact-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.50rem;
  color: var(--text-muted);
}

.contact-item span {
  color: var(--text-main);
  font-weight: 500;
}

/* Toast/Notification System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon.success {
  color: #10b981;
}

.toast-icon.info {
  color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .filters-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .logo-container {
    justify-content: center;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .tab-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tabs-container {
    justify-content: center;
  }
  
  .filters-wrapper {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Stacked modal and matching properties hover styling */
#detail-modal {
  z-index: 1100;
}

.matching-trigger {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.matching-trigger:hover {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  transform: translateY(-1px);
}

/* Welcome Portal Styling */
.welcome-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  z-index: 1000;
  position: relative;
}

.welcome-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  text-align: center;
  animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-logo {
  margin-bottom: 2.5rem;
}

.welcome-logo h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.welcome-logo p {
  color: var(--text-muted);
  font-size: 1rem;
}

.role-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .role-selection-grid {
    grid-template-columns: 1fr;
  }
}

.role-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 2rem 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  text-align: center;
  color: var(--text-main);
  font-family: inherit;
}

.role-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.role-icon-main {
  color: var(--text-purple);
  opacity: 0.85;
}

.role-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.role-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.client-login-form {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: left;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* User role dashboard adaptations */
.role-user .stats-grid,
.role-user #filter-status,
.role-user .matching-trigger,
.role-user .matching-badge,
.role-user .admin-only {
  display: none !important;
}

/* Reserved/Occupied Property Card Styling */
.property-card.reserved img {
  filter: grayscale(85%) brightness(0.65) contrast(0.9);
  transition: var(--transition-smooth);
}

.property-card.reserved:hover img {
  filter: grayscale(50%) brightness(0.75) contrast(0.95);
}

/* Guest role dashboard adaptations */
.guest-only {
  display: none !important;
}

.role-guest .guest-only {
  display: inline-flex !important;
}

.role-guest .stats-grid,
.role-guest .tab-section,
.role-guest .tabs-container,
.role-guest #filter-status-group,
.role-guest .admin-only,
.role-guest #btn-open-property-modal,
.role-guest #btn-open-request-modal {
  display: none !important;
}

/* Custom color styles for guest login buttons (Teal) */
.btn-guest-login {
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
  color: white !important;
  transition: var(--transition-smooth);
}

.btn-guest-login:hover {
  background-color: #0f766e !important;
  border-color: #0f766e !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}


