/* SnapSpot Paris - Web Application Styles */
/* Design system extracted from Unity USS stylesheets */

:root {
  /* Primary Colors */
  --primary: rgb(70, 130, 220);
  --primary-dark: rgb(50, 110, 200);
  --primary-light: rgb(239, 246, 255);
  --primary-bg: rgb(240, 248, 255);

  /* Status Colors */
  --success: rgb(80, 180, 80);
  --success-light: rgb(195, 230, 200);
  --warning: rgb(255, 180, 50);
  --warning-light: rgb(240, 225, 180);
  --error: rgb(220, 60, 80);
  --error-light: rgb(235, 195, 195);

  /* Neutrals */
  --white: #ffffff;
  --bg: rgb(250, 250, 250);
  --bg-secondary: rgb(245, 245, 250);
  --border: rgb(230, 230, 240);
  --border-light: rgb(240, 240, 240);
  --text-primary: rgb(30, 30, 50);
  --text-secondary: rgb(120, 120, 140);
  --text-muted: rgb(160, 160, 180);
  --dark: rgb(50, 50, 50);
  --dark-bg: rgb(25, 35, 60);

  /* Accent */
  --gold: rgb(255, 193, 7);
  --star: rgb(255, 180, 0);

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  --sp-2xl: 24px;
  --sp-3xl: 32px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 40px;
  --r-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* App dimensions */
  --app-max-width: 100%;
  --tab-bar-height: 70px;
  --header-height: 60px;
  --sidebar-width: 240px;
}

/* Dark Mode */
[data-theme="dark"] {
  --white: rgb(30, 30, 40);
  --bg: rgb(20, 20, 30);
  --bg-secondary: rgb(35, 35, 50);
  --border: rgb(55, 55, 70);
  --border-light: rgb(45, 45, 60);
  --text-primary: rgb(230, 230, 240);
  --text-secondary: rgb(170, 170, 190);
  --text-muted: rgb(120, 120, 140);
  --dark: rgb(220, 220, 230);
  --primary-light: rgba(70, 130, 220, 0.15);
  --primary-bg: rgba(70, 130, 220, 0.1);
  --success-light: rgba(80, 180, 80, 0.2);
  --warning-light: rgba(255, 180, 50, 0.2);
  --error-light: rgba(220, 60, 80, 0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .screen-header {
  background: rgb(25, 25, 35);
  border-color: var(--border);
}

[data-theme="dark"] #tab-bar {
  background: rgb(25, 25, 35);
  border-color: var(--border);
}

[data-theme="dark"] #sidebar {
  background: rgb(25, 25, 35);
  border-color: var(--border);
}

[data-theme="dark"] .btn-back {
  background: var(--bg-secondary);
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .card-form input {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .support-contact {
  background: var(--bg-secondary);
}

[data-theme="dark"] .notification-panel {
  background: rgb(30, 30, 40);
}

[data-theme="dark"] .payment-card-item {
  background: var(--bg-secondary);
  border-color: var(--border);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Playfair Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* App Shell */
#app {
  width: 100%;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Desktop layout: sidebar + main content */
#app-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Sidebar (desktop only, hidden on mobile) */
#sidebar {
  display: none;
}

/* Main content area */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Screen Container */
#screen-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--tab-bar-height);
  -webkit-overflow-scrolling: touch;
}

#screen-container::-webkit-scrollbar {
  display: none;
}

.screen {
  display: none;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: block;
}

#welcome-screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==================== TAB BAR ==================== */
#tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--tab-bar-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 var(--sp-sm);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: var(--sp-sm) var(--sp-md);
  border: none;
  background: none;
  color: var(--text-muted);
  transition: color 0.2s;
  font-size: 10px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.tab-item .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.tab-item.active {
  color: var(--primary);
}

/* Unread messages badge — shown on the Messages tab (bottom bar + sidebar) */
.tab-item, .sidebar-item { position: relative; }
.tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--white);
  pointer-events: none;
}
.tab-badge.hidden { display: none; }
#sidebar .tab-badge {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  box-shadow: none;
}

.tab-item:hover {
  color: var(--primary);
}

/* ==================== COMMON COMPONENTS ==================== */

/* Headers */
.screen-header {
  display: flex;
  align-items: center;
  padding: var(--sp-lg) var(--sp-xl);
  gap: var(--sp-md);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
}

.screen-header h1 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.btn-back {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--bg-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 12px 24px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: var(--r-md);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--r-xl);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  padding: var(--sp-lg);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-clickable {
  cursor: pointer;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: rgb(40, 120, 40);
}

.badge-warning {
  background: var(--warning-light);
  color: rgb(160, 120, 0);
}

.badge-error {
  background: var(--error-light);
  color: var(--error);
}

.badge-gold {
  background: rgb(255, 245, 220);
  color: rgb(180, 130, 0);
}

/* Tags / Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.chip:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  margin: 0 var(--sp-xl);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--primary);
}

.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  font-size: 16px;
  color: var(--text-muted);
}

/* Stars */
.stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary-light), rgb(200, 220, 255));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.avatar-xl { width: 80px; height: 80px; font-size: 32px; }

/* Verified badge */
.verified {
  color: var(--primary);
  font-size: 14px;
}

/* Section */
.section {
  padding: var(--sp-xl);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  border: none;
  background: none;
}

/* Horizontal scroll */
.h-scroll {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  padding-bottom: var(--sp-sm);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--sp-lg) 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-lg);
}

.empty-state h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.empty-state p {
  font-size: 13px;
  margin-bottom: var(--sp-xl);
}

/* ==================== WELCOME SCREEN ==================== */
#welcome-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, rgb(25, 35, 60) 0%, rgb(40, 60, 100) 50%, rgb(70, 130, 220) 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 32px;
  text-align: center;
  color: var(--white);
}

#welcome-screen > * {
  flex-shrink: 0;
}

.welcome-logo {
  font-size: 56px;
  margin-bottom: var(--sp-md);
}

.welcome-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.5;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: 24px;
  width: 100%;
  max-width: 300px;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  text-align: left;
}

.welcome-feature .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.welcome-feature .feature-text {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  width: 100%;
  max-width: 300px;
}

.welcome-buttons .btn-primary {
  background: var(--white);
  color: var(--dark-bg);
}

.welcome-buttons .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.welcome-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.welcome-terms {
  font-size: 11px;
  opacity: 0.5;
  margin-top: var(--sp-xl);
  line-height: 1.4;
}

.switch-app-link {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.switch-app-link:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* "Back to landing" link in the top-left of the welcome screen.
   Subtle white-on-dark, only visible enough to be discoverable, but doesn't
   compete with the primary CTAs. */
.welcome-back-link {
  position: absolute;
  top: 18px;
  left: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}
.welcome-back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* ==================== SOCIAL SIGN-IN ==================== */
/* "Continue with Google" button — sits above the email/password form on
   login + signup screens. White-on-transparent to stand out against the
   dark gradient background, with the official Google "G" logo as SVG (no
   external dependency). */
.btn-social-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
  font-family: inherit;
  margin-bottom: 16px;
}
.btn-social-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60,64,67,0.15), 0 1px 2px rgba(60,64,67,0.3);
}
.btn-social-google:active {
  transform: scale(0.99);
}
.btn-social-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-social-google svg { flex-shrink: 0; }

/* Horizontal divider with centred "ou" text — separates social sign-in
   from email/password form. */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.auth-divider span {
  padding: 0 14px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* ==================== AUTH SCREENS ==================== */
#welcome-screen,
#login-screen,
#signup-screen,
#forgot-password-screen,
#reset-password-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  /* Force column flow on all auth screens. Without this, login/signup/forgot
     default to `flex-direction: row` and our cross-axis rules end up swapped
     (justify=horizontal in row, but vertical in column). */
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 24px 0;
  /* Cancel any body padding the verify/guest banners may have added — the
     auth screens render a full overlay and shouldn't be pushed down. */
  margin-top: 0 !important;
}

/* Vertical alignment differs between welcome (always short → center it) and
   login/signup/forgot (can overflow → top-aligned with auto-margin trick on
   the inner card so it stays centered when the content fits). */
#welcome-screen {
  justify-content: center;
}
#login-screen,
#signup-screen,
#forgot-password-screen,
#reset-password-screen {
  justify-content: flex-start;
}

#welcome-screen .auth-container,
#login-screen .auth-container,
#signup-screen .auth-container,
#forgot-password-screen .auth-container,
#reset-password-screen .auth-container {
  /* Vertical auto-centering inside a flex column with leftover space.
     If the card is taller than the viewport, this collapses to 0 and the
     card sits at the top of its scroll area. */
  margin: auto 0;
  flex-shrink: 0;
}

