/* ============================================================
   ESIKA IMMOBILIER — immo.css
   Tokens + composants (complète Tailwind CDN). Mobile-first.
   ============================================================ */

:root {
  --primary: #16169b;
  --primary-light: #2a2ab8;
  --primary-dark: #0e0e6e;
  --primary-50: #edf3ff;
  --primary-100: #d4dcf5;
  --accent: #c41212;
  --accent-light: #e01e1e;
  --accent-dark: #9a0e0e;
  --accent-50: #fef2f2;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef1f6;
  --text: #202124;
  --text-2: #5b6470;
  --text-3: #8b95a3;
  --border: #e6e8ed;
  --border-light: #f0f1f5;
  --border-dark: #d1d5db;
  --success: #15803d;
  --success-bg: #ecfdf5;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --shadow-xs: 0 1px 2px rgba(16, 16, 80, 0.04);
  --shadow-sm: 0 2px 8px rgba(16, 16, 80, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 16, 80, 0.08);
  --shadow-lg: 0 8px 32px rgba(16, 16, 80, 0.1);
  --shadow-xl: 0 16px 48px rgba(16, 16, 80, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --t-fast: 150ms ease;
  --t: 250ms ease;
  --t-slow: 400ms ease;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 64px;
  --z-header: 100;
  --z-sheet: 200;
  --z-modal: 300;
  --z-toast: 400;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-2);
  line-height: 1.55;
  min-height: 100dvh;
}
h1,
h2,
h3,
h4,
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container-x {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .container-x {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container-x {
    padding-inline: 2rem;
  }
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-light .brand-logo {
  height: 44px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 22, 155, 0.25);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.brand-light .brand-name {
  color: #fff;
}
.brand-light .brand-sub {
  color: rgba(255, 255, 255, 0.6);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width var(--t-fast);
}
.nav-link:hover {
  background: var(--bg-3);
  color: var(--primary);
  transform: translateY(-1px);
}
.nav-link:hover::after {
  width: 60%;
}
.nav-link.is-active {
  color: var(--primary);
  background: var(--primary-50);
  font-weight: 700;
}
.nav-link.is-active::after {
  width: 60%;
}
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}
.nav-burger {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.mobile-menu {
  border-top: 1px solid var(--border);
  background: #fff;
  animation: slideDown var(--t) both;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--t-fast);
}
.mobile-link:hover,
.mobile-link.is-active {
  background: var(--bg-3);
  color: var(--text);
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(16, 16, 80, 0.35);
  z-index: calc(var(--z-header) - 1);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.925rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 9px;
}
.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 22, 155, 0.22);
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 18px rgba(22, 22, 155, 0.3);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 18, 18, 0.22);
}
.btn-accent:hover {
  background: var(--accent-light);
}
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
}
.btn-soft {
  background: var(--primary-50);
  color: var(--primary);
}
.btn-soft:hover {
  background: var(--primary-100);
}
.btn-danger-soft {
  background: var(--accent-50);
  color: var(--accent);
}
.btn-danger-soft:hover {
  background: #fee0e0;
}
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
}
.btn .spinner {
  display: none;
}
.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading .spinner {
  display: inline-block;
}
.btn.is-loading .btn-label {
  opacity: 0.6;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-label .req {
  color: var(--accent);
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-3);
}
.form-error {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 22, 155, 0.12);
}
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--accent);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-3);
}
.form-input:disabled,
.form-select:disabled {
  background: var(--bg-3);
  color: var(--text-3);
  cursor: not-allowed;
}
.form-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-input {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.input-group .form-select,
.input-group .input-addon {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 0;
  width: auto;
  min-width: 90px;
}
.input-addon {
  display: grid;
  place-items: center;
  padding-inline: 0.9rem;
  border: 1px solid var(--border-dark);
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.check,
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.check span {
  font-size: 0.9rem;
}

.seg {
  display: inline-flex;
  background: var(--bg-3);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg label {
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    box-shadow var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.seg input:checked + label {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.seg.seg-block {
  display: flex;
}
.seg.seg-block label {
  flex: 1;
  justify-content: center;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chip-group input:checked + .chip {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ------------------------------------------------------------
   Cards & surfaces
   ------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-pad {
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .card-pad {
    padding: 1.5rem;
  }
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.badge-primary {
  background: var(--primary);
  color: #fff;
}
.badge-accent {
  background: var(--accent);
  color: #fff;
}
.badge-soft {
  background: var(--primary-50);
  color: var(--primary);
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge-neutral {
  background: var(--bg-3);
  color: var(--text-2);
}
.badge-dark {
  background: rgba(16, 16, 40, 0.75);
  color: #fff;
  backdrop-filter: blur(6px);
}

.alert {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: 1px solid;
}
.alert-error {
  background: var(--accent-50);
  border-color: #fecaca;
  color: #991b1b;
}
.alert-success {
  background: var(--success-bg);
  border-color: #a7f3d0;
  color: #065f46;
}
.alert-info {
  background: var(--primary-50);
  border-color: var(--primary-100);
  color: var(--primary-dark);
}

/* ------------------------------------------------------------
   Hero / search bar
   ------------------------------------------------------------ */
.hero {
  background:
    linear-gradient(
      160deg,
      rgba(11, 11, 58, 0.82),
      rgba(22, 22, 155, 0.72) 60%,
      rgba(29, 29, 176, 0.65)
    ),
    url("../img/bg.webp") center / cover no-repeat;
  color: #fff;
}
.hero-title {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
}
.hero-title em {
  font-style: normal;
  color: #ffd6d6;
}

/* ------------------------------------------------------------
   Filters bar
   ------------------------------------------------------------ */
.filters-bar {
  position: sticky;
  top: var(--header-h);
  z-index: calc(var(--z-header) - 2);
  background: rgba(247, 248, 250, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.filters-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: 0.75rem;
}
.filters-scroll::-webkit-scrollbar {
  display: none;
}
.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border-dark);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.filter-panel {
  display: none;
}
@media (min-width: 1024px) {
  .filter-panel {
    display: block;
  }
  .filter-panel .form-select,
  .filter-panel .form-input {
    padding-block: 0.6rem;
    font-size: 0.9rem;
  }
}

/* Bottom sheet (mobile) */
.sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  display: none;
}
.sheet.open {
  display: block;
}
.sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 40, 0.5);
  animation: fadeIn var(--t) both;
}
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92dvh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  animation: sheetUp var(--t-slow) cubic-bezier(0.2, 0.8, 0.2, 1) both;
  box-shadow: var(--shadow-xl);
}
.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--border-dark);
  margin: 0.6rem auto 0;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.sheet-body {
  overflow-y: auto;
  padding: 1.25rem;
  flex: 1;
}
.sheet-foot {
  padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  background: #fff;
}
@media (min-width: 1024px) {
  .sheet-panel {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 640px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    animation: popIn var(--t) both;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   Listing card (1 grande + 3 petites)
   ------------------------------------------------------------ */
.listing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.listing-grid.is-list {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .listing-grid.is-list .listing-card {
    display: grid;
    grid-template-columns: 420px 1fr;
  }
}

.listing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
  display: flex;
  flex-direction: column;
  animation: cardIn var(--t-slow) both;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lc-media {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3px;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.lc-media-main,
.lc-media-side {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.lc-media-main img,
.lc-media-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform var(--t-slow),
    opacity var(--t-slow);
  opacity: 0;
}
.lc-media img.is-loaded {
  opacity: 1;
}
.listing-card:hover .lc-media-main img {
  transform: scale(1.04);
}
.lc-media-col {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}
.lc-media-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 16, 40, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.lc-flags {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.lc-count {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  z-index: 2;
}

.lc-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.lc-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.lc-price small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--font-body);
}
.lc-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.lc-type .sep {
  color: var(--border-dark);
}
.lc-title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-loc {
  font-size: 0.85rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.lc-foot {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-3);
  border-top: 1px dashed var(--border);
}

/* Skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}
.sk-line {
  height: 12px;
  border-radius: 6px;
}
.sk-card .lc-media {
  aspect-ratio: 4 / 3;
}
.sk-card .lc-body {
  gap: 0.6rem;
}

/* Empty state */
.empty {
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

/* ------------------------------------------------------------
   Detail page
   ------------------------------------------------------------ */
.gallery {
  display: grid;
  gap: 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
}
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.gallery-thumb:hover img {
  transform: scale(1.05);
}
.gallery-thumb .more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 16, 40, 0.55);
  color: #fff;
  font-weight: 700;
}
@media (min-width: 768px) {
  .gallery {
    grid-template-columns: 2fr 1fr;
    aspect-ratio: 3 / 1.55;
  }
  .gallery-main {
    aspect-ratio: auto;
    height: 100%;
  }
  .gallery-thumbs {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 22, 155, 0.3) transparent;
  }
  .gallery-thumbs::-webkit-scrollbar {
    width: 5px;
  }
  .gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(22, 22, 155, 0.25);
    border-radius: 3px;
  }
  .gallery-thumb {
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
  }
  .gallery-thumb:nth-child(n + 4) {
    display: block;
  }
}
.gallery-fab {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .spec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.spec {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.spec-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.spec-val {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.spec-lbl {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  font-size: 0.92rem;
}
.kv > div {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
}
.kv > div:nth-child(odd) {
  color: var(--text-2);
}
.kv > div:nth-child(even) {
  font-weight: 600;
  text-align: right;
}
.kv > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}
.amenity.is-on {
  background: var(--success-bg);
  color: #065f46;
}
.amenity.is-off {
  color: var(--text-3);
  text-decoration: line-through;
  opacity: 0.7;
}

.contact-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.owner-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.6rem;
}
@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}
.has-mobile-cta {
  padding-bottom: 84px;
}
@media (min-width: 1024px) {
  .has-mobile-cta {
    padding-bottom: 0;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(8, 8, 24, 0.96);
  display: none;
  flex-direction: column;
  animation: fadeIn var(--t) both;
}
.lightbox.open {
  display: flex;
}
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  color: #fff;
}
.lightbox-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 3.5rem;
  position: relative;
  min-height: 0;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  animation: fadeIn var(--t) both;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-nav.prev {
  left: 0.5rem;
}
.lightbox-nav.next {
  right: 0.5rem;
}
.lightbox-strip {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.lightbox-strip::-webkit-scrollbar {
  display: none;
}
.lightbox-strip img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.45;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.lightbox-strip img.is-active {
  opacity: 1;
  border-color: #fff;
}
@media (max-width: 640px) {
  .lightbox-stage {
    padding: 0 0.5rem;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }
}

/* ------------------------------------------------------------
   Auth / compte
   ------------------------------------------------------------ */
.auth-wrap {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 3rem;
}
.auth-card {
  width: 100%;
  max-width: 460px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.steps .step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.steps .step b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 0.72rem;
}
.steps .step.is-active {
  color: var(--primary);
  font-weight: 600;
}
.steps .step.is-active b {
  background: var(--primary);
  color: #fff;
}
.steps .sep {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.compte-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.compte-tabs::-webkit-scrollbar {
  display: none;
}
.compte-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--t-fast);
  margin-bottom: -1px;
}
.compte-tab:hover {
  color: var(--text);
}
.compte-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.row-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  padding: 0.9rem;
  align-items: start;
}
@media (min-width: 640px) {
  .row-card {
    grid-template-columns: 140px 1fr auto;
    align-items: center;
  }
}
.row-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-3);
}
.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-50);
  color: var(--primary);
  flex-shrink: 0;
}
.stat-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 2px;
}

