/* ==========================================================
 * Déclaration de la police Avenir
 * ========================================================== */

/* Avenir Light */
@font-face {
  font-family: 'Avenir';
  src: url('../fond/Avenir/Avenir-Light.eot');
  src: url('../fond/Avenir/Avenir-Light.eot?#iefix') format('embedded-opentype'),
       url('../fond/Avenir/Avenir-Light.woff2') format('woff2'),
       url('../fond/Avenir/Avenir-Light.woff') format('woff'),
       url('../fond/Avenir/Avenir-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Avenir Book / Regular */
@font-face {
  font-family: 'Avenir';
  src: url('../fond/Avenir/Avenir-Book.eot');
  src: url('../fond/Avenir/Avenir-Book.eot?#iefix') format('embedded-opentype'),
       url('../fond/Avenir/Avenir-Book.woff2') format('woff2'),
       url('../fond/Avenir/Avenir-Book.woff') format('woff'),
       url('../fond/Avenir/Avenir-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Avenir Medium */
@font-face {
  font-family: 'Avenir';
  src: url('../fond/Avenir/Avenir-Medium.eot');
  src: url('../fond/Avenir/Avenir-Medium.eot?#iefix') format('embedded-opentype'),
       url('../fond/Avenir/Avenir-Medium.woff2') format('woff2'),
       url('../fond/Avenir/Avenir-Medium.woff') format('woff'),
       url('../fond/Avenir/Avenir-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Avenir Heavy / Bold */
@font-face {
  font-family: 'Avenir';
  src: url('../fond/Avenir/Avenir-Heavy.eot');
  src: url('../fond/Avenir/Avenir-Heavy.eot?#iefix') format('embedded-opentype'),
       url('../fond/Avenir/Avenir-Heavy.woff2') format('woff2'),
       url('../fond/Avenir/Avenir-Heavy.woff') format('woff'),
       url('../fond/Avenir/Avenir-Heavy.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Avenir Black */
@font-face {
  font-family: 'Avenir';
  src: url('../fond/Avenir/Avenir-Black.eot');
  src: url('../fond/Avenir/Avenir-Black.eot?#iefix') format('embedded-opentype'),
       url('../fond/Avenir/Avenir-Black.woff2') format('woff2'),
       url('../fond/Avenir/Avenir-Black.woff') format('woff'),
       url('../fond/Avenir/Avenir-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --blue-night: #0a1128;
  --blue-deep: #1c2541;
  --gold-accent: #d4af37;
  --gold-hover: #aa840a;
  --silver-light: #f4f6fc;
  --silver-muted: #e2e8f0;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --font-sans: 'Avenir', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: clamp(4px, 1.2vw, 6px);
  --radius-md: clamp(8px, 2vw, 12px);
  --radius-lg: clamp(12px, 3vw, 20px);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 20px rgba(10,17,40,0.06);
  --shadow-lg: 0 20px 40px rgba(10,17,40,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--silver-light);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-font {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--blue-night);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Grid & Layout systems */
.container {
  width: 100%;
  max-width: clamp(320px, 94vw, 1280px);
  margin: 0 auto;
  padding: 0 clamp(12px, 3.5vw, 24px);
  box-sizing: border-box;
}

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 45vw, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 30vw, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 22vw, 260px), 1fr)); }

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Navigation Header */
header.site-header {
  background-color: var(--blue-night);
  color: var(--white);
  padding: clamp(12px, 2.5vw, 18px) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
}

header.site-header .header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.site-header .logo-container {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
}

header.site-header .logo-container img {
  height: clamp(32px, 5vw, 40px);
}

header.site-header .logo-container span {
  font-family: var(--font-serif);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--white) 30%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header.site-header nav ul {
  display: flex;
  list-style: none;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

header.site-header nav a {
  font-weight: 500;
  font-size: clamp(13px, 2.8vw, 15px);
  color: rgba(255,255,255,0.8);
}

header.site-header nav a:hover {
  color: var(--gold-accent);
}

header.site-header nav a.active {
  color: var(--white);
  border-bottom: 2px solid var(--gold-accent);
  padding-bottom: 4px;
}

header.site-header nav .btn-gold {
  background-color: var(--gold-accent);
  color: var(--blue-night);
  padding: clamp(8px, 1.8vw, 10px) clamp(16px, 3vw, 22px);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

header.site-header nav .btn-gold:hover {
  background-color: var(--gold-hover);
  color: var(--white);
}

/* User identity indicators */
.header-auth-badge {
  background-color: rgba(255, 255, 255, 0.08);
  padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
  border-radius: 99px;
  font-size: clamp(11.5px, 2.5vw, 13px);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero section */
.hero-sec {
  position: relative;
  background: linear-gradient(rgba(10,17,40,0.7), rgba(10,17,40,0.85)), url('https://picsum.photos/seed/ambience/1920/1080') no-repeat center center / cover;
  color: var(--white);
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 11vw, 140px) 0;
  text-align: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-sec h1 {
  font-size: clamp(32px, 6vw, 52px);
  color: var(--white);
  margin-bottom: clamp(12px, 2vw, 16px);
  line-height: 1.25;
}

.hero-sec p {
  font-size: clamp(14px, 2.8vw, 20px);
  color: var(--silver-light);
  max-width: min(90%, 700px);
  margin: 0 auto clamp(24px, 4vw, 40px) auto;
}

/* Search Bar floating relative to hero */
.floating-search-bar {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: clamp(16px, 3vw, 24px);
  width: 100%;
  max-width: min(94%, 1000px);
  margin: clamp(-50px, -5vw, -60px) auto 0 auto;
  position: relative;
  z-index: 10;
  border: 1px solid var(--silver-muted);
  box-sizing: border-box;
}

.floating-search-bar form {
  display: grid;
  gap: clamp(12px, 2.5vw, 16px);
}

@media (min-width: 768px) {
  .floating-search-bar form {
    grid-template-columns: repeat(4, 1fr) auto;
  }
}

.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vw, 6px);
  text-align: left;
}

.form-group-custom label {
  font-size: clamp(11px, 2.2vw, 12px);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.form-group-custom select,
.form-group-custom input {
  padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 14px);
  border: 1px solid var(--silver-muted);
  border-radius: var(--radius-sm);
  font-size: clamp(13px, 2.8vw, 14px);
  color: var(--text-dark);
  background-color: var(--silver-light);
  width: 100%;
}

.form-group-custom select:focus,
.form-group-custom input:focus {
  border-color: var(--gold-accent);
  outline: none;
  background-color: var(--white);
}

.search-submit-btn {
  background-color: var(--blue-night);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: clamp(10px, 2.2vw, 12px) clamp(20px, 4vw, 32px);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  transition: var(--transition);
  height: clamp(44px, 8vw, 48px);
}

.search-submit-btn:hover {
  background-color: var(--gold-accent);
  color: var(--blue-night);
}

/* Featured & listing sections */
section.py-80 {
  padding: clamp(40px, 8vw, 80px) 0;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(24px, 4.5vw, 48px);
}

.section-title h2 {
  font-size: clamp(24px, 4.5vw, 36px);
  margin-bottom: clamp(6px, 1.2vw, 12px);
}

.section-title p {
  color: var(--text-light);
  font-size: clamp(13.5px, 2.5vw, 16px);
  font-family: var(--font-sans);
}

/* Apartment Cards */
.apt-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--silver-muted);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.apt-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,175,55,0.4);
}

.apt-card-image {
  position: relative;
  height: clamp(160px, 28vw, 220px);
  background-color: var(--silver-muted);
}

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

.card-badge {
  position: absolute;
  top: clamp(10px, 2vw, 16px);
  left: clamp(10px, 2vw, 16px);
  background-color: var(--blue-night);
  color: var(--white);
  font-size: clamp(10px, 2.2vw, 11px);
  padding: clamp(4px, 1vw, 6px) clamp(10px, 2.2vw, 14px);
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge-featured {
  background-color: var(--gold-accent);
  color: var(--blue-night);
}

.apt-card-content {
  padding: clamp(16px, 3.5vw, 24px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.apt-card-location {
  font-size: clamp(11.5px, 2.3vw, 13px);
  font-weight: 600;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: clamp(6px, 1.2vw, 8px);
}

.apt-card-title {
  font-size: clamp(16px, 3.5vw, 20px);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: clamp(8px, 1.8vw, 12px);
  color: var(--blue-night);
}

.apt-card-details {
  display: flex;
  gap: clamp(10px, 2vw, 16px);
  font-size: clamp(11.5px, 2.2vw, 13px);
  color: var(--text-light);
  margin-bottom: clamp(12px, 2.8vw, 20px);
  padding-bottom: clamp(10px, 2.2vw, 16px);
  border-bottom: 1px solid var(--silver-light);
}

.apt-card-price {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apt-card-price .price-num {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--blue-night);
}

.apt-card-price .price-num span {
  font-size: clamp(11.5px, 2.2vw, 13px);
  color: var(--text-light);
  font-weight: 400;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-accent);
  font-size: clamp(11.5px, 2.2vw, 13px);
  font-weight: 600;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.2vw, 12px) clamp(16px, 4vw, 28px);
  border-radius: var(--radius-sm);
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--blue-night);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--gold-accent);
  color: var(--blue-night);
}

.btn-gold-fill {
  background-color: var(--gold-accent);
  color: var(--blue-night);
}

.btn-gold-fill:hover {
  background-color: var(--gold-hover);
  color: var(--white);
}

.btn-outline {
  border: 1px solid var(--blue-night);
  color: var(--blue-night);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--blue-night);
  color: var(--white);
}

/* User Account dashboard grid layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (min-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 991px) {
  .dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 20px !important;
  }

  .dashboard-layout > * {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dash-sidebar {
    padding: 16px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .dash-sidebar > div {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    text-align: left !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--silver-light);
    padding-bottom: 12px;
  }
  
  .dash-sidebar > div > div {
    margin: 0 !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
    flex-shrink: 0;
  }
  
  .dash-sidebar h4 {
    font-size: 16px !important;
    margin-bottom: 2px !important;
    word-break: break-word !important;
  }

  .dash-sidebar span {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }
  
  .dash-menu {
    flex-direction: row !important;
    overflow-x: auto !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .dash-menu::-webkit-scrollbar {
    display: none;
  }
  
  .dash-menu-item {
    flex: 0 0 auto !important;
  }
  
  .dash-menu-item a {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  
  .dash-menu-item.active a {
    border-left: none !important;
    border-bottom: 3px solid var(--gold-accent) !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  }

  .white-card {
    padding: 20px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .white-card h3 {
    font-size: 18px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

@media (max-width: 576px) {
  .white-card {
    padding: 16px !important;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Force submit buttons inside forms to take full width and handle wrapping text nicely */
  form input[type="submit"], 
  form button[type="submit"], 
  form .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

/* Responsive Favorite Card */
.responsive-fav-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}

.responsive-fav-card .apt-card-image {
  width: 100% !important;
  height: 150px !important;
}

@media (min-width: 576px) {
  .responsive-fav-card {
    flex-direction: row !important;
    height: 120px !important;
  }
  .responsive-fav-card .apt-card-image {
    width: 120px !important;
    height: 100% !important;
  }
}

/* Responsive Bookings Views */
.mobile-bookings-list {
  display: block;
}
.desktop-bookings-table {
  display: none;
}

/* Responsive Invoices Views */
.mobile-invoices-list {
  display: block;
}
.desktop-invoices-table {
  display: none;
}

/* Responsive Form Grid */
.responsive-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .mobile-bookings-list {
    display: none;
  }
  .desktop-bookings-table {
    display: block;
  }
  .mobile-invoices-list {
    display: none;
  }
  .desktop-invoices-table {
    display: block;
  }
}