/* Same dark gradient background as login/signup so the white text on the
   forgot-password / reset-password screens is readable. Without this they
   inherit the default white screen background and become invisible. */
#login-screen,
#signup-screen,
#forgot-password-screen,
#reset-password-screen {
  background: linear-gradient(135deg, var(--dark-bg) 0%, rgb(40, 55, 90) 100%);
}

#login-screen.active,
#signup-screen.active,
#forgot-password-screen.active,
#reset-password-screen.active {
  display: flex;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: var(--sp-2xl);
  text-align: center;
}

.auth-container .welcome-logo {
  font-size: 48px;
  margin-bottom: var(--sp-lg);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-xs);
}

.auth-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-2xl);
}

.auth-form {
  text-align: left;
}

.auth-form .form-group {
  margin-bottom: var(--sp-lg);
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-xs);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.auth-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
}

.form-row {
  display: flex;
  gap: var(--sp-md);
}

.form-row .form-group {
  flex: 1;
}

.auth-error {
  color: var(--error);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: var(--sp-sm);
  text-align: center;
}

.auth-footer {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: var(--sp-xl);
}

.auth-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link-forgot {
  text-align: right;
  margin-top: -4px;
  margin-bottom: var(--sp-md);
}

.auth-link-forgot .auth-link {
  font-size: 13px;
  font-weight: 500;
}

.auth-success {
  color: #4CAF50;
  font-size: 13px;
  min-height: 20px;
  margin-bottom: var(--sp-sm);
  text-align: center;
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--radius-md);
  padding: var(--sp-sm) var(--sp-md);
  line-height: 1.5;
}

.auth-success .auth-link {
  display: inline-block;
  margin-top: 8px;
}

#login-screen .btn-back,
#signup-screen .btn-back,
#forgot-password-screen .btn-back {
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: var(--sp-sm) 0;
  margin-bottom: var(--sp-lg);
  display: block;
  text-align: left;
}

#login-screen .btn-back:hover,
#signup-screen .btn-back:hover {
  color: var(--white);
  opacity: 0.8;
}

/* Role Selector */
.role-selector {
  display: flex;
  gap: var(--sp-md);
  margin-top: var(--sp-xs);
}

.role-btn {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.role-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.role-btn.active {
  background: rgba(70, 130, 220, 0.15);
  border-color: var(--primary);
}

.role-icon {
  display: block;
  font-size: 28px;
  margin-bottom: var(--sp-xs);
}

.role-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.role-desc {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ==================== HOME V2 (iOS-style redesign) ==================== */
.home-v2 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  padding-bottom: 96px;
}
.home-v2__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.home-v2__hello { font-size: 14px; color: var(--text-secondary); margin-bottom: 2px; }
.home-v2__name {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-primary); margin: 0 0 2px; line-height: 1.15;
}
.home-v2__sub { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Search pill — clickable, navigates to Explorer screen. */
.home-v2__search-wrap {
  position: relative;
}
.home-v2__search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: text;
  transition: box-shadow .15s, border-color .15s;
}
.home-v2__search:focus-within { border-color: var(--primary); box-shadow: 0 2px 6px rgba(70, 130, 220, 0.15); }
.home-v2__search:hover { border-color: var(--primary); box-shadow: 0 2px 6px rgba(70, 130, 220, 0.15); }
.home-v2__search-icon { font-size: 16px; color: var(--text-secondary); }
.home-v2__search input {
  flex: 1; border: 0; background: transparent;
  font-size: 15px; color: var(--text-primary); outline: none; cursor: text;
}
.home-v2__search input::placeholder { color: var(--text-secondary); }

/* Search autocomplete dropdown */
.home-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 200;
}
.home-search-group {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.home-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .12s;
}
.home-search-item:hover { background: var(--bg); }
.home-search-item__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.home-search-item__emoji {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.home-search-item__info {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.home-search-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-search-item__sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.home-search-item__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--primary);
  flex-shrink: 0;
}
.home-search-item__tag--spot {
  background: #f0fdf4;
  color: #16a34a;
}
.home-search-empty {
  padding: 16px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* Promo / discovery card with peach→sky gradient. Currently used to
   funnel users towards the Explorer feed. Reusable for future challenge
   or seasonal promo banners. */
.home-v2__promo {
  position: relative;
  padding: 20px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffd6a3 0%, #f7c47b 30%, #6fa6d4 100%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(70, 130, 220, 0.35);
  cursor: pointer;
  transition: transform .12s;
}
.home-v2__promo:active { transform: scale(0.99); }
.home-v2__promo-deco {
  position: absolute;
  right: -50px; top: -30px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.home-v2__promo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.4);
}
.home-v2__promo-title {
  font-family: inherit;
  font-size: 28px; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.home-v2__promo-title em { font-style: normal; font-weight: 800; }
.home-v2__promo-title sup { font-size: 0.6em; vertical-align: super; }
.home-v2__promo-sub {
  font-size: 14px; margin: 0 0 18px;
  color: rgba(255,255,255,0.95);
}
.home-v2__promo-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.95);
  color: #1f2a44; border: 0;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 42, 68, 0.18);
  transition: transform .1s, box-shadow .15s;
}
.home-v2__promo-cta:hover { box-shadow: 0 6px 18px rgba(31, 42, 68, 0.28); }
.home-v2__promo-cta:active { transform: scale(0.97); }

/* Next-reservation summary card. */
.home-next-res {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.home-next-res:hover { box-shadow: 0 4px 10px rgba(70,130,220,0.15); }
.home-next-res:active { transform: scale(0.99); }
.home-next-res__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.home-next-res__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
}
.home-next-res__body { display: flex; align-items: center; gap: 12px; }
.home-next-res__info { flex: 1; min-width: 0; }
.home-next-res__info h4 {
  margin: 0 0 2px; font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-next-res__info p {
  margin: 0; font-size: 13px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* PARKED STYLES — Snappy/gamification card. Reuse for the future
   "défi du jour" feature by injecting `.home-v2__snappy` HTML. */
.home-v2__snappy {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
}
.home-v2__snappy:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.home-v2__snappy:active { transform: scale(0.99); }
.home-v2__snappy-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #ffffff;
}
.home-v2__snappy-body { flex: 1; min-width: 0; }
.home-v2__snappy-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; margin-bottom: 6px;
}
.home-v2__snappy-row strong { color: var(--text-primary); font-weight: 700; }
.home-v2__snappy-count { color: #f59e0b; font-weight: 700; font-size: 13px; }
.home-v2__snappy-bar {
  height: 6px; background: var(--bg-secondary);
  border-radius: 999px; overflow: hidden; margin-bottom: 6px;
}
.home-v2__snappy-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 999px; transition: width .4s ease-out;
}
.home-v2__snappy-caption { font-size: 12px; color: var(--text-secondary); }

/* Section header row. */
.home-v2__section { margin-top: 6px; }
.home-v2__section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding: 0 2px;
}
.home-v2__section-head h3 {
  margin: 0; font-size: 18px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text-primary);
}
.home-v2__see-all {
  background: transparent; border: 0;
  color: var(--primary); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
  transition: background .15s;
}
.home-v2__see-all:hover { background: rgba(70, 130, 220, 0.08); }

