/* =====================================================
   MAIN CSS – E-wenze Marketplace | v2.0
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --primary:      #FF385C;
  --primary-dark: #e0274a;
  --secondary:    #008489;
  --success:      #27ae60;
  --warning:      #f39c12;
  --danger:       #e74c3c;
  --text-main:    #222222;
  --text-sec:     #717171;
  --border:       #EBEBEB;
  --bg-light:     #F7F7F7;
  --white:        #ffffff;
  --radius-xl:    32px;
  --radius-lg:    16px;
  --radius-md:    12px;
  --radius-sm:    8px;
  --radius-xs:    4px;
  --transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.08),0 4px 12px rgba(0,0,0,0.05);
  --shadow-md:    0 6px 16px rgba(0,0,0,0.12);
  --shadow-lg:    0 16px 40px rgba(0,0,0,0.16);
  --sidebar-w:    260px;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

body {
  font-family:'Inter',sans-serif;
  color:var(--text-main);
  background:#fff;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,.brand { font-family:'Outfit',sans-serif; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { display:block; max-width:100%; }
button { cursor:pointer; font-family:inherit; }

/* ---- Layout ---- */
.container { max-width:1280px; margin:0 auto; padding:0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  min-height:72px;
  height:auto;
  display:flex;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  background:#fff;
  z-index:1000;
  box-shadow:var(--shadow-xs);
  transition:var(--transition);
  overflow:visible;
}
header.header-simple { position:relative; }
header .container.navbar {
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:center;
  width:100%;
  gap:16px;
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
  overflow:visible;
}
.navbar { display:flex; justify-content:space-between; align-items:center; width:100%; gap:16px; }

.brand {
  font-size:22px; font-weight:800; color:var(--primary);
  display:flex; align-items:center; gap:8px; white-space:nowrap;
  flex-shrink:0;
  transition:var(--transition);
}
.brand:hover { opacity:0.85; }
.brand-logo-wrap {
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:3px 8px;
  box-shadow:var(--shadow-xs);
  transition:var(--transition);
  display:inline-flex;
  align-items:center;
  line-height:0;
}
.brand:hover .brand-logo-wrap {
  box-shadow:0 4px 14px rgba(102,126,234,0.15);
  border-color:#d6ddff;
}
.brand img {
  height:34px;
  width:auto;
  max-width:96px;
  object-fit:contain;
  display:block;
}

/* Search bar */
.search-bar {
  display:flex; align-items:center; gap:0;
  border:1px solid #DDD; border-radius:40px;
  box-shadow:var(--shadow-sm);
  transition:var(--transition); cursor:pointer;
  overflow:hidden;
}
.search-bar:hover { box-shadow:var(--shadow-md); }

