/* ============================================================
   ONLY LUXURY — CSS principal
   Architecture : variables → reset → layout → composants
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --ol-black:       #0a0a0a;
    --ol-white:       #ffffff;
    --ol-gold:        #c9a84c;
    --ol-gold-light:  #e8d5a3;
    --ol-green:       #2e7d32;
    --ol-grey-100:    #f5f5f5;
    --ol-grey-200:    #eeeeee;
    --ol-grey-400:    #bdbdbd;
    --ol-grey-700:    #616161;
    --ol-grey-900:    #212121;

    --ol-font:        'Inter', system-ui, -apple-system, sans-serif;
    --ol-font-serif:  Georgia, 'Times New Roman', serif;

    --ol-radius:      4px;
    --ol-radius-lg:   8px;
    --ol-shadow:      0 2px 8px rgba(0,0,0,.08);
    --ol-shadow-md:   0 4px 16px rgba(0,0,0,.12);

    --ol-header-h:    64px;
    --ol-container:   1280px;
    --ol-gap:         24px;
}

/* ── Reset minimal ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ol-font); color: var(--ol-black); background: var(--ol-white); line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Screen reader only */
.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── Layout ───────────────────────────────────────────────── */
.ol-container {
    max-width: var(--ol-container);
    margin-inline: auto;
    padding-inline: var(--ol-gap);
}

/* ── Header ───────────────────────────────────────────────── */
.ol-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--ol-white);
    border-bottom: 1px solid var(--ol-grey-200);
}

.ol-header__top { border-bottom: 1px solid var(--ol-grey-200); }
.ol-header__inner {
    max-width: var(--ol-container);
    margin-inline: auto;
    padding-inline: var(--ol-gap);
    height: var(--ol-header-h);
    display: flex; align-items: center; gap: 16px;
}

/* Logo */
.ol-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: .12em; color: var(--ol-black); }
.ol-logo__short { display: none; }
@media (max-width: 600px) {
    .ol-logo__full { display: none; }
    .ol-logo__short { display: inline; }
}

/* Champ recherche OSM */
.ol-header__search { flex: 1; min-width: 0; position: relative; }
.ol-osm-search__input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ol-grey-400);
    border-radius: var(--ol-radius);
    background: var(--ol-grey-100);
    font-size: .875rem;
    transition: border-color .15s;
}
.ol-osm-search__input:focus { outline: none; border-color: var(--ol-gold); background: var(--ol-white); }
.ol-osm-search__suggestions {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--ol-white); border: 1px solid var(--ol-grey-200);
    border-radius: var(--ol-radius); box-shadow: var(--ol-shadow-md);
    z-index: 200; max-height: 320px; overflow-y: auto;
}

/* Boutons header */
.ol-header__actions { display: flex; align-items: center; gap: 8px; }
.ol-btn--deposit {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--ol-green); color: var(--ol-white);
    border-radius: var(--ol-radius); font-size: .875rem; font-weight: 600;
    transition: opacity .15s;
}
.ol-btn--deposit:hover { opacity: .88; }
.ol-btn--deposit .ol-btn__icon { font-size: 1.2rem; line-height: 1; }
@media (max-width: 480px) { .ol-btn--deposit .ol-btn__label { display: none; } }

.ol-btn--account {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ol-grey-200);
    transition: border-color .15s;
}
.ol-btn--account:hover { border-color: var(--ol-grey-400); }

/* Menu pays */
.ol-header__countries { overflow-x: auto; scrollbar-width: none; }
.ol-header__countries::-webkit-scrollbar { display: none; }
.ol-countries-menu {
    display: flex; gap: 0;
    max-width: var(--ol-container);
    margin-inline: auto;
    padding-inline: var(--ol-gap);
}
.ol-countries-menu__item {
    padding: 10px 16px;
    font-size: .8125rem; font-weight: 500; white-space: nowrap;
    color: var(--ol-grey-700);
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.ol-countries-menu__item:hover,
.ol-countries-menu__item.is-active { color: var(--ol-black); border-bottom-color: var(--ol-gold); }

/* ── Filtre bar ───────────────────────────────────────────── */
.ol-filter-bar {
    background: var(--ol-white);
    border-bottom: 1px solid var(--ol-grey-200);
    overflow: visible;
}
.ol-filter-bar::-webkit-scrollbar { display: none; }
.ol-filter-bar__form {
    display: flex; align-items: center; gap: 4px;
    max-width: var(--ol-container);
    margin-inline: auto;
    padding: 8px var(--ol-gap);
}
.ol-filter-bar--homepage { background: transparent; border-bottom: none; overflow: visible; }
.ol-filter-bar--homepage .ol-filter-bar__form { padding-block: 16px; }

.ol-filter { position: relative; }
.ol-filter__trigger {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--ol-grey-200); border-radius: 20px;
    font-size: .8125rem; font-weight: 500; white-space: nowrap;
    background: var(--ol-white);
    transition: border-color .15s, box-shadow .15s;
}
.ol-filter__trigger:hover { border-color: var(--ol-grey-400); }
.ol-filter__trigger[aria-expanded="true"] { border-color: var(--ol-black); box-shadow: 0 0 0 1px var(--ol-black); }
.ol-filter__chevron { transition: transform .15s; }
.ol-filter__trigger[aria-expanded="true"] .ol-filter__chevron { transform: rotate(180deg); }