/* Popular-spots horizontal scroll. */
.home-v2__spots-scroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 8px;
  margin: 0 -16px;
}
.home-v2__spots-scroll::-webkit-scrollbar { display: none; }
.home-v2__spots-scroll { scrollbar-width: none; }
.home-spot-card {
  flex: 0 0 auto; width: 160px;
  scroll-snap-align: start; cursor: pointer;
  transition: transform .12s;
}
.home-spot-card:active { transform: scale(0.98); }
.home-spot-card__media {
  position: relative;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde68a 0%, #6fa6d4 100%);
  margin-bottom: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.home-spot-card__emoji { font-size: 48px; }
.home-spot-card__trending {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: #1f2a44;
  font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 999px;
}
.home-spot-card__heart {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.home-spot-card__heart:active { transform: scale(0.85); }
.home-spot-card__info h4 {
  margin: 0 0 2px; font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-spot-card__info p {
  margin: 0; font-size: 12px;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px;
}
.home-spot-card__pin { font-size: 10px; opacity: 0.7; }

/* Photographer cards on the home (v2). Wider rounded cards, avatar circle
   with availability dot, name with verified badge, rating + status row,
   specialties, right-aligned price. Designed to work as a vertical list
   rather than a grid. */
.home-v2__photogs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-photog-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.home-photog-card:hover { box-shadow: 0 4px 12px rgba(70,130,220,0.12); }
.home-photog-card:active { transform: scale(0.99); }

.home-photog-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.home-photog-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.home-photog-card__dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid var(--white);
}
.home-photog-card__body {
  flex: 1;
  min-width: 0;
}
.home-photog-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-photog-card__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.home-photog-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.home-photog-card__star {
  color: #fbbf24;
  font-size: 14px;
}
.home-photog-card__meta strong {
  color: var(--text-primary);
  font-weight: 700;
}
.home-photog-card__sep {
  margin: 0 2px;
  opacity: 0.5;
}
.home-photog-card__status-on {
  color: #10b981;
  font-weight: 600;
}
.home-photog-card__tags {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-photog-card__price {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.home-photog-card__price-from {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.home-photog-card__price strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Quote of the day at the bottom of the home. Static for now — when we
   want to rotate it daily, swap the inline content for a small array
   indexed by the current date. Visual style: small-caps eyebrow + serif
   italic quote + attribution, all centered, with a thin top border that
   fades into the cream. */

/* ==================== ACHIEVEMENTS / DÉFIS ==================== */

/* --- Cartes home (3 en ligne) --- */
.home-ach-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.home-ach-card {
  position: relative;
  background: var(--ach-bg, #fdf3eb);
  border: 1.5px solid var(--ach-color, #cd7f32);
  border-radius: 14px;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s, box-shadow .15s;
  cursor: default;
}
.home-ach-card--small .home-ach-card__icon { font-size: 22px; }
.home-ach-card--done {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ach-color) 25%, transparent);
}
.home-ach-card__check {
  position: absolute;
  top: 7px; right: 7px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--ach-color);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.home-ach-card__icon { font-size: 24px; line-height: 1; }
.home-ach-card__title { font-size: 12px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.home-ach-card__bar {
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  margin-top: 3px;
  overflow: hidden;
}
.home-ach-card__bar-fill {
  height: 100%;
  background: var(--ach-color);
  border-radius: 999px;
  transition: width .4s ease;
}
.home-ach-card__footer { display: flex; justify-content: space-between; align-items: center; }
.home-ach-card__prog { font-size: 10px; color: var(--text-secondary); font-weight: 600; }
.home-ach-card__xp { font-size: 10px; font-weight: 700; color: var(--ach-color); }

/* --- Page complète des défis --- */
.ach-page { padding: 0 16px 32px; display: flex; flex-direction: column; gap: 16px; }

.ach-xp-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 18px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ach-xp-banner__label { font-size: 11px; opacity: .7; letter-spacing: .08em; text-transform: uppercase; }
.ach-xp-banner__value { font-size: 28px; font-weight: 800; }
.ach-xp-banner__value span { font-size: 14px; font-weight: 400; opacity: .6; }
.ach-xp-banner__bar-wrap { display: flex; align-items: center; gap: 10px; }
.ach-xp-banner__bar { flex: 1; height: 6px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.ach-xp-banner__bar-fill { height: 100%; background: #f5a623; border-radius: 999px; transition: width .5s ease; }
.ach-xp-banner__pct { font-size: 12px; font-weight: 700; color: #f5a623; }

.ach-paris-card {
  background: linear-gradient(135deg, #e8f4f8 0%, #d6eaf8 100%);
  border: 1px solid #aed6f1;
  border-radius: 16px;
  padding: 18px;
}
.ach-paris-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ach-paris-card__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2980b9; margin-bottom: 4px; }
.ach-paris-card__level { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.ach-paris-card__pct { font-size: 28px; font-weight: 800; color: #2980b9; }
.ach-paris-card__bar { height: 8px; background: rgba(41,128,185,.15); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.ach-paris-card__bar-fill { height: 100%; background: linear-gradient(90deg, #3498db, #2980b9); border-radius: 999px; transition: width .5s ease; }
.ach-paris-card__sub { font-size: 12px; color: #5d6d7e; margin-bottom: 14px; }
.ach-spots-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ach-spot-dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.6);
  border: 1.5px solid rgba(41,128,185,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #bdc3c7;
  transition: all .2s;
}
.ach-spot-dot.visited {
  background: #fff;
  border-color: #3498db;
  box-shadow: 0 2px 6px rgba(52,152,219,.2);
}

.ach-tier-section { display: flex; flex-direction: column; gap: 8px; }
.ach-tier-header {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 2px;
}
.ach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ach-bg, #fdf3eb);
  border: 1.5px solid rgba(0,0,0,.06);
  border-left: 3px solid var(--ach-color);
  border-radius: 12px;
  padding: 12px 14px;
  gap: 12px;
}
.ach-row--done { background: var(--ach-bg); border-color: var(--ach-color); }
.ach-row__left { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.ach-row__icon { font-size: 26px; flex-shrink: 0; }
.ach-row__info { flex: 1; min-width: 0; }
.ach-row__title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.ach-row__desc { font-size: 12px; color: var(--text-secondary); margin: 2px 0 6px; }
.ach-row__bar-wrap { display: flex; align-items: center; gap: 8px; }
.ach-row__bar { flex: 1; height: 5px; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden; }
.ach-row__bar-fill { height: 100%; background: var(--ach-color); border-radius: 999px; transition: width .4s ease; }
.ach-row__prog { font-size: 11px; color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.ach-row__right { flex-shrink: 0; }
.ach-row__check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ach-color);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ach-row__xp { font-size: 13px; font-weight: 700; color: var(--ach-color); }

.home-v2__quote {
  margin-top: 12px;
  padding: 24px 16px 12px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}
.home-v2__quote-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.home-v2__quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 380px;
  margin: 0 auto 14px;
  letter-spacing: -0.005em;
}
.home-v2__quote-author {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .home-v2 { gap: 22px; padding: 20px 0; }
  .home-v2__name { font-size: 30px; }
  .home-v2__promo-title { font-size: 34px; }
  .home-v2__spots-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    overflow: visible;
    margin: 0; padding: 0;
  }
  .home-spot-card { width: auto; }
  .home-photog-card { padding: 16px 18px; }
  .home-photog-card__avatar { width: 60px; height: 60px; font-size: 20px; }
  .home-v2__quote { padding: 32px 16px 16px; }
  .home-v2__quote-text { font-size: 20px; max-width: 480px; }
}

/* ==================== HOME SCREEN (legacy) ==================== */

.no-session-card {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
}

.no-session-icon {
  font-size: 36px;
  margin-bottom: var(--sp-sm);
}

.no-session-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.no-session-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-lg);
  line-height: 1.4;
}

.home-header {
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-lg);
}

.home-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-greeting h1 {
  font-size: 22px;
  font-weight: 700;
}

.home-greeting .greeting-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.notification-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--error);
  display: none;
}

.notification-dot.visible {
  display: block;
}

.notification-wrapper {
  position: relative;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

.notification-panel.hidden {
  display: none;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) var(--sp-lg) var(--sp-md);
  border-bottom: 1px solid var(--border-light);
}

.notification-panel-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.notif-mark-all:hover {
  text-decoration: underline;
}

.notification-panel-body {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light);
}

.notif-item:hover {
  background: var(--bg-secondary);
}

.notif-item.unread {
  background: var(--primary-light);
}

.notif-item.unread:hover {
  background: rgb(225, 238, 255);
}

.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--r-sm);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.notif-empty {
  padding: var(--sp-3xl) var(--sp-xl);
  text-align: center;
}

.notif-empty-icon {
  font-size: 36px;
  margin-bottom: var(--sp-md);
  opacity: 0.4;
}

.notif-empty p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.notif-empty span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 400px) {
  .notification-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgb(59, 130, 246), rgb(99, 102, 241));
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  margin: var(--sp-lg) var(--sp-xl);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s;
}

.cta-banner:hover {
  transform: scale(1.01);
}

.cta-banner h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-banner p {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: var(--sp-md);
}

.cta-banner .cta-stats {
  display: flex;
  gap: var(--sp-lg);
}

.cta-stat {
  background: rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
}

/* Next reservation card */
.next-reservation-card {
  margin: var(--sp-lg) var(--sp-xl);
}

.next-reservation-card .card {
  background: linear-gradient(135deg, rgb(245, 250, 255), rgb(240, 248, 255));
  border-color: rgb(200, 220, 245);
}

.next-res-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.next-res-header .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-res-info {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.next-res-details h4 {
  font-size: 14px;
  font-weight: 600;
}

.next-res-details p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Spot Cards */
.spot-card {
  min-width: 140px;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.spot-card:hover {
  transform: translateY(-2px);
}

.spot-card-image {
  height: 100px;
  background: linear-gradient(135deg, var(--primary-light), rgb(220, 235, 255));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}

.spot-card-image .trending-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  background: rgba(255,255,255,0.9);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

.spot-card-info {
  padding: var(--sp-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.spot-card-info h4 {
  font-size: 13px;
  font-weight: 600;
}

.spot-card-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Photographer Cards */
.photographer-card {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  margin-bottom: var(--sp-md);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.photographer-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.photographer-card .ph-info {
  flex: 1;
  min-width: 0;
}

.photographer-card .ph-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.photographer-card .ph-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.photographer-card .ph-rating .star {
  color: var(--gold);
}

.photographer-card .ph-specialties {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.photographer-card .ph-specialties .tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.photographer-card .ph-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

.photographer-card .ph-meta {
  display: flex;
  gap: var(--sp-md);
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Featured photographer */
.featured-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin: 0 var(--sp-xl);
  cursor: pointer;
}

.featured-banner {
  height: 120px;
  background: linear-gradient(135deg, rgb(99, 102, 241), rgb(139, 92, 246));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
}

.featured-banner .featured-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
}

.featured-body {
  padding: var(--sp-lg);
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
}

.featured-body .ph-info h3 {
  font-size: 16px;
  font-weight: 700;
}

/* ==================== EXPLORER SCREEN ==================== */
.explorer-tabs {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  border-bottom: 1px solid var(--border-light);
}

.explorer-tab {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.explorer-tab.active {
  background: var(--primary);
  color: var(--white);
}

.filter-bar {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-xl);
  font-size: 12px;
  color: var(--text-secondary);
}

.sort-bar select {
  border: none;
  background: none;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.photographer-list {
  padding: 0 var(--sp-xl) var(--sp-xl);
}

/* ==================== FEED V2 ==================== */

/* Barre de filtres horizontale scrollable */
.feed-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 4px;
  scrollbar-width: none;
}
.feed-filter-bar::-webkit-scrollbar { display: none; }

.feed-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.feed-chip.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
  font-weight: 600;
}
.feed-chip:hover:not(.active) { border-color: var(--text-primary); color: var(--text-primary); }

/* Liste de posts */
.feed-v2__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Carte */
.feed-v2__card {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

/* Header : avatar + nom + date */
.feed-v2__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}
.feed-v2__author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-v2__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.feed-v2__avatar img { width:100%;height:100%;object-fit:cover;border-radius:50%; }
.feed-v2__author-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.feed-v2__date { font-size: 12px; color: var(--text-muted); }

/* Image */
.feed-v2__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f0f0f0;
}
.feed-v2__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay "1 Snappy pour débloquer" */
/* Animation ⚡ double-tap */
.feed-v2__snap-anim {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 72px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.feed-v2__snap-anim.pop {
  animation: snapPop .7s cubic-bezier(.17,.89,.32,1.49) forwards;
}
@keyframes snapPop {
  0%   { transform: translate(-50%,-50%) scale(0);   opacity: 0; }
  30%  { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
  60%  { transform: translate(-50%,-50%) scale(1);   opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.1); opacity: 0; }
}

.feed-v2__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  cursor: pointer;
}
.feed-v2__lock-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: transform .15s;
}
.feed-v2__lock-overlay:hover .feed-v2__lock-pill { transform: scale(1.03); }

/* Caption */
.feed-v2__caption {
  padding: 10px 16px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Footer : snappy btn + tags */
.feed-v2__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 0;
}
.feed-v2__snappy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  color: var(--text-primary);
}
.feed-v2__snappy-btn:hover { border-color: #f5a623; background: #fffbeb; }
.feed-v2__snappy-btn.snapped {
  background: linear-gradient(135deg,#fff7e6,#fff0cc);
  border-color: #f5a623;
  color: #c97d00;
}
.feed-v2__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.feed-v2__spot {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}
.feed-v2__spot:hover { text-decoration: underline; }
.feed-v2__tag {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Révélation du photographe */
.feed-v2__reveal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 16px 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border-radius: 14px;
  cursor: pointer;
  transition: opacity .15s;
  border: 1px solid #c7d7f5;
}
.feed-v2__reveal:hover { opacity: .85; }
.feed-v2__reveal-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.feed-v2__reveal-avatar img { width:100%;height:100%;object-fit:cover; }
.feed-v2__reveal-info { display: flex; flex-direction: column; gap: 2px; }
.feed-v2__reveal-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.feed-v2__reveal-cta { font-size: 12px; color: var(--primary); font-weight: 500; }

/* Empty */
.feed-empty {
  text-align: center;
  padding: 48px 20px;
}
.feed-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.feed-empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feed-empty p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

@media (min-width: 768px) {
  .feed-v2__list { max-width: 480px; margin: 0 auto; }
  .feed-v2__image-wrap { aspect-ratio: 4 / 5; }
}

/* ==================== PHOTOGRAPHER LIST V2 ==================== */

/* Topbar : search + filter button */
.ph-v2__topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 20px 0;
}
.ph-v2__searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  transition: border-color .15s;
}
.ph-v2__searchbar:focus-within { border-color: var(--primary); }
.ph-v2__search-icon { font-size: 14px; opacity: .5; flex-shrink: 0; }
.ph-v2__search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
}
.ph-v2__search-input::placeholder { color: var(--text-muted); }

/* Bouton Filtres */
.ph-filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
  font-family: inherit;
  position: relative;
}
.ph-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.ph-filter-btn.has-filters {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.ph-filter-btn__icon { font-size: 14px; }
.ph-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  margin-left: 2px;
}
.ph-filter-btn.has-filters .ph-filter-badge { color: var(--primary); }

/* Quick chips (accès rapide sous la barre) */
.ph-quick-chips {
  display: flex;
  gap: 8px;
  padding: 10px 20px 2px;
  align-items: center;
}
.ph-qchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
}
.ph-qchip:hover { border-color: var(--primary); color: var(--primary); }
.ph-qchip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}
.ph-qchip--reset {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 8px;
}
.ph-qchip--reset:hover { color: var(--text-primary); background: var(--bg); border-color: var(--border); }