@media (min-width: 576px) {
  .responsive-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-sidebar {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3.5vw, 32px) clamp(12px, 2.5vw, 24px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--silver-muted);
}

.dash-menu {
  list-style: none;
  margin-top: clamp(16px, 3.5vw, 30px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vw, 8px);
}

.dash-menu-item a {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 12px);
  padding: clamp(8px, 1.8vw, 12px) clamp(10px, 2.2vw, 16px);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-weight: 500;
  font-size: clamp(13px, 2.5vw, 14px);
}

.dash-menu-item a:hover,
.dash-menu-item.active a {
  background-color: var(--blue-night);
  color: var(--white);
}

.dash-menu-item.active a {
  border-left: 4px solid var(--gold-accent);
}

/* White card containers */
.white-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(16px, 4.5vw, 32px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--silver-muted);
  margin-bottom: clamp(16px, 3vw, 24px);
  width: 100%;
  max-width: 100%;
}

.white-card h3 {
  font-size: clamp(18px, 3.8vw, 22px);
  margin-bottom: clamp(12px, 2.8vw, 18px);
  padding-bottom: clamp(8px, 1.8vw, 12px);
  border-bottom: 2px solid var(--silver-light);
}

/* Table formats */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: clamp(12px, 2.5vw, 14px);
}