.ol-filter__dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 150;
    min-width: 260px;
    background: var(--ol-white); border: 1px solid var(--ol-grey-200);
    border-radius: var(--ol-radius-lg); box-shadow: var(--ol-shadow-md);
    padding: 16px;
}
.ol-filter__group + .ol-filter__group { margin-top: 12px; }
.ol-filter__group-label { display: block; font-size: .75rem; font-weight: 600; color: var(--ol-grey-700); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.ol-filter__options { display: flex; flex-wrap: wrap; gap: 6px; }
.ol-filter__option { display: flex; align-items: center; gap: 6px; font-size: .875rem; cursor: pointer; }
.ol-filter__option input { accent-color: var(--ol-black); }

.ol-filter__range { display: flex; flex-direction: column; gap: 10px; }
.ol-filter__range label { display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; color: var(--ol-grey-700); }
.ol-filter__input {
    padding: 6px 10px; border: 1px solid var(--ol-grey-400); border-radius: var(--ol-radius); width: 100%;
}
.ol-filter__input:focus { outline: none; border-color: var(--ol-black); }

.ol-filter__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.ol-filter__reset-group { font-size: .8125rem; color: var(--ol-grey-700); text-decoration: underline; background: none; border: none; cursor: pointer; }

.ol-filter-bar__search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ol-black); color: var(--ol-white);
    margin-left: 4px; flex-shrink: 0;
    transition: opacity .15s;
}
.ol-filter-bar__search-btn:hover { opacity: .85; }

/* ── Boutons généraux ─────────────────────────────────────── */
.ol-btn--primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 20px;
    background: var(--ol-black); color: var(--ol-white);
    border-radius: var(--ol-radius); font-size: .875rem; font-weight: 600;
    transition: opacity .15s;
}
.ol-btn--primary:hover { opacity: .85; }
.ol-btn--outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: var(--ol-radius); font-size: .875rem;
    transition: background .15s;
}
.ol-btn--outline:hover { background: var(--ol-grey-100); }
.ol-btn--search { /* see .ol-filter-bar__search-btn */ }

/* ── Section title ────────────────────────────────────────── */
.ol-section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--ol-gap); }

/* ── Listing grid ─────────────────────────────────────────── */
.ol-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--ol-gap);
}