/* Compteur */
.ph-count {
  padding: 6px 20px 2px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Liste */
.ph-v2__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px 80px;
}

/* Card */
.ph-v2__card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  position: relative;
}
.ph-v2__card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(99,102,241,.10);
  transform: translateY(-1px);
}

/* Avatar + dot dispo */
.ph-v2__avatar-wrap { position: relative; flex-shrink: 0; }
.ph-v2__avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ph-v2__dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--white);
}

/* Corps texte */
.ph-v2__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ph-v2__name {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-v2__verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.ph-v2__rating { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-secondary); }
.ph-v2__star { color: #f59e0b; }
.ph-v2__sep { opacity: .4; }
.ph-v2__dispo { color: #22c55e; font-weight: 600; }
.ph-v2__badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.ph-v2__badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); color: var(--text-secondary);
  border: 1px solid var(--border); font-weight: 500;
}

/* Prix */
.ph-v2__price { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.ph-v2__from { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.ph-v2__price strong { font-size: 17px; font-weight: 800; color: var(--text-primary); }

/* Empty state */
.ph-empty { text-align: center; padding: 48px 20px; color: var(--text-secondary); font-size: 14px; }
.ph-empty p { line-height: 1.6; }

/* ── Bottom sheet filtres ──────────────────────────────────── */
.ph-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.ph-sheet-backdrop.open { opacity: 1; pointer-events: all; }

.ph-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,0,.67,0);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
}
.ph-sheet.open { transform: translateY(0); transition-timing-function: cubic-bezier(.33,1,.68,1); }

.ph-sheet__handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 12px auto 0;
  flex-shrink: 0;
}
.ph-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.ph-sheet__title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0; }
.ph-sheet__close {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--bg);
  font-size: 14px; font-weight: 700; color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ph-sheet__close:hover { background: var(--border); }

.ph-sheet__body {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0 8px;
}
.ph-sheet__section {
  padding: 16px 20px 4px;
}
.ph-sheet__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}
.ph-sheet__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ph-sheet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.ph-sheet-chip:hover { border-color: var(--primary); }
.ph-sheet-chip.active {
  background: var(--primary-light, #eef2ff);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.ph-sheet__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ph-sheet__reset {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 8px 4px;
}
.ph-sheet__reset:hover { color: var(--text-primary); }
.ph-sheet__apply {
  flex: 1;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  font-family: inherit;
}
.ph-sheet__apply:hover { opacity: .9; }

/* ==================== PHOTOGRAPHER DETAIL ==================== */
/* ==================== PHOTOGRAPHER DETAIL V2 ==================== */

/* Nav */
.phd2__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.phd2__nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background .15s;
}
.phd2__nav-btn:hover { background: var(--bg); }