table.data-table th {
  background-color: var(--silver-light);
  padding: clamp(10px, 2.2vw, 16px);
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--silver-muted);
}

table.data-table td {
  padding: clamp(10px, 2.2vw, 16px);
  border-bottom: 1px solid var(--silver-light);
  color: var(--text-dark);
  overflow-wrap: break-word;
  word-break: break-all;
}

table.data-table tr:hover td {
  background-color: rgba(244,246,252,0.6);
}

/* Badges for booking status */
.badge {
  display: inline-block;
  padding: clamp(3px, 0.8vw, 4px) clamp(8px, 1.5vw, 10px);
  border-radius: 99px;
  font-size: clamp(10px, 2.2vw, 11px);
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-uploaded { background-color: #e0f2fe; color: #0284c7; }
.badge-confirmed { background-color: #d1fae5; color: #059669; }
.badge-cancelled { background-color: #fee2e2; color: #dc2626; }
.badge-completed { background-color: #f3f4f6; color: #4b5563; }

/* Admin Grid KPI Panels */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.8vw, 20px);
  margin-bottom: clamp(18px, 4vw, 32px);
}

@media (min-width: 1200px) {
  .kpi-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(14px, 3vw, 24px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--silver-muted);
  display: flex;
  flex-direction: column;
}

.kpi-card .kpi-title {
  font-size: clamp(9.5px, 2.2vw, 11px);
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: clamp(6px, 1vw, 8px);
}

.kpi-card .kpi-value {
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--blue-night);
}

/* Testimonials / Reviews lists */
.review-item {
  padding: clamp(12px, 2.5vw, 20px) 0;
  border-bottom: 1px solid var(--silver-light);
}

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

.review-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(6px, 1.5vw, 10px);
}

.review-author {
  font-weight: 600;
  font-size: clamp(13px, 2.8vw, 15px);
}

.review-comment {
  font-style: italic;
  color: var(--text-light);
  font-size: clamp(12.5px, 2.5vw, 14px);
}

/* Footer Section */
footer.site-footer {
  background-color: var(--blue-night);
  color: var(--white);
  padding: clamp(40px, 8vw, 80px) 0 clamp(20px, 4vw, 40px) 0;
  margin-top: clamp(60px, 10vw, 100px);
}

footer.site-footer h4 {
  color: var(--gold-accent);
  margin-bottom: clamp(16px, 3vw, 24px);
  font-size: clamp(15px, 3.2vw, 18px);
  font-family: var(--font-sans);
}

footer.site-footer ul {
  list-style: none;
}

footer.site-footer li {
  margin-bottom: clamp(8px, 1.5vw, 12px);
  font-size: clamp(12.5px, 2.5vw, 14px);
}

footer.site-footer a {
  color: rgba(255,255,255,0.7);
}

footer.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: clamp(20px, 3vw, 30px);
  margin-top: clamp(30px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(11.5px, 2.2vw, 13px);
  color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-row: row;
    flex-direction: row;
  }
}