.search-input, .search-select {
  border:none; outline:none; background:transparent;
  padding:10px 16px; font-size:14px; font-family:inherit;
  color:var(--text-main);
}
.search-select { cursor:pointer; }
.search-bar .divider { color:#DDD; font-size:18px; }
.text-secondary { color:var(--text-sec); }
.search-bar > span.text-secondary { padding:0 12px; font-size:14px; white-space:nowrap; }

.search-num {
  border:none; outline:none; background:transparent;
  width:40px; text-align:center; font-size:14px; font-weight:600;
  color:var(--primary); padding:0;
}
.search-num::-webkit-inner-spin-button, 
.search-num::-webkit-outer-spin-button { opacity:1; cursor:pointer; }

.search-item {
  display:flex; align-items:center; gap:4px;
  padding:0 12px; height:100%; cursor:pointer;
}
.search-item:hover { background:var(--bg-light); }

.search-bar button[type="submit"] {
  background:var(--primary); color:#fff; border:none;
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:4px 6px 4px 6px;
  transition:var(--transition); flex-shrink:0;
}
.search-bar button[type="submit"]:hover { background:var(--primary-dark); transform:scale(1.05); }

/* User nav */
.user-nav {
  display:flex;
  gap:12px;
  align-items:center;
  flex-shrink:0;
  position:relative;
  z-index:1100;
}
.user-menu-wrap {
  position:relative;
  z-index:1101;
  flex-shrink:0;
}
.user-menu-wrap:has(.user-dropdown.show) {
  z-index:1200;
}

.btn-ghost {
  background:transparent;
  border:1px solid var(--text-main);
  padding:8px 14px;
  font-size:14px;
  font-weight:600;
  border-radius:var(--radius-xl);
  cursor:pointer;
  transition:var(--transition);
  white-space:nowrap;
  color:var(--text-main);
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  flex-shrink:0;
}
.btn-ghost:hover {
  background:var(--text-main);
  color:#fff;
  box-shadow:var(--shadow-sm);
}

button.user-menu,
.user-menu {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #DDD;
  padding:6px 10px 6px 12px;
  border-radius:24px;
  cursor:pointer;
  position:relative;
  transition:var(--transition);
  flex-shrink:0;
  min-height:44px;
  background:#fff;
  font:inherit;
  color:inherit;
  margin:0;
  -webkit-appearance:none;
  appearance:none;
}
button.user-menu:hover,
.user-menu:hover { box-shadow:var(--shadow-sm); }
.user-menu > .fa-bars { font-size:15px; color:var(--text-main); pointer-events:none; }
.user-menu > .fa-circle-user { font-size:22px; color:var(--text-main); pointer-events:none; }
.user-menu > .avatar-sm { pointer-events:none; }

.avatar-sm {
  width:32px; height:32px; border-radius:50%; object-fit:cover;
  border:2px solid var(--primary);
}

.user-dropdown {
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  min-width:240px;
  padding:6px 0;
  z-index:1200;
  border:1px solid var(--border);
  animation:dropIn 0.2s ease;
  overflow:visible;
}
.user-dropdown a i {
  width:18px;
  text-align:center;
  color:#667eea;
  flex-shrink:0;
}
.user-dropdown a.text-danger,
.user-dropdown a.text-danger i { color:var(--danger); }
@keyframes dropIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.user-dropdown.show { display:block; }
.user-dropdown a, .user-dropdown span {
  display:flex; align-items:center; gap:10px;
  padding:10px 20px; font-size:14px; font-weight:500;
  transition:var(--transition); color:var(--text-main);
}
.user-dropdown a:hover { background:var(--bg-light); }
.user-dropdown hr { border:none; border-top:1px solid var(--border); margin:4px 0; }
.user-dropdown .text-danger { color:var(--danger); }
.listing-header-actions { display:flex; gap:8px; align-items:center; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-filter {
  display:flex; gap:28px; padding:24px 0;
  overflow-x:auto; scrollbar-width:none;
  border-bottom:1px solid var(--border);
}
.categories-filter::-webkit-scrollbar { display:none; }

.category-item {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  font-size:12px; font-weight:500; color:var(--text-sec);
  cursor:pointer; white-space:nowrap; padding-bottom:12px;
  border-bottom:2px solid transparent;
  opacity:0.7; transition:var(--transition);
  text-decoration:none;
}
.category-item:hover, .category-item.active {
  color:var(--text-main); opacity:1;
  border-bottom-color:var(--text-main);
}
.category-item i { font-size:22px; }

/* ============================================================
   DESTINATIONS (accueil + pied de page)
   ============================================================ */
.home-destinations-wrap {
  margin: 40px 0 8px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.explorer-root {
  max-width: 100%;
}
.explorer-root-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text-main);
}
.explorer-tab-panels {
  margin-bottom: 20px;
}
.explorer-panel[hidden] {
  display: none !important;
}
.explorer-panel:not([hidden]) {
  display: grid;
}
.explorer-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.explorer-tab {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  font-family: inherit;
}
.explorer-tab.active {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}
.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 16px;
}
.explorer-grid--provinces {
  margin-top: 16px;
}
.explorer-item a {
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s;
}
.explorer-item a:hover {
  opacity: 0.75;
}
.explorer-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.explorer-item span {
  font-size: 14px;
  color: var(--text-sec);
}
.explorer-item--province span {
  font-size: 12px;
}
.explorer-all-provinces {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--bg-light);
}
.explorer-all-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  list-style: none;
}
.explorer-all-summary::-webkit-details-marker {
  display: none;
}
.explorer-prov-count {
  font-weight: 500;
  color: var(--text-sec);
  font-size: 14px;
}

/* ============================================================
   LISTING GRID
   ============================================================ */
.listing-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:24px; padding:32px 0;
}

.listing-card {
  cursor:pointer; display:block; color:inherit;
  transition:var(--transition);
}
.listing-card:hover { transform:translateY(-2px); }

.listing-thumbnail {
  aspect-ratio:1/1; border-radius:var(--radius-lg);
  overflow:hidden; position:relative; background:#f0f0f0;
}
.listing-thumbnail img {
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.5s ease;
}
.listing-card:hover .listing-thumbnail img { transform:scale(1.06); }

.no-photo {
  width:100%; height:100%; display:flex;
  align-items:center; justify-content:center;
  background:var(--bg-light); color:#ccc; font-size:48px;
}

.btn-favorite {
  position:absolute; top:12px; right:12px;
  background:rgba(255,255,255,0.85); border:none;
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; backdrop-filter:blur(4px);
  transition:var(--transition); color:var(--text-main);
}
.btn-favorite:hover { transform:scale(1.1); }
.btn-fav-active .fa-heart { color:var(--primary); }

.badge-category {
  position:absolute; top:12px; left:12px;
  background:rgba(255,255,255,0.9); border-radius:var(--radius-xl);
  padding:4px 10px; font-size:11px; font-weight:600;
  backdrop-filter:blur(4px);
}