/* Hero card */
.phd2__hero {
  margin: 0 16px;
  border-radius: 20px;
  padding: 20px 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.phd2__hero-deco1 {
  position: absolute; top: -20px; right: -20px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.15); pointer-events: none;
}
.phd2__hero-deco2 {
  position: absolute; bottom: -30px; right: 60px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.10); pointer-events: none;
}
.phd2__hero-avatar {
  width: 68px; height: 68px;
  border-radius: 14px;
  background: rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  overflow: hidden; flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.phd2__hero-info { flex: 1; min-width: 0; }
.phd2__hero-name {
  font-size: 17px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; line-height: 1.3; margin-bottom: 5px;
}
.phd2__verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  color: #fff; font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.phd2__hero-rating {
  font-size: 13px; color: rgba(255,255,255,.9);
  display: flex; align-items: center; gap: 4px; margin-bottom: 8px;
}
.phd2__hero-star { color: #ffd700; }
.phd2__dispo {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; color: #fff;
}
.phd2__dispo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
}

/* Stats */
.phd2__stats {
  display: flex; align-items: center;
  margin: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 0;
}
.phd2__stat { flex: 1; text-align: center; }
.phd2__stat-val { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.phd2__stat-lbl { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.phd2__stat-sep { width: 1px; height: 34px; background: var(--border); flex-shrink: 0; }

/* À propos */
.phd2__about { padding: 16px 16px 4px; }
.phd2__about-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.phd2__bio { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 12px; }
.phd2__tags { display: flex; gap: 7px; flex-wrap: wrap; }
.phd2__tag {
  font-size: 12px; font-weight: 600; color: var(--text-primary);
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg);
}
.phd2__tag--lang { background: #eff6ff; color: #1d4ed8; }

/* Tabs */
.phd2__tabs {
  display: flex;
  padding: 14px 16px 0;
  border-bottom: 1.5px solid var(--border);
  margin-top: 12px;
}
.phd2__tab {
  padding: 8px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  border: none; background: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer; transition: all .15s;
  font-family: inherit;
}
.phd2__tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Tab content */
.phd2__tab-content { padding: 16px 16px 20px; }

/* Pack cards */
.phd2__pack {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.phd2__pack--popular {
  border-color: #fde68a;
  background: #fffdf5;
}
.phd2__pack-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700;
  color: #92400e; background: #fef3c7;
  border-radius: 999px; padding: 4px 11px;
  margin-bottom: 10px;
}
.phd2__pack-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.phd2__pack-name {
  font-size: 16px; font-weight: 800;
  color: var(--text-primary); line-height: 1.3; flex: 1;
}
.phd2__pack-price {
  font-size: 22px; font-weight: 800;
  color: var(--primary); white-space: nowrap;
}
.phd2__pack-desc {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5; margin: 0 0 10px;
}
.phd2__pack-meta {
  display: flex; gap: 12px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 14px;
}
.phd2__pack-cta {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .15s;
  font-family: inherit;
}
.phd2__pack-cta:hover { opacity: .88; }

/* Portfolio grid */
.phd2__portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phd2__portfolio-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}
.phd2__portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.phd2__portfolio-item:hover img { transform: scale(1.05); }

/* Reviews */
.phd2__rating-summary {
  text-align: center; padding: 16px 0 24px;
}
.phd2__rating-big {
  font-size: 52px; font-weight: 900;
  color: var(--primary); line-height: 1;
}
.phd2__stars-big { font-size: 22px; color: #f59e0b; margin: 6px 0 4px; }
.phd2__rating-count { font-size: 13px; color: var(--text-muted); }
.phd2__review {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.phd2__review:last-child { border-bottom: none; }
.phd2__review-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.phd2__review-author { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.phd2__review-date { font-size: 12px; color: var(--text-muted); }
.phd2__stars-gold { font-size: 13px; color: #f59e0b; display: block; margin-bottom: 5px; }
.phd2__review-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* Empty */
.phd2__empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }

/* CTA Contacter — barre fixe en bas */
.phd2__contact-bar {
  position: sticky;
  bottom: 0;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.phd2__contact-btn {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.phd2__contact-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Compat : keep old classes used elsewhere */
.stat-item { flex: 1; text-align: center; }
.stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.lang-badge { padding: 4px 10px; border-radius: var(--r-sm); background: var(--bg-secondary); font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.pack-card { border: 2px solid var(--border-light); border-radius: var(--r-xl); padding: var(--sp-lg); margin-bottom: var(--sp-md); cursor: pointer; transition: all .2s; }
.pack-card:hover, .pack-card.selected { border-color: var(--primary); background: var(--primary-light); }
.pack-header { display: flex; align-items: center; justify-content: space-between; }
.pack-name { display: flex; align-items: center; gap: var(--sp-sm); font-size: 15px; font-weight: 600; }
.pack-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.pack-description { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.pack-details { display: flex; gap: var(--sp-lg); margin-top: var(--sp-md); font-size: 11px; color: var(--text-muted); }
.pack-detail-item { display: flex; align-items: center; gap: 4px; }
.review-card { padding: var(--sp-lg); border-radius: var(--r-xl); border: 1px solid var(--border-light); margin-bottom: var(--sp-md); }
.review-header { display: flex; align-items: center; gap: var(--sp-md); margin-bottom: var(--sp-sm); }
.review-author { font-size: 13px; font-weight: 600; }

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

.review-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Sticky CTA */
.sticky-cta {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: var(--sp-md);
  z-index: 10;
}

.sticky-cta .btn {
  flex: 1;
}

/* ==================== BOOKING FLOW ==================== */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-xl);
}

.progress-step {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--border);
  transition: all 0.3s;
}

.progress-step.active {
  width: 28px;
  background: var(--primary);
  border-radius: 5px;
}

.progress-step.done {
  background: var(--success);
}

.progress-line {
  width: 24px;
  height: 2px;
  background: var(--border);
}

.progress-line.done {
  background: var(--success);
}

/* Mini photographer card */
.mini-photographer {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  margin: 0 var(--sp-xl) var(--sp-lg);
  border-radius: var(--r-xl);
  background: var(--bg-secondary);
}

.mini-photographer .info h4 {
  font-size: 14px;
  font-weight: 600;
}

.mini-photographer .info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Calendar */
.calendar {
  margin: 0 var(--sp-xl);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg);
  background: var(--bg-secondary);
}

.calendar-header h4 {
  font-size: 14px;
  font-weight: 600;
}

.calendar-nav {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: var(--sp-md);
}

.calendar-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--primary-light);
}

.calendar-day.selected {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.calendar-day.today {
  border: 2px solid var(--primary);
}

.calendar-day.disabled {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: default;
}

.calendar-day.empty {
  cursor: default;
}

/* Time slots */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-xl);
}

.time-slot {
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.time-slot:hover {
  border-color: var(--primary);
}

.time-slot.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Spots Explorer V2 (grille image) ─────────────────────── */
.spot-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 20px 80px;
}
.spot-v2__card {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.spot-v2__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  border-color: var(--primary);
}
.spot-v2__thumb {
  height: 110px;
  position: relative;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spot-v2__emoji { font-size: 36px; }
.spot-v2__badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.spot-v2__body {
  padding: 10px 11px 11px;
}
.spot-v2__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.spot-v2__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.spot-v2__rating { font-size: 11px; color: var(--text-secondary); }
.spot-v2__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.spot-v2__tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Carte "Se laisser surprendre" — Explorer */
.spot-v2__card--surprise {
  border-color: transparent;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1.5px solid #c4b5fd;
}
.spot-v2__card--surprise:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(99,102,241,.15);
}
.spot-v2__thumb--surprise {
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spot-v2__surprise-icon {
  font-size: 40px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}

/* ── Image thumbnail pour sélection booking ───────────────── */
.spot-select-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

/* Carte surprise — booking */
.spot-select-card--surprise {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #c4b5fd;
}
.spot-select-card--surprise.selected {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-color: var(--primary);
}
.spot-select-surprise-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spot-select-surprise-icon { font-size: 26px; }

/* Spots grisés quand mode surprise actif */
.spot-select-card--dimmed {
  opacity: 0.45;
  pointer-events: none;
}

/* Spot selection */
.spot-select-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  border-radius: var(--r-xl);
  border: 2px solid var(--border-light);
  margin-bottom: var(--sp-md);
  cursor: pointer;
  transition: all 0.2s;
}

.spot-select-card:hover {
  border-color: var(--primary);
}

.spot-select-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.spot-select-emoji {
  font-size: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.spot-select-info {
  flex: 1;
}

.spot-select-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.spot-select-info p {
  font-size: 11px;
  color: var(--text-secondary);
}

.spot-select-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.spot-select-tags .tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.spot-check {
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 12px;
  color: transparent;
}

.spot-select-card.selected .spot-check {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Booking summary */
.booking-summary {
  margin: 0 var(--sp-xl);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.summary-section {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--border-light);
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
}

.summary-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Price breakdown */
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.price-row.total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: var(--sp-md);
  margin-top: var(--sp-sm);
}

/* Booking confirmation */
.booking-confirmation {
  text-align: center;
  padding: 48px var(--sp-xl);
}

.confirmation-check {
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  background: var(--success);
  color: var(--white);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-xl);
  animation: scaleIn 0.4s ease;
}

.booking-confirmation h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.booking-confirmation .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2xl);
}