/* Alerts and banners */
.alert {
  padding: clamp(12px, 2vw, 16px) clamp(16px, 2.5vw, 20px);
  border-radius: var(--radius-sm);
  margin-bottom: clamp(16px, 3vw, 24px);
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 500;
}

.alert-success { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Image gallery on details */
.details-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(8px, 2vw, 16px);
  margin-bottom: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 768px) {
  .details-gallery {
    grid-template-columns: 2fr 1fr;
  }
}

.gallery-main {
  height: clamp(260px, 40vh, 450px);
  background-color: var(--silver-muted);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-side {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vw, 16px);
}

.gallery-side-item {
  height: clamp(120px, 18vh, 217px);
  background-color: var(--silver-muted);
}

.gallery-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
 * Mobile Menu Toggle & Navigation Drawer Styles
 * ========================================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(24px, 5vw, 28px);
  height: clamp(18px, 4vw, 22px);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger-bar {
  width: 100%;
  height: clamp(2px, 0.5vw, 2.5px);
  background-color: var(--white);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transform into X when menu is active */
.menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(clamp(6px, 1.5vw, 8px)) rotate(45deg);
  background-color: var(--gold-accent);
}

.menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-clamp(8px, 1.8vw, 10px)) rotate(-45deg);
  background-color: var(--gold-accent);
}