/* Photo upload */
.dropzone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  background: var(--bg-2);
  transition: all var(--t-fast);
  cursor: pointer;
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--primary);
  background: var(--primary-50);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-3);
  border: 2px solid var(--border);
  animation: cardIn var(--t) both;
}
.photo-item.is-cover {
  border-color: var(--primary);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-item .rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition:
    background var(--t-fast),
    transform var(--t-fast);
}
.photo-item .rm:hover {
  background: var(--accent);
  transform: scale(1.1);
}
.photo-item .replace-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition:
    background var(--t-fast),
    transform var(--t-fast);
}
.photo-item .replace-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}
.photo-item.is-replacing {
  pointer-events: none;
}
.photo-item.is-replacing::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.5);
}
.photo-item .cover {
  position: absolute;
  bottom: 4px;
  left: 4px;
}
.photo-item .busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------
   Toasts
   ------------------------------------------------------------ */
.toast-root {
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  right: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
@media (min-width: 640px) {
  .toast-root {
    left: auto;
    width: 380px;
  }
}
.toast {
  pointer-events: auto;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: toastIn var(--t) both;
}
.toast.out {
  animation: toastOut var(--t) both;
}
.toast-success {
  border-left: 4px solid var(--success);
}
.toast-error {
  border-left: 4px solid var(--accent);
}
.toast-info {
  border-left: 4px solid var(--primary);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: #0b0b3a;
  color: #fff;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -60%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(42, 42, 184, 0.35),
    transparent 70%
  );
  pointer-events: none;
  animation: footerGlow 8s ease-in-out infinite alternate;
}
.footer-glow::after {
  content: "";
  position: absolute;
  top: 0;
  right: -80%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(196, 18, 18, 0.18),
    transparent 70%
  );
}
@keyframes footerGlow {
  from {
    opacity: 0.6;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(20px);
  }
}
.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  transition:
    color var(--t-fast),
    transform var(--t-fast);
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition:
    background var(--t),
    color var(--t),
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}
.footer-social-link:hover {
  background: color-mix(in srgb, var(--sc) 20%, transparent);
  border-color: color-mix(in srgb, var(--sc) 60%, transparent);
  color: var(--sc);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--sc) 30%, transparent);
}
.footer-social-link:active {
  transform: translateY(-1px);
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition:
    color var(--t-fast),
    transform var(--t-fast);
}
.footer-contact svg {
  flex-shrink: 0;
  color: var(--cc);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cc) 40%, transparent));
  transition: filter var(--t);
}
.footer-contact:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-contact:hover svg {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--cc) 60%, transparent));
}
.footer-esika-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}
.footer-esika-link svg {
  transition: transform var(--t);
}
.footer-esika-link:hover {
  background: rgba(42, 42, 184, 0.35);
  border-color: rgba(42, 42, 184, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 42, 184, 0.3);
}
.footer-esika-link:hover svg {
  transform: translate(2px, -2px);
}
.footer-esika-inline {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  transition: color var(--t-fast);
}
.footer-esika-inline:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.fade-up {
  animation: cardIn var(--t-slow) both;
}
.divider {
  height: 1px;
  background: var(--border);
}
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prose-desc {
  white-space: pre-line;
  line-height: 1.7;
  color: var(--text-2);
  font-size: 0.95rem;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