.confirmation-code {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 10px 20px;
  border-radius: var(--r-md);
  display: inline-block;
  margin-top: var(--sp-lg);
  letter-spacing: 1px;
}

/* ==================== BOOKING FLOW v2 (bkf__) ==================== */
.bkf__wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Header */
.bkf__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
}
.bkf__back {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background .15s;
}
.bkf__back:hover { background: var(--border-light); }
.bkf__header-title { font-size: 16px; font-weight: 700; }

/* Stepper */
.bkf__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 16px;
  gap: 0;
}
.bkf__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.bkf__step span {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 2px solid var(--border-light);
  transition: all .2s;
}
.bkf__step p {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
}
.bkf__step--active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.bkf__step--active p { color: var(--primary); font-weight: 700; }
.bkf__step--done span { background: var(--success); color: #fff; border-color: var(--success); }
.bkf__step--done p { color: var(--success); }
.bkf__step-line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  max-width: 52px;
  margin-bottom: 15px;
}
.bkf__step-line--done { background: var(--success); }

/* Photographer row */
.bkf__ph-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  margin: 0 20px 24px;
}
.bkf__ph-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.bkf__ph-name { font-size: 15px; font-weight: 700; }
.bkf__ph-rating { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Section label */
.bkf__section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 20px;
  margin-bottom: 12px;
}

/* Pack cards */
.bkf__packs {
  padding: 0 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bkf__pack {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.bkf__pack:hover { border-color: var(--primary); }
.bkf__pack--sel { border-color: var(--primary); background: var(--primary-light); }
.bkf__pack-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all .2s;
}
.bkf__pack--sel .bkf__pack-radio {
  background: var(--primary);
  border-color: var(--primary);
}
.bkf__pack-check { color: #fff; font-size: 11px; font-weight: 800; }
.bkf__pack-body { flex: 1; min-width: 0; }
.bkf__pack-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.bkf__pack-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.4; }
.bkf__pack-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.bkf__pack-meta span {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 100px;
}
.bkf__pack--sel .bkf__pack-meta span { background: rgba(0,0,0,.06); }
.bkf__pack-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Calendar */
.bkf__cal-wrap { padding: 0 20px; margin-bottom: 28px; }
.bkf__cal-card {
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  padding: 16px;
}

/* Time slots */
.bkf__times-wrap { padding: 0 20px; margin-bottom: 100px; }
.bkf__times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bkf__time-btn {
  padding: 10px 4px;
  border-radius: var(--r-lg);
  border: 2px solid var(--border-light);
  background: var(--bg-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  color: var(--text-primary);
  font-family: inherit;
}
.bkf__time-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.bkf__time-btn--sel { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.bkf__time-btn:disabled { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }

/* Footer CTA */
.bkf__footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}
.bkf__price-label { font-size: 11px; color: var(--text-muted); }
.bkf__price-val { font-size: 20px; font-weight: 800; }
.bkf__cta-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--r-xl);
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  font-family: inherit;
}
.bkf__cta-btn:hover { opacity: .9; }
.bkf__cta-btn--dis { opacity: 0.4 !important; pointer-events: none; }