.listing-info { margin-top:12px; }
.listing-header { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.listing-title { font-weight:600; font-size:15px; }
.listing-rating { display:flex; align-items:center; gap:4px; font-size:14px; font-weight:500; white-space:nowrap; }
.listing-rating .fa-star { color:#FF385C; font-size:12px; }
.listing-location { color:var(--text-sec); font-size:13px; margin-top:2px; }
.listing-location i { color:var(--primary); font-size:11px; }
.listing-details { font-size:13px; color:var(--text-sec); margin-top:2px; }
.listing-price { margin-top:6px; font-size:14px; }
.price-bold { font-weight:700; }

.results-count { text-align:center; color:var(--text-sec); font-size:14px; padding:16px 0 32px; }

/* Empty state */
.empty-state {
  text-align:center; padding:80px 24px;
  display:flex; flex-direction:column; align-items:center; gap:16px;
  color:var(--text-sec);
}
.empty-state i { color:#DDD; }
.empty-state h2 { color:var(--text-main); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background:var(--primary); color:#fff; border:none;
  padding:14px 24px; border-radius:var(--radius-sm);
  font-size:15px; font-weight:600; font-family:inherit;
  cursor:pointer; transition:var(--transition);
  display:inline-flex; align-items:center; gap:8px;
}
.btn-primary:hover { background:var(--primary-dark); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-primary.btn-full { width:100%; justify-content:center; }
.btn-primary.btn-lg { padding:16px 32px; font-size:16px; border-radius:var(--radius-md); }
.btn-primary.btn-sm { padding:8px 16px; font-size:13px; }

/* OAuth Buttons */
.btn-oauth {
  background:#fff; color:#333; border:1.5px solid #e0e0e0;
  padding:14px 24px; border-radius:var(--radius-sm);
  font-size:15px; font-weight:600; font-family:inherit;
  cursor:pointer; transition:var(--transition);
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none;
}

.btn-oauth:hover {
  background:#f8f8f8; border-color:#d0d0d0;
  transform:translateY(-1px); box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.btn-oauth.btn-gmail {
  /* Google brand colors */
}

.btn-oauth.btn-full {
  width:100%;
}

.btn-outline {
  background:transparent; color:var(--text-main);
  border:1.5px solid var(--border); padding:12px 20px;
  border-radius:var(--radius-sm); font-size:14px; font-weight:500;
  cursor:pointer; transition:var(--transition);
  display:inline-flex; align-items:center; gap:8px; font-family:inherit;
}
.btn-outline:hover { border-color:var(--text-main); box-shadow:var(--shadow-xs); }
.btn-outline.btn-sm { padding:8px 14px; font-size:13px; }
.google-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  font-family: Arial, sans-serif;
  color: #fff;
  background: conic-gradient(#4285F4 0deg 90deg, #34A853 90deg 180deg, #FBBC05 180deg 270deg, #EA4335 270deg 360deg);
}

.btn-success {
  background:var(--success); color:#fff; border:none;
  padding:8px 16px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:600; cursor:pointer;
  transition:var(--transition); display:inline-flex; align-items:center; gap:6px; font-family:inherit;
}
.btn-success:hover { opacity:0.9; }
.btn-success.btn-sm { padding:6px 12px; font-size:12px; }

.btn-danger {
  background:var(--danger); color:#fff; border:none;
  padding:8px 16px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:600; cursor:pointer;
  transition:var(--transition); display:inline-flex; align-items:center; gap:6px; font-family:inherit;
}
.btn-danger:hover { opacity:0.9; }
.btn-danger.btn-sm { padding:6px 12px; font-size:12px; }

.btn-link { background:none; border:none; color:var(--text-main); font-weight:600;
  text-decoration:underline; cursor:pointer; padding:0; font-size:14px; font-family:inherit; }

.btn-icon {
  width:34px; height:34px; border-radius:var(--radius-xs);
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border); background:transparent;
  font-size:14px; color:var(--text-main); cursor:pointer;
  transition:var(--transition);
}
.btn-icon:hover { background:var(--bg-light); }
.btn-icon-danger:hover { background:#fef2f2; color:var(--danger); border-color:var(--danger); }

.btn-sm { font-size:13px; padding:8px 14px; }

.btn-demo {
  background:var(--bg-light); border:1px solid var(--border);
  padding:8px 12px; border-radius:var(--radius-sm); font-size:13px;
  cursor:pointer; transition:var(--transition); font-family:inherit;
  display:inline-flex; align-items:center; gap:6px;
}
.btn-demo:hover { background:#eee; }

.btn-fav-active { background:rgba(255,56,92,0.1); }
.btn-fav-active.btn-ghost { color:var(--primary); }

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group label {
  font-size:13px; font-weight:600; color:var(--text-main);
  display:flex; justify-content:space-between;
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.three-cols { grid-template-columns:repeat(3,1fr); }

.input-wrap {
  position:relative; display:flex; align-items:center;
}
.input-wrap > i:first-child {
  position:absolute; left:14px; color:var(--text-sec); font-size:14px; pointer-events:none;
}
.input-wrap input, .input-wrap select {
  width:100%; padding:12px 14px 12px 40px;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:14px; font-family:inherit; outline:none;
  transition:var(--transition); background:#fff;
}
.input-wrap input:focus, .input-wrap select:focus {
  border-color:var(--primary); box-shadow:0 0 0 3px rgba(255,56,92,0.1);
}
.input-wrap .toggle-pwd {
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:none; border:none;
  color:var(--text-sec); cursor:pointer; font-size:15px;
  padding:6px; line-height:1; z-index:2;
}
.input-wrap.input-wrap--no-icon > i { display:none !important; }
.input-wrap.input-wrap--no-icon > input,
.input-wrap.input-wrap--no-icon > select {
  padding-left:14px;
}
.input-wrap.input-wrap--no-icon > input[type="password"] {
  padding-right:52px;
}

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="url"], input[type="date"],
input[type="password"], select, textarea {
  width:100%; padding:12px 14px;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:14px; font-family:inherit; outline:none;
  transition:var(--transition); background:#fff; color:var(--text-main);
}
input:focus, select:focus, textarea:focus {
  border-color:var(--primary); box-shadow:0 0 0 3px rgba(255,56,92,0.1);
}
.input-disabled { background:var(--bg-light); cursor:not-allowed; color:var(--text-sec); }
textarea { resize:vertical; min-height:100px; }
.form-control { padding:12px 14px; }

.float-right { float:right; font-weight:400; font-size:13px; color:var(--primary); }
.text-link { color:var(--primary); font-weight:500; }
.text-link:hover { text-decoration:underline; }

.checkbox-label {
  display:flex; align-items:center; gap:10px;
  font-size:14px; cursor:pointer; user-select:none;
}
.checkbox-label input { width:auto; cursor:pointer; }

.char-count { font-size:12px; color:var(--text-sec); text-align:right; }

/* Password strength */
.password-strength { margin-top:4px; }
.pwd-bar { height:4px; background:#eee; border-radius:2px; margin-bottom:4px; }
.pwd-bar div { height:100%; border-radius:2px; transition:width 0.3s ease; }

/* Role toggle */
.role-toggle { display:flex; gap:12px; }
.role-option {
  flex:1; border:1.5px solid var(--border); border-radius:var(--radius-md);
  padding:12px; cursor:pointer; transition:var(--transition); user-select:none;
}
.role-option:has(input:checked) { border-color:var(--primary); background:rgba(255,56,92,0.06); }
.role-option input { display:none; }
.role-option span { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:500; }

/* Alerts */
.alert {
  padding:14px 18px; border-radius:var(--radius-sm);
  display:flex; align-items:flex-start; gap:12px;
  margin-bottom:20px; font-size:14px;
}
.alert-success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
.alert-error   { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }
.alert ul { margin:4px 0 0 4px; }
.alert ul li { margin-bottom:2px; }
.close-btn { margin-left:auto; background:none; border:none; cursor:pointer; font-size:18px; color:inherit; }

/* Auth divider */
.auth-divider {
  text-align:center; position:relative; margin:20px 0;
}
.auth-divider::before {
  content:''; position:absolute; top:50%; left:0; right:0;
  height:1px; background:var(--border);
}
.auth-divider span {
  background:#fff; position:relative; padding:0 12px;
  color:var(--text-sec); font-size:13px;
}

/* Demo accounts */
.demo-accounts { border-top:1px solid var(--border); padding-top:16px; margin-top:4px; }
.demo-accounts > div { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { background:var(--bg-light); }

.auth-container {
  display:flex; min-height:100vh;
}
.auth-left {
  flex:1; position:relative; overflow:hidden; display:none;
}
@media(min-width:768px){ .auth-left { display:block; } }

.auth-bg-img {
  width:100%; height:100%; object-fit:cover;
  filter:brightness(0.65);
}
.auth-brand {
  position:absolute; top:32px; left:32px; z-index:2;
}
.auth-brand a {
  color:#fff; font-family:'Outfit',sans-serif; font-weight:800;
  font-size:26px; display:inline-flex; align-items:center; gap:8px;
  background:#fff;
  border:1px solid rgba(255,255,255,0.65);
  border-radius:14px;
  padding:6px 12px;
  box-shadow:0 10px 26px rgba(0,0,0,0.25);
  transition:var(--transition);
}
.auth-brand a:hover {
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,0.3);
}
.auth-brand img {
  height:52px;
  width:auto;
  object-fit:contain;
}
.auth-left-overlay {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(to top,rgba(0,0,0,0.7),transparent);
  padding:48px 40px; color:#fff; z-index:2;
}
.auth-left-overlay h1 { font-size:32px; line-height:1.2; margin-bottom:12px; }
.auth-left-overlay p  { opacity:0.85; font-size:16px; }

.auth-right {
  width:100%; max-width:520px; display:flex;
  align-items:center; justify-content:center;
  padding:32px 24px; background:#fff;
}
.auth-form-wrap { width:100%; max-width:420px; }
.auth-form-wrap h2 { font-size:28px; margin-bottom:4px; }
.auth-sub { color:var(--text-sec); margin-bottom:28px; font-size:15px; }

.auth-form { display:flex; flex-direction:column; gap:18px; }
.auth-switch { text-align:center; font-size:14px; color:var(--text-sec); }
.auth-switch a { color:var(--primary); font-weight:600; }
.auth-switch a:hover { text-decoration:underline; }
.auth-legal { font-size:12px; color:var(--text-sec); text-align:center; line-height:1.5; }
.auth-legal a { color:var(--primary); }

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */
.listing-page { padding-bottom:80px; }
.listing-page-header { padding:28px 0 20px; }
.listing-page-title { font-size:28px; font-weight:700; line-height:1.2; margin-bottom:8px; }
.listing-page-meta { display:flex; align-items:center; gap:8px; font-size:14px; flex-wrap:wrap; }
.rating-star { display:flex; align-items:center; gap:4px; font-weight:600; }
.rating-star .fa-star { color:var(--primary); }
.dot { color:var(--text-sec); }
.underline { text-decoration:underline; cursor:pointer; }
.listing-loc i { color:var(--primary); }

/* Gallery */
.listing-gallery {
  display:grid; grid-template-columns:1fr 1fr;
  gap:8px; border-radius:var(--radius-lg); overflow:hidden;
  max-height:480px;
}
.gallery-main { grid-row:span 2; }
.gallery-main img {
  width:100%; height:100%; object-fit:cover;
  cursor:pointer; transition:var(--transition);
}
.gallery-main img:hover { filter:brightness(0.92); }

.gallery-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
}
.gallery-side {
  width:100%; height:100%; object-fit:cover;
  cursor:pointer; transition:var(--transition);
}
.gallery-side:hover { filter:brightness(0.92); }
.gallery-more {
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.5); color:#fff;
  font-weight:600; font-size:16px; cursor:pointer;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}

/* Listing body layout */
.listing-body { display:grid; grid-template-columns:1fr 380px; gap:80px; margin-top:48px; align-items:start; }

.divider-line { border:none; border-top:1px solid var(--border); margin:32px 0; }

/* Host row */
.listing-host-row { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.listing-host-row h2 { font-size:22px; margin-bottom:6px; }
.listing-specs { color:var(--text-sec); font-size:15px; }

.host-avatar-wrap { flex-shrink:0; }
.host-avatar { width:56px; height:56px; border-radius:50%; object-fit:cover; border:2px solid var(--border); }
.host-avatar-placeholder {
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:16px;
}
.host-avatar-lg  { width:72px; height:72px; }

/* Amenities */
.amenities-highlights { display:flex; flex-direction:column; gap:16px; }
.amenity-item { display:flex; align-items:center; gap:16px; font-size:15px; }
.amenity-item i { font-size:22px; width:24px; text-align:center; }

/* Description */
.listing-description h3 { font-size:20px; margin-bottom:14px; }
.description-text {
  font-size:15px; line-height:1.7; color:var(--text-main);
  max-height:200px; overflow:hidden; position:relative;
  transition:max-height 0.4s ease;
}
.description-text.expanded { max-height:2000px; }

/* Map */
.listing-map-section h3 { font-size:20px; margin-bottom:12px; }
.listing-address { color:var(--text-sec); margin-bottom:16px; font-size:15px; }
.map-placeholder {
  background:var(--bg-light); border-radius:var(--radius-md);
  height:200px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:12px;
  color:var(--text-sec); border:1px solid var(--border);
}

/* Reviews */
.reviews-section h3 { font-size:20px; margin-bottom:20px; display:flex; align-items:center; gap:10px; }
.reviews-section h3 .fa-star { color:var(--primary); }
.stars-breakdown { display:grid; grid-template-columns:1fr 1fr; gap:8px 24px; margin-bottom:28px; }
.stars-row { display:flex; align-items:center; gap:12px; font-size:14px; }
.stars-bar { flex:1; height:4px; background:#DDD; border-radius:2px; overflow:hidden; }
.stars-bar > div { height:100%; background:var(--text-main); border-radius:2px; }
.reviews-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }

.review-card { padding:20px; border:1px solid var(--border); border-radius:var(--radius-md); }
.review-author { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.review-author img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.avatar-initials {
  width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg,var(--secondary),#005f63);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700;
}
.review-author strong { display:block; font-size:14px; }
.review-author span  { font-size:12px; color:var(--text-sec); }
.review-stars { color:#f39c12; font-size:13px; margin-bottom:8px; }
.review-text { font-size:14px; line-height:1.6; color:var(--text-main); }

/* Host section */
.host-section h3 { font-size:20px; margin-bottom:20px; }
.host-profile { display:flex; gap:24px; align-items:flex-start; }
.host-profile h4 { font-size:18px; margin-bottom:4px; }

/* Similar */
.similar-section { margin-top:60px; padding-top:40px; border-top:1px solid var(--border); }
.similar-section h3 { font-size:20px; margin-bottom:0; }
.similar-grid { padding-top:20px; }

/* ============================================================
   BOOKING SIDEBAR
   ============================================================ */
.booking-sidebar { position:sticky; top:100px; }
.booking-card {
  border:1px solid var(--border); border-radius:var(--radius-xl);
  padding:28px; box-shadow:var(--shadow-md);
}
.booking-price { display:flex; align-items:baseline; gap:4px; margin-bottom:4px; }
.price-big { font-size:26px; font-weight:700; }
.booking-rating { display:flex; align-items:center; gap:6px; font-size:14px; margin-bottom:20px; }
.booking-rating .fa-star { color:var(--primary); }

.booking-form { display:flex; flex-direction:column; gap:16px; }

.date-inputs { display:grid; grid-template-columns:1fr 1fr; border:1.5px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.date-group { padding:12px; }
.date-group:first-child { border-right:1px solid var(--border); }
.date-group label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; display:block; margin-bottom:4px; }
.date-group input { border:none; outline:none; padding:0; font-size:14px; width:100%; }

.guests-input { display:flex; align-items:center; gap:16px; }
.guests-input button {
  width:32px; height:32px; border-radius:50%;
  border:1.5px solid var(--border); background:transparent;
  font-size:14px; display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.guests-input button:hover { border-color:var(--text-main); }
.guests-input input { width:40px; text-align:center; border:none; outline:none; font-size:16px; font-weight:600; }

.price-breakdown { border-top:1px solid var(--border); padding-top:16px; display:flex; flex-direction:column; gap:10px; }
.price-row { display:flex; justify-content:space-between; font-size:15px; }
.total-row { border-top:1px solid var(--border); padding-top:12px; margin-top:4px; }

.booking-note { font-size:12px; color:var(--text-sec); text-align:center; display:flex; align-items:center; gap:6px; justify-content:center; }
.report-link { text-align:center; margin-top:16px; font-size:13px; color:var(--text-sec); }
.report-link a:hover { text-decoration:underline; }

/* Lightbox */
.lightbox {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.93); z-index:9999;
  align-items:center; justify-content:center;
}
.lightbox.active { display:flex; }
.lightbox img { max-width:90vw; max-height:85vh; object-fit:contain; border-radius:var(--radius-md); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position:absolute; background:rgba(255,255,255,0.15);
  border:none; color:#fff; font-size:24px; cursor:pointer;
  width:48px; height:48px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition); backdrop-filter:blur(4px);
}
.lightbox-close  { top:20px; right:20px; }
.lightbox-prev   { left:20px; }
.lightbox-next   { right:20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background:rgba(255,255,255,0.3); }
.lightbox-counter { position:absolute; bottom:20px; color:#fff; font-size:14px; }

/* ============================================================
   ADD LISTING PAGE
   ============================================================ */
.add-listing-page { padding-bottom:80px; }
.page-header { padding:40px 0 32px; }
.page-header h1 { font-size:32px; margin-bottom:8px; }

.add-form { max-width:800px; display:flex; flex-direction:column; gap:32px; }

.form-section {
  background:#fff; border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:32px;
  box-shadow:var(--shadow-xs);
}
.form-section-header { display:flex; align-items:center; gap:16px; margin-bottom:28px; }
.step-num {
  width:36px; height:36px; background:var(--primary); color:#fff;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:16px; flex-shrink:0;
}
.form-section-header h3 { font-size:18px; }

.counter-input {
  display:flex; align-items:center; gap:16px;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:8px 16px; width:fit-content;
}
.counter-input button {
  width:28px; height:28px; border-radius:50%;
  border:1.5px solid var(--border); background:transparent;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; transition:var(--transition);
}
.counter-input button:hover { border-color:var(--text-main); }
.counter-input input { width:40px; text-align:center; border:none; outline:none; font-size:16px; font-weight:600; padding:0; }

.amenities-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.amenity-toggle {
  display:flex; flex-direction:column; align-items:center; gap:10px;
  border:1.5px solid var(--border); border-radius:var(--radius-md);
  padding:16px 12px; cursor:pointer; transition:var(--transition); user-select:none;
  font-size:14px; font-weight:500; text-align:center;
}
.amenity-toggle i { font-size:22px; color:var(--text-sec); transition:var(--transition); }
.amenity-toggle:hover { border-color:var(--primary); }
.amenity-toggle.active { border-color:var(--primary); background:rgba(255,56,92,0.06); }
.amenity-toggle.active i { color:var(--primary); }
.amenity-toggle input { display:none; }

/* Photo upload */
.photo-upload-area {
  border:2px dashed var(--border); border-radius:var(--radius-lg);
  padding:32px; text-align:center; cursor:pointer; transition:var(--transition);
}
.photo-upload-area:hover, .photo-upload-area.drag-over {
  border-color:var(--primary); background:rgba(255,56,92,0.04);
}
.upload-placeholder { color:var(--text-sec); }
.upload-placeholder i { margin-bottom:12px; color:var(--primary); }
.upload-placeholder p { font-size:16px; margin-bottom:4px; }
.upload-placeholder small { font-size:13px; }
.photo-previews { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.photo-preview-item { position:relative; width:100px; height:100px; }
.photo-preview-item img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius-sm); }
.badge-main {
  position:absolute; bottom:4px; left:4px;
  background:var(--primary); color:#fff;
  font-size:9px; font-weight:700; padding:2px 6px; border-radius:4px;
}

.form-submit-area { display:flex; gap:16px; justify-content:flex-end; padding:8px 0 32px; }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-page { padding-bottom:80px; }
.profile-hero {
  display:flex; align-items:center; gap:28px;
  padding:48px 0 32px; flex-wrap:wrap;
}
.profile-avatar-section { flex-shrink:0; }
.profile-avatar { width:96px; height:96px; border-radius:50%; object-fit:cover; border:3px solid var(--border); }
.profile-avatar-placeholder {
  width:96px; height:96px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:32px; font-weight:700;
}
.profile-hero-info { flex:1; min-width:200px; }
.profile-hero-info h1 { font-size:28px; margin-bottom:6px; }
.badge-admin { background:var(--primary); color:#fff; padding:3px 10px; border-radius:var(--radius-xl); font-size:12px; font-weight:600; }
.badge-host  { background:var(--secondary); color:#fff; padding:3px 10px; border-radius:var(--radius-xl); font-size:12px; font-weight:600; }
.profile-stats { display:flex; gap:32px; margin-top:20px; }
.stat-item { display:flex; flex-direction:column; gap:2px; }
.stat-item strong { font-size:24px; font-weight:700; }
.stat-item span   { font-size:13px; color:var(--text-sec); }

.profile-tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-top:8px; overflow-x:auto; }
.tab-btn {
  background:none; border:none; padding:14px 20px;
  font-size:14px; font-weight:500; cursor:pointer;
  display:flex; align-items:center; gap:8px;
  border-bottom:2px solid transparent; margin-bottom:-1px;
  white-space:nowrap; color:var(--text-sec); transition:var(--transition); font-family:inherit;
}
.tab-btn:hover, .tab-btn.active { color:var(--text-main); border-bottom-color:var(--text-main); }

.tab-content { display:none; padding-top:32px; }
.tab-content.active { display:block; }

.settings-form { max-width:700px; display:flex; flex-direction:column; gap:24px; }
.form-card {
  background:#fff; border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:28px;
  display:flex; flex-direction:column; gap:20px;
  box-shadow:var(--shadow-xs);
}
.form-card h3 { font-size:17px; border-bottom:1px solid var(--border); padding-bottom:16px; }
.form-actions { display:flex; justify-content:flex-end; }

/* Tables profil */
.listings-table-wrap { overflow-x:auto; border-radius:var(--radius-md); border:1px solid var(--border); }
.listings-table { width:100%; border-collapse:collapse; }
.listings-table th { background:var(--bg-light); padding:12px 16px; font-size:13px; font-weight:600; text-align:left; border-bottom:1px solid var(--border); white-space:nowrap; }
.listings-table td { padding:14px 16px; border-bottom:1px solid var(--border); font-size:14px; vertical-align:middle; }
.listings-table tr:last-child td { border-bottom:none; }
.listings-table tr:hover td { background:var(--bg-light); }
.table-thumb { width:56px; height:56px; border-radius:var(--radius-sm); object-fit:cover; }
.table-actions { display:flex; gap:6px; align-items:center; }

/* Status badges */
.status-badge {
  display:inline-flex; align-items:center; padding:4px 10px;
  border-radius:var(--radius-xl); font-size:12px; font-weight:600; white-space:nowrap;
}
.status-actif      { background:#d4edda; color:#155724; }
.status-inactif    { background:#ffeeba; color:#856404; }
.status-en_attente { background:#cce5ff; color:#004085; }
.status-confirmee  { background:#d4edda; color:#155724; }
.status-annulee    { background:#f8d7da; color:#721c24; }
.status-terminee   { background:#e2e3e5; color:#383d41; }

.tab-header-actions { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.badge-count {
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--border); border-radius:var(--radius-xl);
  padding:2px 10px; font-size:13px; font-weight:600; margin-left:8px;
}

/* Reservations */
.reservations-list { display:flex; flex-direction:column; gap:16px; }
.reservation-card {
  display:flex; gap:20px; align-items:center;
  border:1px solid var(--border); border-radius:var(--radius-md); padding:16px;
  transition:var(--transition);
}
.reservation-card:hover { box-shadow:var(--shadow-sm); }
.reservation-thumb { width:80px; height:80px; border-radius:var(--radius-sm); object-fit:cover; flex-shrink:0; }
.reservation-info { flex:1; display:flex; flex-direction:column; gap:4px; font-size:14px; }
.reservation-info h4 { font-size:15px; }
.reservation-info i { color:var(--primary); margin-right:4px; }
.reservation-meta { display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex-shrink:0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background:var(--bg-light); padding:48px 0 0; border-top:1px solid var(--border); margin-top:80px; }
.footer-content { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:40px; padding-bottom:40px; }
.footer-section h4 { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:20px; }
.footer-section ul li { margin-bottom:12px; font-size:14px; color:var(--text-sec); display:flex; align-items:center; gap:8px; }
.footer-section ul li a:hover { text-decoration:underline; }
.footer-section ul li i { color:var(--primary); }

.footer-bottom {
  border-top:1px solid var(--border); padding:20px 0;
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; color:var(--text-sec); flex-wrap:wrap; gap:16px;
}
.footer-copy a { color:var(--primary); }
.footer-copy a:hover { text-decoration:underline; }
.footer-social { display:flex; align-items:center; gap:16px; font-size:16px; }
.footer-social i { cursor:pointer; transition:var(--transition); }
.footer-social i:hover { color:var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .listing-body { display:flex; flex-direction:column; gap:32px; margin-top:28px; }
  .listing-details-col { order:2; }
  .booking-sidebar { order:1; position:static; width:100%; }
  .listing-gallery { grid-template-columns:1fr; max-height:360px; }
  .gallery-grid { display:none; }
}
@media (max-width:768px){
  .listing-page { padding-bottom:48px; }
  .listing-page-header { padding:18px 0 14px; }
  .search-bar input,.search-bar select,.search-bar .text-secondary,.search-bar .divider { display:none; }
  .listing-grid { grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); }
  .form-row { grid-template-columns:1fr; }
  .three-cols { grid-template-columns:1fr; }
  .reviews-grid { grid-template-columns:1fr; }
  .stars-breakdown { grid-template-columns:1fr; }
  .profile-hero { flex-direction:column; align-items:flex-start; }
  .auth-right { max-width:100%; }
  .listing-page-title { font-size:22px; }
  .listing-page-meta { gap:6px; font-size:13px; }
  .listing-header-actions { width:100%; }
  .listing-header-actions .btn-ghost { flex:1; justify-content:center; }
  .listing-gallery { border-radius:18px; max-height:none; aspect-ratio:4/3; }
  .gallery-main { min-height:260px; }
  .gallery-main img { height:100%; min-height:260px; }
  .listing-body { gap:24px; margin-top:22px; }
  .booking-card {
    border-radius:22px;
    padding:22px 18px;
    box-shadow:0 14px 36px rgba(15,23,42,.10);
    border-color:#e5e7eb;
  }
  .booking-price { justify-content:space-between; align-items:center; margin-bottom:10px; }
  .price-big { font-size:24px; }
  .booking-rating { margin-bottom:16px; }
  .booking-form { gap:14px; }
  .date-inputs { grid-template-columns:1fr; border-radius:16px; }
  .date-group { padding:14px 16px; }
  .date-group:first-child { border-right:none; border-bottom:1px solid var(--border); }
  .date-group label { font-size:11px; margin-bottom:6px; }
  .date-group input { font-size:16px; min-height:26px; }
  .guests-input {
    justify-content:space-between;
    border:1.5px solid var(--border);
    border-radius:16px;
    padding:12px 14px;
  }
  .guests-input button { width:38px; height:38px; font-size:16px; background:#fff; }
  .guests-input input { width:48px; font-size:17px; }
  .price-breakdown {
    background:#fafafa;
    border:1px solid var(--border);
    border-radius:16px;
    padding:14px;
  }
  .booking-note-price {
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:12px;
    line-height:1.45;
  }
  .booking-card .btn-primary,
  .booking-card .btn-outline {
    width:100%;
    min-height:48px;
    border-radius:14px;
    font-size:16px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .booking-note { margin-top:14px; line-height:1.4; }
  .listing-host-row { align-items:center; }
  .listing-host-row h2 { font-size:19px; }
  .listing-specs { font-size:14px; line-height:1.5; }
  .amenity-item { gap:12px; font-size:14px; }
  .divider-line { margin:24px 0; }
  .trust-card { border-radius:18px; }
}
@media (max-width:480px){
  .navbar { gap:8px; }
  .brand { font-size:18px; }
  .profile-stats { gap:20px; }
  .auth-brand { top:18px; left:18px; }
  .auth-brand a { padding:5px 10px; border-radius:12px; }
  .auth-brand img { height:42px; }
  .container { padding-left:16px; padding-right:16px; }
  .listing-page-title { font-size:20px; line-height:1.25; }
  .gallery-main,
  .gallery-main img { min-height:230px; }
  .booking-card { margin-left:-2px; margin-right:-2px; }
  .host-profile { gap:14px; }
  .similar-section { margin-top:40px; }
}
/* --- Premium Search Bar (header) --- */
.search-bar-premium {
  display:flex;
  align-items:center;
  gap:0;
  flex:1 1 auto;
  min-width:0;
  max-width:560px;
  background:#fff;
  border:2px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow-sm);
  padding:6px 8px 6px 12px;
  transition:var(--transition);
  position:relative;
  z-index:10;
}
.search-bar-premium:hover,
.search-bar-premium:focus-within {
  border-color:#667eea;
  box-shadow:0 6px 18px rgba(102,126,234,0.12);
}
.search-bar-premium .search-field {
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1 1 0;
  min-width:72px;
  padding:0 8px;
}
.search-bar-premium .search-field label {
  font-size:10px;
  font-weight:700;
  color:var(--text-sec);
  text-transform:uppercase;
  letter-spacing:0.04em;
  line-height:1.2;
  white-space:nowrap;
}
.search-bar-premium .search-field input,
.search-bar-premium .search-field select {
  border:none;
  outline:none;
  background:transparent;
  font-size:13px;
  font-weight:500;
  color:var(--text-main);
  width:100%;
  min-width:0;
  font-family:inherit;
}
.search-bar-premium .search-field input::placeholder { color:#999; font-weight:400; }
.search-bar-premium .search-field select {
  cursor:pointer;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23717171' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 0 center;
  padding-right:14px;
}
.search-bar-premium .v-divider {
  width:1px;
  height:24px;
  background:var(--border);
  flex-shrink:0;
  margin:0 2px;
}
.search-bar-premium .num-input-wrap { display:flex; align-items:center; }
.search-bar-premium .num-input-wrap input { width:36px; }
.search-bar-premium .search-submit-btn {
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  color:#fff;
  border:none;
  width:38px;
  height:38px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  flex-shrink:0;
  margin-left:4px;
  transition:var(--transition);
}
.search-bar-premium .search-submit-btn:hover {
  transform:scale(1.05);
  box-shadow:0 4px 12px rgba(102,126,234,0.35);
}

/* Header responsive */
@media (max-width:1100px){
  header .container.navbar { gap:12px; padding:0 16px; }
  .search-bar-premium { max-width:420px; }
  .search-bar-premium .search-field label { font-size:9px; }
  .user-nav .btn-ghost { padding:8px 12px; font-size:13px; }
}
@media (max-width:900px){
  header { padding:10px 0; }
  header .container.navbar {
    flex-wrap:wrap;
    align-items:center;
    row-gap:10px;
  }
  header .container.navbar > .brand { order:1; }
  header .container.navbar > .user-nav {
    order:2;
    margin-left:auto;
    z-index:1100;
  }
  header .container.navbar > .search-bar-premium {
    order:3;
    flex:1 1 100%;
    max-width:100%;
    width:100%;
    z-index:1;
  }
  .search-bar-premium .search-field { min-width:64px; }
}
@media (max-width:640px){
  header .container.navbar { padding:0 12px; row-gap:8px; }
  .brand img { height:30px; max-width:84px; }
  .brand-logo-wrap { padding:2px 6px; border-radius:8px; }
  .user-nav { gap:8px; }
  .user-nav .btn-ghost { display:none; }
  .search-bar-premium {
    display:grid;
    grid-template-columns:1fr 1fr auto;
    grid-template-rows:auto auto;
    gap:6px 8px;
    align-items:end;
    border-radius:16px;
    padding:10px 10px 10px 12px;
  }
  .search-bar-premium > .search-field:nth-child(1) { grid-column:1 / -1; }
  .search-bar-premium > .search-field:nth-child(3) { grid-column:1; grid-row:2; }
  .search-bar-premium > .search-field:nth-child(5) { grid-column:2; grid-row:2; }
  .search-bar-premium > .v-divider { display:none; }
  .search-bar-premium .search-field label { display:block; font-size:9px; }
  .search-bar-premium > .search-submit-btn {
    grid-column:3;
    grid-row:2;
    width:40px;
    height:40px;
    margin:0;
    align-self:end;
  }
}
@media (max-width:400px){
  .search-bar-premium {
    grid-template-columns:1fr auto;
  }
  .search-bar-premium > .search-field:nth-child(5) { display:none; }
  .search-bar-premium > .search-field:nth-child(3) { grid-column:1; grid-row:2; }
  .search-bar-premium > .search-submit-btn { grid-column:2; grid-row:2; }
}