/* Detail Booking Page Responsive Columns */
.detail-booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 32px);
}

.detail-booking-layout > * {
  min-width: 0; /* Prevents CSS Grid items from overflowing their container */
}

@media (min-width: 992px) {
  .detail-booking-layout {
    grid-template-columns: 1fr clamp(300px, 28vw, 380px);
  }
}

.booking-sidebar-card {
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-accent) !important;
  position: relative;
  top: auto;
  padding: clamp(16px, 3.5vw, 24px); /* Align and respect margins on mobile */
  border-radius: var(--radius-md);
  margin-bottom: clamp(16px, 3vw, 24px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* Ensure borders are included in dimensions */
}

/* Fluid sizes on ultra-small screens using vw with a fallback/clamping */
.booking-sidebar-card h3 {
  font-size: clamp(18px, 4.5vw, 24px) !important;
}

.booking-sidebar-card p {
  font-size: clamp(11.5px, 2.8vw, 14px) !important;
}

.booking-sidebar-card .price-box {
  background-color: var(--silver-light);
  border-radius: var(--radius-sm);
  padding: clamp(10px, 3vw, 18px);
  text-align: center;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.booking-sidebar-card .price-box .price-amount {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: bold;
  color: var(--blue-night);
}

.booking-sidebar-card .price-box .price-unit {
  font-size: clamp(10px, 2.5vw, 13px);
  color: var(--text-light);
}

.booking-sidebar-card input[type="date"],
.booking-sidebar-card select,
.booking-sidebar-card button,
.booking-sidebar-card .btn {
  width: 100%;
  padding: clamp(10px, 2.2vw, 14px) !important; /* Uniform, clean spacing */
  font-size: clamp(13px, 2.5vw, 14px) !important;
}

@media (min-width: 992px) {
  .booking-sidebar-card {
    position: sticky !important;
    top: 100px !important;
    padding: 32px;
  }
  
  .booking-sidebar-card h3 {
    font-size: 22px !important;
  }

  .booking-sidebar-card p {
    font-size: 14px !important;
  }

  .booking-sidebar-card .price-box {
    padding: 16px;
  }

  .booking-sidebar-card .price-box .price-amount {
    font-size: 26px;
  }

  .booking-sidebar-card .price-box .price-unit {
    font-size: 13px;
  }

  .booking-sidebar-card input[type="date"],
  .booking-sidebar-card select,
  .booking-sidebar-card button,
  .booking-sidebar-card .btn {
    padding: 14px !important;
    font-size: 14px !important;
  }
}

/* Responsive Search Filter Sidebar */
.search-filter-sidebar {
  position: relative !important;
  top: auto !important;
  z-index: 10;
  margin-bottom: clamp(16px, 3vw, 24px);
}

@media (min-width: 991px) {
  .search-filter-sidebar {
    position: sticky !important;
    top: 100px !important;
    z-index: 10;
  }
}

/* Details KPI grid */
.details-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2vw, 16px);
}