/* Step 2 — Spot cards */
.bkf__spots {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 100px;
}
.bkf__spot-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.bkf__spot-card:hover { border-color: var(--primary); }
.bkf__spot-card--sel { border-color: var(--primary); background: var(--primary-light); }
.bkf__spot-card--dimmed { opacity: 0.38; pointer-events: none; }
.bkf__spot-card--surprise { border-style: dashed; }
.bkf__spot-thumb {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  flex-shrink: 0;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bkf__spot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bkf__spot-thumb--surprise {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}
.bkf__spot-card--surprise.bkf__spot-card--sel { border-color: #6366f1; background: #eef2ff; }
.bkf__spot-info { flex: 1; min-width: 0; }
.bkf__spot-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.bkf__spot-addr { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.bkf__spot-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.bkf__spot-tag {
  font-size: 10px;
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 100px;
  color: var(--text-secondary);
}
.bkf__spot-card--sel .bkf__spot-tag { background: rgba(0,0,0,.07); }
.bkf__spot-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: transparent;
  transition: all .2s;
}
.bkf__spot-card--sel .bkf__spot-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.bkf__spot-card--surprise.bkf__spot-card--sel .bkf__spot-check {
  background: #6366f1;
  border-color: #6366f1;
}

/* Step 3 — Summary */
.bkf__summary-card {
  margin: 0 20px 16px;
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.bkf__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.bkf__summary-row:last-child { border-bottom: none; }
.bkf__summary-key { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.bkf__summary-val { font-size: 14px; font-weight: 700; }
.bkf__summary-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.bkf__price-card {
  margin: 0 20px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.bkf__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.bkf__price-row:last-child { border-bottom: none; }
.bkf__price-row--total { font-weight: 700; font-size: 16px; background: var(--primary-light); }
.bkf__summary-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.bkf__policy { padding: 0 20px 24px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }

@media (min-width: 600px) {
  .bkf__times { grid-template-columns: repeat(5, 1fr); }
}

/* ==================== SPOT DETAIL ==================== */
.spot-hero {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.spot-hero.tour-eiffel { background: linear-gradient(135deg, #f6d365, #fda085); }
.spot-hero.montmartre { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.spot-hero.louvre { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.spot-hero.tuileries { background: linear-gradient(135deg, #96e6a1, #d4fc79); }
.spot-hero.pont-des-arts { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.spot-hero.notre-dame { background: linear-gradient(135deg, #cfd9df, #e2ebf0); }
.spot-hero.arc-de-triomphe { background: linear-gradient(135deg, #f093fb, #f5576c); }

.spot-detail-info {
  padding: var(--sp-xl);
}

.spot-detail-name {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.spot-detail-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.spot-detail-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: var(--sp-md);
}

.spot-stats {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  padding: var(--sp-lg);
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
}

.spot-stats .stat-item { flex: 1; text-align: center; }
.spot-stats .stat-value { font-size: 16px; font-weight: 700; }
.spot-stats .stat-label { font-size: 10px; color: var(--text-secondary); }

.spot-tags {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  flex-wrap: wrap;
}

.spot-best-times {
  margin-top: var(--sp-xl);
}

.best-time-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--warning-light);
  font-size: 12px;
  margin: 0 6px 6px 0;
}

/* ==================== RESERVATION DETAIL SCREEN ==================== */
.res-detail-body {
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.res-detail-photog {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0 4px;
}
.res-detail-photog__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.res-detail-photog__info h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.res-detail-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
}
.res-detail-section__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.res-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.res-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.res-detail-row__icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.res-detail-row__label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 1px;
}
.res-detail-row__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.res-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== RESERVATIONS SCREEN V2 ==================== */

.res-v2__header {
  padding: 20px 20px 0;
}
.res-v2__header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

/* Tabs */
.res-v2__tabs {
  display: flex;
  gap: 0;
  padding: 14px 20px 0;
  border-bottom: 1.5px solid var(--border);
}
.res-v2__tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: all .15s;
  font-family: inherit;
}
.res-v2__tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Compteur */
.res-v2__count {
  padding: 12px 20px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Liste */
.res-v2__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 20px 20px;
}

/* Card */
.res-v2__card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .12s;
}
.res-v2__card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(99,102,241,.10);
  transform: translateY(-1px);
}

/* Vignette */
.res-v2__thumb {
  width: 72px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background-size: cover;
  background-position: center;
}

/* Corps */
.res-v2__body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.res-v2__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
}
.res-v2__date {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.res-v2__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.res-v2__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-v2__meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.res-v2__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.res-v2__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--s-color, var(--text-secondary));
  background: color-mix(in srgb, var(--s-color, #888) 12%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
}
.res-v2__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-color, var(--text-secondary));
  flex-shrink: 0;
}
.res-v2__details {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* Empty */
.res-v2__empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}
.res-v2__empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; display: block; }
.res-v2__empty h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.res-v2__empty p { font-size: 13px; line-height: 1.5; }

/* CTA bas de page */
.res-v2__cta {
  text-align: center;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.res-v2__cta-icon { font-size: 32px; opacity: .5; }
.res-v2__cta-text { font-size: 14px; color: var(--text-secondary); margin: 0; }
.res-v2__cta-btn { padding: 13px 32px; border-radius: 999px; font-size: 15px; }

/* Fallback pour navigateurs sans color-mix */
@supports not (color: color-mix(in srgb, red 10%, transparent)) {
  .res-v2__status { background: rgba(0,0,0,.07); }
}

/* ==================== MESSAGES / CHAT ==================== */
.conversation-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-light);
}

.conversation-card:hover {
  background: var(--bg-secondary);
}

.conv-info {
  flex: 1;
  min-width: 0;
}

.conv-name {
  font-size: 14px;
  font-weight: 600;
}

.conv-last-msg {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.conv-meta {
  text-align: right;
}

.conv-time {
  font-size: 11px;
  color: var(--text-muted);
}

.conv-unread {
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-top: 4px;
}

/* Consent group (signup RGPD) */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}
.consent-item input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent-item a {
  color: var(--primary);
  text-decoration: underline;
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.2s ease;
  touch-action: none;
}
.lightbox.hidden { display: none; }
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-close:active { background: rgba(255, 255, 255, 0.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.lightbox-nav:hover,
.lightbox-nav:active { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav.hidden { display: none; }
.lightbox-caption {
  position: absolute;
  bottom: max(60px, calc(env(safe-area-inset-bottom) + 60px));
  left: 20px;
  right: 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.lightbox-caption:empty { display: none; }
.lightbox-counter {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 28px; }
}
/* Zoomable image trigger style */
.gallery-item img,
.portfolio-item img,
.feed-card-image img {
  cursor: zoom-in;
}

/* Chat view */
#chat-detail-screen.active #chat-detail-content {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--white);
}
body:has(#chat-detail-screen.active) #tab-bar {
  display: none !important;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 12px var(--sp-xl);
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  flex-shrink: 0;
  z-index: 10;
}

.chat-header-info h3 {
  font-size: 15px;
  font-weight: 600;
}

.chat-header-info .online {
  font-size: 11px;
  color: var(--success);
}

.chat-messages {
  flex: 1;
  padding: var(--sp-lg) var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-date-separator {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: var(--sp-sm) 0;
}

.message-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 13px;
  line-height: 1.5;
}

.message-bubble.received {
  background: var(--bg-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-bubble.sent {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.6;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px var(--sp-xl);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  outline: none;
  background: var(--bg-secondary);
}

.chat-input input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.2s;
}
.chat-send-btn:hover { background: var(--primary-dark, #3871c6); transform: scale(1.05); }
.chat-send-btn:active { transform: scale(0.95); }

/* === Improved chat UI === */
.conversations-list {
  display: flex;
  flex-direction: column;
}
.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  flex-shrink: 0;
  overflow: hidden;
}
.conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-full);
}
.avatar-initial {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.conv-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-sm);
}
.conv-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: 2px;
}
.conversation-card.has-unread .conv-name,
.conversation-card.has-unread .conv-last-msg {
  font-weight: 600;
  color: var(--text-primary);
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  cursor: pointer;
  flex: 1;
  padding: 4px 8px;
  border-radius: var(--r-md);
  transition: background 0.15s;
}
.chat-header-profile:hover {
  background: var(--bg-secondary);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  object-fit: cover;
}
.chat-header-subtitle {
  font-size: 11px;
  color: var(--primary);
  margin-top: 2px;
}

.message-row {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.row-sent { align-self: flex-end; align-items: flex-end; }
.row-received { align-self: flex-start; align-items: flex-start; }
.message-text { white-space: pre-wrap; word-break: break-word; }

.chat-day-separator {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: var(--sp-md) 0 var(--sp-sm);
  position: relative;
  text-transform: capitalize;
}
.chat-day-separator::before,
.chat-day-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border-light);
}
.chat-day-separator::before { left: 0; }
.chat-day-separator::after { right: 0; }

.chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--sp-xl);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.chat-empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-md);
  opacity: 0.6;
}

/* Quick replies */
.quick-replies {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-xl);
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  background: var(--white);
  scrollbar-width: none;
}
.quick-replies::-webkit-scrollbar { display: none; }

.quick-reply {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 11px;
  cursor: pointer;
  background: var(--white);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.quick-reply:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== PROFILE SCREEN ==================== */
/* ==================== PROFILE V2 ==================== */

/* Topbar */
.pv2__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
}
.pv2__topbar-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.pv2__settings-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background .15s;
}
.pv2__settings-btn:hover { background: var(--bg); }

/* Carte profil gradient */
.pv2__card {
  margin: 0 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f8ef7 0%, #38b2d8 60%, #3ecfb0 100%);
  padding: 20px 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(79,142,247,.30);
}
.pv2__card-deco {
  position: absolute;
  right: -24px; top: -24px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.pv2__card-deco::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -50px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

/* Avatar dans la carte */
.pv2__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  border: 2.5px solid rgba(255,255,255,.5);
}
.pv2__avatar-edit {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity .15s;
  border-radius: 50%;
}
.pv2__avatar:hover .pv2__avatar-edit { opacity: 1; }

.pv2__card-info { flex: 1; min-width: 0; }
.pv2__card-name {
  font-size: 18px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.pv2__card-since {
  font-size: 13px; color: rgba(255,255,255,.80); font-weight: 500;
}

/* Stats */
.pv2__stats {
  display: flex;
  align-items: center;
  margin: 14px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 0;
}
.pv2__stat {
  flex: 1;
  text-align: center;
}
.pv2__stat-val {
  font-size: 22px; font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.pv2__stat-lbl {
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.pv2__stat-sep {
  width: 1px; height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Sections */
.pv2__section { margin: 0 20px 18px; }
.pv2__section-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-left: 2px;
}
.pv2__section-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* Ligne de menu */
.pv2__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.pv2__row:last-child { border-bottom: none; }
.pv2__row:hover { background: var(--bg); }

.pv2__row-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.pv2__row-label {
  flex: 1;
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
}
.pv2__row-right {
  display: flex; align-items: center; gap: 7px;
}
.pv2__chevron {
  color: var(--text-muted); font-size: 16px; font-weight: 400;
}

/* Badges inline */
.pv2__xp-badge {
  font-size: 11.5px; font-weight: 700;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pv2__notif-badge {
  font-size: 11px; font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border-radius: 999px;
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.pv2__new-badge {
  font-size: 11px; font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
  padding: 3px 9px;
}

/* Déconnexion */
.pv2__logout-wrap {
  padding: 4px 20px 40px;
  text-align: center;
}
.pv2__logout-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--error, #ef4444);
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 999px;
  transition: background .15s;
  font-family: inherit;
}
.pv2__logout-btn:hover { background: #fef2f2; }

/* ==================== SETTINGS & SUBPAGES ==================== */

.settings-page {
  padding: 0 20px 40px;
}

.settings-section {
  margin-bottom: var(--sp-xl);
}

.settings-section h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  padding-top: var(--sp-lg);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.settings-item-info {
  flex: 1;
}

.settings-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-item-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-item.danger .settings-item-info h4 {
  color: var(--error);
}

.settings-version {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--sp-xl);
  padding: var(--sp-lg) 0;
}

/* Payment card items */
.payment-card-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-md);
}

.payment-card-icon {
  font-size: 24px;
}

.payment-card-info {
  flex: 1;
}

.payment-card-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.payment-card-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-icon-delete {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--error-light);
  color: var(--error);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-delete:hover {
  background: var(--error);
  color: var(--white);
}

/* Add card form */
.add-card-section {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-light);
}

.add-card-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
}

.card-form .form-group {
  margin-bottom: var(--sp-md);
}

.card-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.card-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.card-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: flex;
  gap: var(--sp-md);
}

.form-row .form-group {
  flex: 1;
}

/* Toggle switch */
.setting-toggle-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.setting-toggle-item:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
}

.setting-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-switch {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(18px);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 0 14px;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.support-contact {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: 4px 16px;
}

/* Language options */
.lang-options {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-md);
  overflow: hidden;
}

.lang-options.hidden {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-primary);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--primary-light);
}

.lang-option.active {
  font-weight: 700;
  color: var(--primary);
}

.lang-check {
  color: var(--primary);
  font-weight: 700;
}