/* ── Listing card ─────────────────────────────────────────── */
.ol-card { border-radius: var(--ol-radius-lg); overflow: hidden; box-shadow: var(--ol-shadow); transition: box-shadow .2s; background: var(--ol-white); }
.ol-card:hover { box-shadow: var(--ol-shadow-md); }
.ol-card--featured { box-shadow: 0 0 0 2px var(--ol-gold), var(--ol-shadow); }
.ol-card__image-link { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.ol-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ol-card:hover .ol-card__image { transform: scale(1.03); }
.ol-card__image--placeholder { width: 100%; height: 100%; background: var(--ol-grey-200); }
.ol-card__badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 8px; border-radius: 2px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.ol-card__badge--diamond { background: #1a237e; color: var(--ol-white); }
.ol-card__badge--gold { background: var(--ol-gold); color: var(--ol-white); }
.ol-card__badge--offmarket { background: #1a1a1a; color: var(--ol-white); }
.ol-card__price--offmarket { color: var(--ol-grey-700); font-weight: 600; font-style: italic; }
.ol-card__body { padding: 14px; }
.ol-card__price { font-size: 1.1rem; font-weight: 700; color: var(--ol-black); margin-bottom: 4px; }
.ol-card__title { font-size: .9375rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.ol-card__title a:hover { color: var(--ol-gold); }
.ol-card__location { display: flex; align-items: center; gap: 4px; font-size: .8125rem; color: var(--ol-grey-700); margin-bottom: 8px; }
.ol-card__specs { display: flex; gap: 12px; }
.ol-card__spec { display: flex; align-items: center; gap: 4px; font-size: .8125rem; color: var(--ol-grey-700); }

/* ── Hero slider ──────────────────────────────────────────── */
.ol-hero-slider { position: relative; overflow: hidden; aspect-ratio: 16/7; background: var(--ol-grey-900); }
.ol-hero-slider__track { display: flex; height: 100%; transition: transform .5s ease; }
.ol-hero-slide { position: relative; flex-shrink: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.ol-hero-slide--active { opacity: 1; }
.ol-hero-slide__image { width: 100%; height: 100%; object-fit: cover; }
.ol-hero-slide__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
    display: flex; align-items: flex-end;
}
.ol-hero-slide__content { padding: 32px; color: var(--ol-white); }
.ol-hero-slide__price { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.ol-hero-slide__title { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.ol-hero-slide__title a { color: var(--ol-white); }
.ol-hero-slide__title a:hover { color: var(--ol-gold-light); }
.ol-hero-slider__nav { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.ol-hero-slider__prev, .ol-hero-slider__next {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.2); color: var(--ol-white); display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.ol-hero-slider__prev:hover, .ol-hero-slider__next:hover { background: rgba(255,255,255,.4); }
.ol-hero-slider__dots { display: flex; gap: 6px; }
.ol-hero-slider__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .15s; }
.ol-hero-slider__dot--active { background: var(--ol-white); }

/* ── Archive ──────────────────────────────────────────────── */
.ol-archive-layout { display: grid; gap: var(--ol-gap); padding-block: var(--ol-gap); }
.ol-archive-header { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: var(--ol-gap); }
.ol-archive-title { font-size: 1.75rem; font-weight: 700; }
.ol-archive-meta { font-size: .875rem; color: var(--ol-grey-700); }
.ol-sort-select { padding: 6px 10px; border: 1px solid var(--ol-grey-200); border-radius: var(--ol-radius); font-size: .875rem; }
.ol-archive-empty { padding: 48px 0; text-align: center; color: var(--ol-grey-700); font-size: 1rem; }
.ol-pagination { margin-top: var(--ol-gap); }
.ol-pagination ul { display: flex; gap: 6px; justify-content: center; }
.ol-pagination .page-numbers {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--ol-radius); border: 1px solid var(--ol-grey-200); font-size: .875rem;
}
.ol-pagination .current { background: var(--ol-black); color: var(--ol-white); border-color: var(--ol-black); }

/* ── Single listing ───────────────────────────────────────── */
.ol-listing-single { padding-block: var(--ol-gap); }
.ol-listing-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: var(--ol-gap); }
.ol-listing-gallery__item--primary { grid-column: 1 / -1; aspect-ratio: 16/9; overflow: hidden; }
.ol-listing-gallery__item--primary img { width: 100%; height: 100%; object-fit: cover; }
.ol-listing-gallery__item:not(.ol-listing-gallery__item--primary) { aspect-ratio: 4/3; overflow: hidden; }
.ol-listing-gallery__item:not(.ol-listing-gallery__item--primary) img { width: 100%; height: 100%; object-fit: cover; }
.ol-listing-gallery__placeholder { aspect-ratio: 16/9; background: var(--ol-grey-200); }
.ol-listing-header { margin-bottom: var(--ol-gap); }
.ol-listing-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.ol-listing-price { font-size: 1.5rem; font-weight: 700; color: var(--ol-black); margin-bottom: 6px; }
.ol-listing-location { font-size: 1rem; color: var(--ol-grey-700); }
.ol-listing-specs { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 0; border-top: 1px solid var(--ol-grey-200); border-bottom: 1px solid var(--ol-grey-200); margin-bottom: var(--ol-gap); }
.ol-listing-specs__item { display: flex; flex-direction: column; gap: 2px; }
.ol-listing-specs__label { font-size: .75rem; color: var(--ol-grey-700); text-transform: uppercase; letter-spacing: .06em; }
.ol-listing-specs__value { font-size: 1.1rem; font-weight: 600; }
.ol-listing-description { margin-bottom: var(--ol-gap); line-height: 1.7; }
.ol-listing-map { height: 350px; background: var(--ol-grey-200); border-radius: var(--ol-radius-lg); margin-bottom: var(--ol-gap); }

/* ── Agent card ───────────────────────────────────────────── */
.ol-agent-card {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 20px; border: 1px solid var(--ol-grey-200); border-radius: var(--ol-radius-lg);
}
.ol-agent-card__avatar { flex-shrink: 0; }
.ol-agent-card__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ol-agent-card__avatar-placeholder {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--ol-grey-200); display: flex; align-items: center; justify-content: center;
}
.ol-agent-card__info { flex: 1; min-width: 0; }
.ol-agent-card__name { display: block; font-size: 1rem; font-weight: 600; }
.ol-agent-card__company { display: block; font-size: .875rem; color: var(--ol-grey-700); }
.ol-agent-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.ol-breadcrumb { margin-bottom: 20px; }
.ol-breadcrumb__list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .8125rem; color: var(--ol-grey-700); }
.ol-breadcrumb__link { color: var(--ol-grey-700); }
.ol-breadcrumb__link:hover { color: var(--ol-black); }
.ol-breadcrumb__current { color: var(--ol-black); font-weight: 500; }
.ol-breadcrumb__sep { color: var(--ol-grey-400); }

/* ── Page accueil ─────────────────────────────────────────── */
.ol-hero { margin-bottom: var(--ol-gap); }
.ol-home-search {
    padding-block: 40px;
    background: url('../images/hero-bg.jpg') center center / cover no-repeat;
    margin-bottom: 40px;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.ol-home-search__title { font-size: 2rem; font-weight: 700; margin-bottom: 24px; }
.ol-home-featured { padding-block: 40px; }
.ol-home-categories { padding-block: 40px; background: var(--ol-grey-100); }
.ol-destinations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.ol-destination-card {
    display: flex; align-items: flex-end;
    padding: 20px; min-height: 120px;
    background: var(--ol-grey-200); border-radius: var(--ol-radius-lg);
    transition: background .15s;
}
.ol-destination-card:hover { background: var(--ol-grey-400); }
.ol-destination-card__label { font-size: 1rem; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────── */
.ol-footer { background: var(--ol-grey-900); color: var(--ol-white); padding-block: 48px; margin-top: 64px; }
.ol-footer__inner { max-width: var(--ol-container); margin-inline: auto; padding-inline: var(--ol-gap); display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .ol-footer__inner { grid-template-columns: 1fr; } }
.ol-footer .ol-logo { color: var(--ol-white); font-size: 1.25rem; display: block; margin-bottom: 8px; }
.ol-footer__tagline { font-size: .875rem; color: var(--ol-grey-400); }
.ol-footer__nav ul { display: flex; flex-direction: column; gap: 8px; }
.ol-footer__nav a { font-size: .875rem; color: var(--ol-grey-400); transition: color .15s; }
.ol-footer__nav a:hover { color: var(--ol-white); }
.ol-footer__legal { font-size: .75rem; color: var(--ol-grey-700); text-align: right; }
@media (max-width: 768px) { .ol-footer__legal { text-align: left; } }

/* ── Main ─────────────────────────────────────────────────── */
.ol-main { min-height: 60vh; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --ol-gap: 16px; }
    .ol-listing-gallery { grid-template-columns: 1fr; }
    .ol-listing-gallery__item--primary { grid-column: auto; }
    .ol-listing-title { font-size: 1.4rem; }
    .ol-hero-slide__title { font-size: 1.2rem; }
    .ol-filter-bar__form { padding-inline: 12px; }
}

/* ── Off Market ─────────────────────────────────────────────────────────── */
.ol-offmarket { margin: 24px 0; padding: 24px; border: 1px solid var(--ol-grey-300, #ddd); border-radius: 6px; background: #fafafa; max-width: 560px; }
.ol-offmarket__notice { margin-bottom: 20px; }
.ol-offmarket__badge { display: inline-block; padding: 3px 10px; border-radius: 2px; background: #1a1a1a; color: var(--ol-white); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.ol-offmarket__lead { color: var(--ol-grey-700); font-size: .9375rem; line-height: 1.5; margin: 0; }
.ol-offmarket__success { padding: 12px 16px; border-radius: 4px; background: #e8f5e9; color: var(--ol-green); font-weight: 600; }
.ol-offmarket__error { padding: 12px 16px; border-radius: 4px; background: #ffebee; color: #c62828; font-weight: 600; }
.ol-offmarket__field { margin-bottom: 14px; }
.ol-offmarket__field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 4px; }
.ol-offmarket__field input,
.ol-offmarket__field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--ol-grey-300, #ccc); border-radius: 4px; font: inherit; box-sizing: border-box; }
.ol-offmarket__submit { margin: 0; }