@media (min-width: 576px) {
  .details-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Global Mobile Media Overrides (< 768px) */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  header.site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: var(--blue-night);
    border-bottom: 3px solid var(--gold-accent);
    padding: clamp(16px, 4vw, 24px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  header.site-header nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  header.site-header nav ul {
    flex-direction: column;
    width: 100%;
    gap: clamp(12px, 3vw, 18px);
    align-items: stretch;
    text-align: center;
  }

  header.site-header nav ul li {
    width: 100%;
  }

  header.site-header nav a {
    display: block;
    padding: clamp(8px, 2vw, 12px);
    font-size: clamp(14px, 3.5vw, 16px);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.9);
  }

  header.site-header nav a:hover {
    background-color: rgba(255,255,255,0.05);
  }
  
  header.site-header nav a.header-auth-badge {
    justify-content: center;
  }

  header.site-header nav .btn-gold {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--gold-accent);
    color: var(--blue-night);
  }

  /* Structural padding and scaling */
  .hero-sec {
    padding: clamp(40px, 8vw, 60px) 0 clamp(60px, 11vw, 100px) 0;
  }

  .hero-sec h1 {
    font-size: clamp(26px, 5.5vw, 32px) !important;
    line-height: 1.35 !important;
  }

  .hero-sec p {
    font-size: clamp(13.5px, 2.5vw, 15px) !important;
    margin-bottom: clamp(18px, 4vw, 24px) !important;
  }

  .floating-search-bar {
    margin: -40px 3vw 0 3vw;
    padding: clamp(12px, 3.5vw, 16px);
  }

  .section-title {
    margin-bottom: clamp(20px, 4.5vw, 32px);
  }

  .section-title h2 {
    font-size: clamp(20px, 4.5vw, 26px);
  }

  .section-title p {
    font-size: clamp(13px, 2.2vw, 14px);
  }

  .details-gallery {
    grid-template-columns: 1fr;
    gap: clamp(6px, 1.5vw, 8px);
  }
  
  .gallery-main {
    height: clamp(200px, 35vh, 280px);
  }

  .gallery-side {
    flex-direction: row;
    gap: clamp(6px, 1.5vw, 8px);
  }

  .gallery-side-item {
    height: clamp(80px, 12vh, 100px);
    flex: 1;
  }
  
  /* Details typography downscaling for small devices */
  h1 {
    font-size: clamp(22px, 5vw, 28px) !important;
  }
  
  /* Prevent horizontal scrollbars in custom sections */
  .container {
    padding: 0 clamp(10px, 3vw, 16px);
  }
  
  /* Avoid large gaps for cards on mobile */
  .white-card {
    padding: clamp(12px, 3.5vw, 20px);
    margin-bottom: clamp(12px, 2.8vw, 16px);
  }
}

/* ==========================================================
 * EuroStay Chatbot - Luxury Concierge Floating Widget
 * ========================================================== */
.eurostay-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-hover));
  color: var(--blue-night);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(10, 17, 40, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.eurostay-chat-launcher:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.eurostay-chat-launcher svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue-night);
  transition: var(--transition);
}

.eurostay-chat-launcher.active svg {
  transform: rotate(90deg);
}

.eurostay-chat-window {
  position: fixed;
  bottom: clamp(80px, 11vh, 100px);
  right: clamp(12px, 3.5vw, 24px);
  width: clamp(280px, 90vw, 380px);
  height: clamp(380px, 75vh, 550px);
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 50px rgba(10, 17, 40, 0.2);
  border: 1px solid var(--silver-muted);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  transform: scale(0.9) translateY(40px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.eurostay-chat-window.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.eurostay-chat-header {
  background: var(--blue-night);
  padding: 18px 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-accent);
}

.eurostay-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eurostay-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--gold-accent);
  font-family: var(--font-serif);
}