/* Signup language selector */
.lang-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.lang-btn {
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.lang-btn.active {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

/* ==================== RESPONSIVE ==================== */

/* ---- DESKTOP (768px+) ---- */
@media (min-width: 768px) {
  body {
    background: var(--bg-secondary);
  }

  /* Sidebar visible on desktop */
  #sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border-light);
    padding: var(--sp-xl) 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 50;
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-lg) var(--sp-xl);
    margin-bottom: var(--sp-xl);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .sidebar-logo .logo-icon {
    font-size: 24px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 var(--sp-md);
    flex: 1;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: 12px var(--sp-lg);
    border-radius: var(--r-md);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-align: left;
    width: 100%;
  }

  .sidebar-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }

  .sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
  }

  .sidebar-item .sidebar-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
  }

  .sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-lg) var(--sp-xl);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    cursor: pointer;
  }

  .sidebar-user .sidebar-user-info {
    flex: 1;
    min-width: 0;
  }

  .sidebar-user .sidebar-user-info h4 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-user .sidebar-user-info p {
    font-size: 11px;
    color: var(--text-muted);
  }

  /* Hide mobile tab bar on desktop */
  #tab-bar {
    display: none !important;
  }

  /* Remove mobile padding for tab bar */
  #screen-container {
    padding-bottom: 0;
  }

  /* Main content area */
  #main-content {
    background: var(--bg);
    max-height: 100vh;
    overflow-y: auto;
  }

  /* Content wrapper for centering */
  .screen.active {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--sp-xl);
  }

  #welcome-screen.active,
  #login-screen.active,
  #signup-screen.active,
  #forgot-password-screen.active,
  #reset-password-screen.active {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Home grid layout */
  .home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .home-grid-full {
    grid-column: 1 / -1;
  }

  /* Photographer list as grid */
  .photographer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-md);
  }

  .photographer-list .photographer-card {
    margin-bottom: 0;
  }

  /* Spots horizontal scroll → grid on desktop */
  .h-scroll.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-md);
    overflow-x: visible;
  }

  .h-scroll.desktop-grid .spot-card {
    min-width: unset;
  }

  /* Spot select grid */
  .spots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
  }

  /* Booking flow centered */
  #booking-step1-screen.active,
  #booking-step2-screen.active,
  #booking-step3-screen.active,
  #booking-confirmation-screen.active {
    max-width: 600px;
  }

  /* Chat layout */
  #chat-detail-screen.active {
    max-width: 700px;
  }
  #chat-detail-content {
    max-width: 700px;
    margin: 0 auto;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
  }

  /* Photographer detail */
  #photographer-detail-screen.active {
    max-width: 700px;
  }
  .phd2__hero { margin-left: 24px; margin-right: 24px; }

  .ph-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  /* Profile */
  #profile-screen.active {
    max-width: 600px;
  }

  /* Reservation cards grid */
  .reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--sp-md);
  }

  .reservations-grid .reservation-card {
    margin: 0;
  }

  /* Featured card wider on desktop */
  .featured-card {
    margin: 0;
  }

  /* Explorer */
  .explorer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-md);
    padding: 0;
  }

  .explorer-content-grid .spot-select-card {
    margin-bottom: 0;
  }

  /* Sticky CTA full-width within container */
  .sticky-cta {
    position: sticky;
    border-radius: var(--r-xl);
    margin: var(--sp-lg) 0 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  /* Search bar wider */
  .search-bar {
    max-width: 500px;
  }

  /* Cards hover effect */
  .photographer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .spot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }

  /* Section better spacing */
  .section {
    padding: var(--sp-2xl) 0;
  }

  /* CTA banner */
  .cta-banner {
    margin: var(--sp-lg) 0;
  }

  .next-reservation-card {
    margin: var(--sp-lg) 0;
  }

  /* Messages layout */
  .conversations-list {
    max-width: 600px;
  }

  /* Welcome screen stays centered fullscreen */
  #welcome-screen {
    min-height: 100vh;
  }
}

/* ---- LARGE DESKTOP (1200px+) ---- */
@media (min-width: 1200px) {
  :root {
    --sidebar-width: 280px;
  }

  .screen.active {
    max-width: 1000px;
  }

  .home-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .photographer-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* ---- MOBILE (<768px) ---- */
@media (max-width: 767px) {
  #sidebar {
    display: none !important;
  }

  #tab-bar {
    max-width: 100%;
  }

  .screen.active {
    max-width: 100%;
  }

  .home-grid {
    display: block;
  }

  .home-grid-full {
    display: block;
  }

  .spots-grid {
    display: block;
  }

  .reservations-grid {
    display: block;
  }

  .explorer-content-grid {
    display: block;
  }
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-md { margin-bottom: var(--sp-md); }
.px-xl { padding-left: var(--sp-xl); padding-right: var(--sp-xl); }

/* ========== PROPOSAL CARDS (CLIENT CHAT) ========== */
.message-bubble.proposal-bubble { padding: 0 !important; background: transparent !important; max-width: 100% !important; }
.proposal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.row-sent .proposal-card { border-color: #c7dafc; background: #f1f7ff; }
.proposal-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--text-secondary);
  margin-bottom: 6px; text-transform: uppercase;
  font-weight: 600; letter-spacing: 0.3px;
}
.proposal-icon { font-size: 14px; }
.proposal-title { font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 4px; }
.proposal-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.4; }
.proposal-details {
  display: flex; flex-direction: column; gap: 4px;
  margin: 8px 0; padding: 8px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.proposal-row { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.proposal-row span { font-size: 14px; }
.proposal-price { font-size: 18px; font-weight: 700; color: var(--primary); text-align: right; margin-top: 6px; }
.proposal-status { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; text-align: center; }
.proposal-status.pending { background: #FFF4E5; color: #B76E00; }
.proposal-status.accepted { background: #E7F7EC; color: #1A7F37; }
.proposal-status.declined { background: #FDEAEA; color: #C0362C; }
.proposal-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-proposal-accept, .btn-proposal-decline {
  flex: 1; padding: 8px 12px;
  border-radius: 10px; border: none;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.btn-proposal-accept { background: var(--primary); color: var(--white); }
.btn-proposal-accept:hover { background: #3871c6; }
.btn-proposal-decline { background: var(--bg-secondary); color: var(--text-primary); }
.btn-proposal-decline:hover { background: var(--border); }
.btn-proposal-accept:active, .btn-proposal-decline:active { transform: scale(0.97); }
.message-system {
  text-align: center; font-size: 11px;
  color: var(--text-muted); padding: 6px 12px;
  margin: 8px auto; background: var(--bg-secondary);
  border-radius: 12px; display: inline-block; align-self: center;
}
.message-system.accepted { color: #1A7F37; background: #E7F7EC; }
.message-system.declined { color: #C0362C; background: #FDEAEA; }

/* ========== PORTFOLIO GRID (PHOTOGRAPHER DETAIL) ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: var(--sp-sm);
}
.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-secondary);
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.portfolio-item:hover img { transform: scale(1.05); }

/* Gallery section link on photographer detail */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-sm);
}
.section-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}
.section-clickable { cursor: pointer; }
.section-clickable:hover .section-link { text-decoration: underline; }

/* Full gallery screen */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.15s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Clickable avatar with edit badge (profile) */
.avatar-clickable { position: relative; cursor: pointer; overflow: visible; }
.avatar-clickable img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.avatar-edit-badge {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.avatar-clickable:hover .avatar-edit-badge { transform: scale(1.1); }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.modal-content {
  background: var(--card-bg, #fff); border-radius: 16px;
  padding: 28px 24px; max-width: 360px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==================== LEGAL PAGES ==================== */
.legal-page {
  padding: 16px 20px;
  line-height: 1.7;
  color: var(--text-primary);
}
.legal-page h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.legal-page h2:first-child {
  margin-top: 8px;
}
.legal-page p {
  font-size: 14px;
  margin: 6px 0;
  color: var(--text-secondary);
}
.legal-page ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-page li {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}
.legal-page strong {
  color: var(--text-primary);
}
.legal-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.legal-footer p {
  font-size: 12px;
  color: var(--text-muted);
}
.legal-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

/* ==================== GALERIE PHOTOS PAR LIEU ==================== */
.spot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}
.spot-gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: transform 0.15s ease;
}
.spot-gallery__item:active {
  transform: scale(0.97);
}
.spot-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spot-gallery__loading,
.spot-gallery__empty {
  grid-column: 1 / -1;
  padding: var(--sp-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== VUE AGRANDIE (LIGHTBOX) ==================== */
.spot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  animation: spotLightboxIn 0.18s ease;
}
@keyframes spotLightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.spot-lightbox__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.spot-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.spot-lightbox__image-wrap {
  width: 100%;
  background: #000;
}
.spot-lightbox__image-wrap img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}
.spot-lightbox__caption {
  padding: var(--sp-md) var(--sp-lg);
  color: var(--text-secondary);
  font-size: 14px;
}
.spot-lightbox__photographer {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--border-light);
  cursor: pointer;
}
.spot-lightbox__photographer:active {
  background: var(--bg-secondary);
}
.spot-lightbox__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.spot-lightbox__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spot-lightbox__ph-name {
  font-weight: 600;
  color: var(--text-primary);
}
.spot-lightbox__verified {
  color: var(--primary);
  font-size: 13px;
}
.spot-lightbox__ph-sub {
  font-size: 13px;
  color: var(--primary);
  margin-top: 2px;
}