.eurostay-chat-title h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.3px;
}

.eurostay-chat-status {
  font-size: 11px;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.eurostay-chat-status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}

.eurostay-chat-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.eurostay-chat-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.eurostay-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #fcfdfe;
}

/* Scrollbar styles inside chat */
.eurostay-chat-messages::-webkit-scrollbar {
  width: 4px;
}
.eurostay-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.eurostay-chat-messages::-webkit-scrollbar-thumb {
  background: var(--silver-muted);
  border-radius: 4px;
}

.eurostay-chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: fadeInBubble 0.3s ease forwards;
}

@keyframes fadeInBubble {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eurostay-chat-bubble.bot {
  background-color: var(--silver-light);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.eurostay-chat-bubble.user {
  background-color: var(--blue-night);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.eurostay-chat-bubble ul, .eurostay-chat-bubble ol {
  margin-left: 16px;
  margin-top: 6px;
}

.eurostay-chat-bubble p {
  margin-bottom: 8px;
}
.eurostay-chat-bubble p:last-child {
  margin-bottom: 0;
}

.eurostay-chat-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.eurostay-chat-option-chip {
  background: var(--white);
  border: 1px solid var(--gold-accent);
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.eurostay-chat-option-chip:hover {
  background: var(--blue-night);
  color: var(--white);
  border-color: var(--blue-night);
  transform: translateY(-1px);
}

/* Advisor mailto buttons */
.eurostay-chat-btn-advisor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-accent), #c29d2b);
  color: var(--blue-night) !important;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none !important;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  transition: var(--transition);
  width: 100%;
}

.eurostay-chat-btn-advisor:hover {
  background: var(--blue-night);
  color: var(--white) !important;
  box-shadow: 0 6px 18px rgba(10, 17, 40, 0.2);
  transform: translateY(-2px);
}

.eurostay-chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--silver-light);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 2px;
  max-width: 80%;
  align-self: flex-start;
}

.eurostay-chat-typing span {
  width: 6px;
  height: 6px;
  background-color: var(--text-light);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.eurostay-chat-typing span:nth-child(2) { animation-delay: .2s; }
.eurostay-chat-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  45% { transform: scale(1); }
}

.eurostay-chat-input-area {
  display: flex;
  padding: 12px 16px;
  background-color: var(--white);
  border-top: 1px solid var(--silver-muted);
  gap: 10px;
}

.eurostay-chat-input-area input {
  flex: 1;
  border: 1px solid var(--silver-muted);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13.5px;
  outline: none;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.eurostay-chat-input-area input:focus {
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.eurostay-chat-send-btn {
  background: var(--blue-night);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.eurostay-chat-send-btn:hover {
  background: var(--gold-accent);
  transform: scale(1.05);
}

.eurostay-chat-send-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

@media (max-width: 480px) {
  .eurostay-chat-window {
    width: calc(100% - 32px);
    height: 480px;
    right: 16px;
    bottom: 90px;
  }
}

/* ==========================================================
   EuroStay Premium Toast Notifications
   ========================================================== */
.eurostay-toast-container {
  position: fixed;
  top: clamp(16px, 4vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
  pointer-events: none;
  width: min(90vw, 420px);
}

.eurostay-toast {
  position: relative;
  background-color: var(--blue-night);
  color: var(--white);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: clamp(12px, 3vw, 16px) clamp(16px, 3.5vw, 20px);
  font-family: var(--font-sans);
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 500;
  line-height: 1.45;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(-25px) scale(0.92);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 14px);
  overflow: hidden;
}

.eurostay-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eurostay-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eurostay-toast-text {
  flex-grow: 1;
}

.eurostay-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  margin: -4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eurostay-toast-close:hover {
  color: var(--white);
  transform: scale(1.08);
}

/* Specific Notification Type Themes */
.eurostay-toast-success {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}
.eurostay-toast-success .eurostay-toast-icon svg {
  color: #10b981;
}

.eurostay-toast-info {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}
.eurostay-toast-info .eurostay-toast-icon svg {
  color: var(--gold-accent);
}

.eurostay-toast-error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.15);
}
.eurostay-toast-error .eurostay-toast-icon svg {
  color: #ef4444;
}

/* ==========================================================
 * Admin-Specific Styles & Mobile Responsiveness (with clamping / vw calculations)
 * ========================================================== */

.admin-header {
  background-color: var(--blue-night);
  border-bottom: 3px solid var(--gold-accent);
  padding: clamp(12px, 1.8vw, 20px) 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.admin-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-logo {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-logo strong {
  color: var(--gold-accent);
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.2vw, 13px);
  text-transform: uppercase;
  font-weight: 750;
  background-color: rgba(212, 175, 55, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.admin-nav {
  display: block;
}

.admin-nav-list {
  list-style: none;
  display: flex;
  gap: clamp(8px, 1.2vw, 20px);
  font-size: clamp(11.5px, 1.3vw, 14px);
  font-weight: 600;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* On mobile, keep it extremely nice by making the list swipable with beautiful modern styled scrollbar or hidden */
@media (max-width: 991px) {
  .admin-header-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
  }
  
  .admin-nav {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: auto;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
    -webkit-overflow-scrolling: touch;
    padding: 2px 16px 10px 16px;
  }
  
  .admin-nav::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbar */
  }

  .admin-nav-list {
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  
  .admin-nav-item a {
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 14px !important;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px !important;
  }

  .admin-nav-item a.active {
    background-color: var(--gold-accent) !important;
    color: var(--blue-night) !important;
    border-color: var(--gold-accent) !important;
  }
}

.admin-nav-item a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}

.admin-nav-item a:hover {
  color: var(--gold-accent);
  background-color: rgba(255, 255, 255, 0.05);
}

.admin-nav-item a.active {
  color: var(--gold-accent);
  font-weight: 700;
  background-color: rgba(212, 175, 55, 0.08);
  border-bottom: 2px solid var(--gold-accent);
  border-radius: 6px 6px 0 0;
}

/* KPI enhancement and scaling with clamp */
.admin-title-section {
  margin-bottom: clamp(20px, 3.5vw, 36px);
  text-align: left;
}

.admin-title-section h1 {
  font-size: clamp(22px, 3.2vw, 36px);
  font-family: var(--font-serif);
  color: var(--blue-night);
  line-height: 1.25;
}

.admin-title-section p {
  color: var(--text-light);
  font-size: clamp(13px, 1.6vw, 15px);
  margin-top: 6px;
}

/* Modern white-card and data-table layouts */
.white-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--silver-muted);
  box-sizing: border-box;
  transition: var(--transition);
}

.white-card:hover {
  box-shadow: var(--shadow-lg);
}

.white-card h3 {
  font-size: clamp(16px, 2.2vw, 20px);
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--silver-light);
  padding-bottom: 12px;
  color: var(--blue-night);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--silver-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: clamp(12px, 1.4vw, 14px);
}

.data-table th {
  background-color: var(--silver-light);
  color: var(--blue-night);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 2px solid var(--silver-muted);
  text-transform: uppercase;
  font-size: clamp(10px, 1.1vw, 11px);
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--silver-light);
  color: var(--text-dark);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: rgba(244, 246, 252, 0.5);
}

/* Responsive Forms */
.form-group-custom {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.form-group-custom label {
  display: block;
  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group-custom input[type="text"],
.form-group-custom input[type="email"],
.form-group-custom input[type="password"],
.form-group-custom input[type="number"],
.form-group-custom input[type="tel"],
.form-group-custom select {
  width: 100%;
  padding: clamp(10px, 1.5vw, 14px);
  font-size: clamp(12px, 1.4vw, 14px);
  border: 1px solid var(--silver-muted);
  border-radius: var(--radius-sm);
  background-color: var(--silver-light);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.form-group-custom input:focus,
.form-group-custom select:focus {
  border-color: var(--gold-accent);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

