@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Bilingual content toggle. Defaults to EN visible / FR hidden; when the
   <html lang="fr"> attribute is set the rule below flips them. Without these
   rules, both <span class="en-content"> and <span class="fr-content"> render
   simultaneously — which is exactly the "ON DEMANDSUR DEMANDE" badge
   overlap bug reported by Luca 2026-06-02 on mobile. The marketplace had
   these rules; the suppliers project never did because the original i18n
   used the t() helper rather than markup-level classes. I added the spans
   later for "On demand" / "Sur demande" without porting the CSS — fixed
   here once for all current and future occurrences. */
.fr-content { display: none; }
html[lang="fr"] .fr-content { display: inline; }
html[lang="fr"] .en-content { display: none; }

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --card-bg: #141414;
    --gold: #C9A961;
    --gold-light: #D4AF6A;
    --gold-dark: #B39551;
    --text-white: #ffffff;
    --text-gray: #c0c0c0;
    --text-light-gray: #888;
    --danger: #D4817A;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 1.5px;
}

a { color: inherit; text-decoration: none; }

/* NAV */
nav {
    position: fixed; top: 0; width: 100%;
    /* Solid black instead of rgba+blur: backdrop-filter:blur on a fixed-position
       element triggers full-frame GPU recompute on every scroll pixel, which
       crashes iOS Safari mobile ("A problem repeatedly occurred") and forces
       scroll-to-top on lighter touch. Visual diff is negligible because the
       background was already at 96 % opacity. */
    background: #0a0a0a;
    z-index: 1000; padding: 1rem 5%;
    border-bottom: 1px solid rgba(201,169,97,0.15);
}
.nav-content {
    max-width: 1400px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}
.nav-content > .logo-container { justify-self: start; }
.nav-content > .nav-links { justify-self: center; }
.nav-content > .nav-right { justify-self: end; }
@media (max-width: 900px) {
    /* On tablets/small laptops we hide the inline nav links and show the
       burger toggle instead (same trap as on phones — see the dedicated
       <768px @media block below for the full menu-open behaviour). */
    .nav-content { grid-template-columns: 1fr auto auto; gap: 0.6rem; }
    .nav-content > .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none;
        flex-direction: column;
        background: #0a0a0a;
        border-bottom: 1px solid rgba(201,169,97,0.2);
        padding: 0.6rem 1rem 1.2rem;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-content > .nav-links.mobile-open { display: flex; }
    .nav-content > .nav-links li { width: 100%; }
    .nav-content > .nav-links li a {
        display: block;
        padding: 1rem 0.4rem;
        border-bottom: 1px solid rgba(201,169,97,0.08);
        font-size: 0.95rem;
    }
    .nav-content > .nav-links li:last-child a { border-bottom: none; }
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
.logo-container {
    display: flex; flex-direction: column;
    text-decoration: none; line-height: 1;
}
.logo-container .logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; color: var(--gold);
    letter-spacing: 2px; font-weight: 600;
}
.logo-container .logo-sub {
    font-size: 0.6rem; letter-spacing: 4px;
    color: rgba(201,169,97,0.6); margin-top: 0.2rem;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text-gray); text-decoration: none; font-size: 0.78rem;
    letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.3s;
    font-weight: 400; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-right { display: flex; gap: 0.8rem; align-items: center; }
.lang-switch {
    cursor: pointer; padding: 0.55rem 1.2rem; border: 1px solid var(--gold);
    background: transparent; color: var(--gold); letter-spacing: 1.5px;
    transition: all 0.3s; font-size: 0.7rem; font-weight: 500;
    font-family: inherit;
}
.lang-switch:hover { background: var(--gold); color: var(--primary-black); }

/* BUTTONS */
.btn {
    padding: 0.95rem 2.2rem; text-decoration: none; letter-spacing: 1.8px;
    transition: all 0.3s; cursor: pointer; font-size: 0.78rem; border: none;
    text-transform: uppercase; font-weight: 500; display: inline-block;
    font-family: 'Montserrat', sans-serif; border-radius: 2px;
}
.btn-primary { background: var(--gold); color: var(--primary-black); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-white); border: 1px solid var(--text-white); }
.btn-secondary:hover { background: var(--text-white); color: var(--primary-black); }
.btn-gold-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-gold-outline:hover { background: var(--gold); color: var(--primary-black); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.68rem; }
.btn-danger { background: #5a2020; color: #ffaaaa; border: 1px solid #8b3030; }
.btn-danger:hover { background: #8b3030; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* VIEWS */
.view { display: none; padding-top: 90px; min-height: 100vh; }
.view.active { display: block; }

/* HERO */
.hero-mini {
    padding: 3rem 5%; text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.85));
    border-bottom: 1px solid rgba(201,169,97,0.1);
}
.hero-mini h1 {
    font-size: 2.6rem; color: var(--text-white);
    margin-bottom: 0.6rem; font-weight: 300;
}
.hero-mini h1 em { color: var(--gold); font-style: italic; }
.hero-mini p { color: var(--text-gray); font-size: 0.95rem; font-weight: 300; max-width: 640px; margin: 0 auto; }

/* FILTERS */
.filters-bar {
    padding: 1.5rem 5%; background: var(--secondary-black);
    border-bottom: 1px solid rgba(201,169,97,0.1);
    display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center;
}
.filter-group { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.filter-btn {
    padding: 0.5rem 1rem; background: transparent; border: 1px solid rgba(201,169,97,0.2);
    color: var(--text-gray); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s; font-family: 'Montserrat', sans-serif;
    border-radius: 2px;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--gold); color: var(--gold);
    background: rgba(201,169,97,0.08);
}

/* ROLE PICKER — auth modal (sober text-only chips) */
.role-card {
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0.85rem 0.9rem;
    background: var(--card-bg);
    border: 1.5px solid rgba(201,169,97,0.18);
    border-radius: 3px;
    transition: all 0.15s ease;
    font-family: 'Montserrat', sans-serif;
}
.role-card:hover { border-color: var(--gold); }
.role-card-active {
    border-color: var(--gold) !important;
    background: rgba(201,169,97,0.10) !important;
}
.role-card .role-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}
.role-card-active .role-title { color: var(--gold); }

/* CATEGORY GRID — directory category picker */
.cat-card {
    cursor: pointer; transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}
.cat-card:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: rgba(201,169,97,0.05) !important;
    transform: translateY(-1px);
}
.cat-card.active {
    border-color: var(--gold) !important;
    background: rgba(201,169,97,0.12) !important;
    color: var(--gold) !important;
}
.cat-card.active svg, .cat-card:hover svg {
    color: var(--gold);
}

/* LISTINGS GRID */
.listings-container { padding: 3rem 5%; max-width: 1400px; margin: 0 auto; }
.listings-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem;
}
.listing-card {
    background: var(--secondary-black);
    border: 1px solid rgba(201,169,97,0.15);
    overflow: hidden; transition: all 0.3s; cursor: pointer;
    border-radius: 4px;
}
.listing-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.listing-photo {
    height: 200px; background-size: cover; background-position: center;
    position: relative; background-color: #1a1a1a;
}
.listing-photo-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, rgba(201,169,97,0.06));
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; opacity: 0.3;
}
.listing-badge {
    position: absolute; top: 1rem; left: 1rem; padding: 0.35rem 0.9rem;
    font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
    border-radius: 2px;
    /* Solid background instead of rgba + blur — see the iOS-crash note on `nav`.
       This badge appears on every card with a cover photo, so the blur stacks
       across the viewport during scroll. */
    background: #0a0a0a; color: var(--gold);
}
.listing-badge.featured { background: var(--gold); color: var(--primary-black); }
.listing-info { padding: 1.4rem; }
.listing-info h3 {
    font-size: 1.3rem; color: var(--text-white);
    margin-bottom: 0.25rem; font-weight: 400;
}
.listing-info .listing-cat {
    font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.35rem;
}
.listing-region { color: var(--text-gray); font-size: 0.78rem; margin-bottom: 0.8rem; }
.listing-snippet { font-size: 0.8rem; color: var(--text-gray); line-height: 1.5; min-height: 2.6em; max-height: 3.9em; overflow: hidden; }
.listing-meta {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-top: 0.9rem; margin-top: 0.9rem;
    border-top: 1px solid rgba(201,169,97,0.1);
}
.listing-price {
    font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
    color: var(--gold); font-weight: 500;
}
.listing-price small { font-size: 0.65rem; color: var(--text-light-gray); margin-left: 0.3rem; letter-spacing: 0.5px; }

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-gray); }
.empty-state h3 { color: var(--gold); font-size: 1.8rem; margin-bottom: 0.8rem; }

/* DETAIL */
.detail-container { max-width: 1100px; margin: 0 auto; padding: 2rem 5%; }
.detail-back {
    color: var(--gold); cursor: pointer; font-size: 0.82rem;
    letter-spacing: 1px; margin-bottom: 1.5rem; display: inline-block;
}
.detail-back:hover { text-decoration: underline; }
.detail-gallery { margin-bottom: 2rem; }
.detail-main-photo {
    width: 100%; height: 420px; background-size: cover; background-position: center;
    background-color: #1a1a1a; border: 1px solid rgba(201,169,97,0.15);
    border-radius: 4px;
}
.detail-thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; }
.detail-thumb {
    width: 80px; height: 60px; background-size: cover; background-position: center;
    cursor: pointer; border: 2px solid transparent; transition: all 0.3s;
    flex-shrink: 0; background-color: #1a1a1a; border-radius: 3px;
}
.detail-thumb:hover, .detail-thumb.active { border-color: var(--gold); }
.detail-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; }
.detail-info h2 { font-size: 2.4rem; color: var(--text-white); margin-bottom: 0.3rem; }
.detail-info .detail-cat {
    color: var(--gold); font-size: 0.85rem; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 0.6rem;
}
.detail-region { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 1.5rem; }
.detail-description { color: var(--text-gray); line-height: 1.85; font-size: 0.92rem; margin-bottom: 1.5rem; white-space: pre-line; }
.detail-services {
    background: var(--card-bg); border: 1px solid rgba(201,169,97,0.12);
    padding: 1.5rem; border-radius: 4px; margin-bottom: 1.5rem;
}
.detail-services h4 { color: var(--gold); font-size: 1rem; letter-spacing: 1.5px; margin-bottom: 1rem; }
.detail-services ul { list-style: none; padding: 0; }
.detail-services li {
    padding: 0.7rem 0; border-bottom: 1px solid rgba(201,169,97,0.08);
    display: flex; justify-content: space-between; font-size: 0.85rem;
}
.detail-services li:last-child { border-bottom: none; }
.detail-services li .svc-price { color: var(--gold); font-weight: 500; }

.contact-panel {
    background: var(--secondary-black); border: 1px solid rgba(201,169,97,0.15);
    padding: 1.8rem; border-radius: 4px; position: sticky; top: 110px;
}
.contact-panel h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 1rem; }
.contact-panel .price-from {
    font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
    color: var(--gold); margin-bottom: 0.3rem;
}
.contact-panel .price-from small { font-size: 0.75rem; color: var(--text-gray); display: block; }

/* FORM */
.form-container { max-width: 800px; margin: 0 auto; padding: 2rem 5%; }
.form-section { margin-bottom: 2.5rem; }
.form-section h3 { font-size: 1.6rem; color: var(--gold); margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label {
    display: block; margin-bottom: 0.45rem; color: var(--text-gray);
    font-size: 0.74rem; letter-spacing: 1px; text-transform: uppercase;
}
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,97,0.2); color: var(--text-white);
    font-size: 0.88rem; font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s; border-radius: 3px;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: var(--gold);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-select { appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A961' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form-select option { background: var(--secondary-black); color: var(--text-white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }

/* PHOTO UPLOAD */
.photo-upload-area {
    border: 2px dashed rgba(201,169,97,0.3); padding: 2rem; text-align: center;
    cursor: pointer; transition: all 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 4px;
}
.photo-upload-area:hover { border-color: var(--gold); background: rgba(201,169,97,0.03); }
.photo-upload-area p { color: var(--text-gray); font-size: 0.85rem; }
.photo-upload-area .upload-icon { font-size: 1.8rem; margin-bottom: 0.5rem; opacity: 0.6; }
.photo-previews { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }
.photo-preview {
    width: 100px; height: 75px; background-size: cover; background-position: center;
    position: relative; border: 1px solid rgba(201,169,97,0.2); border-radius: 3px;
}
.photo-preview .remove-photo {
    position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
    background: #8B2E2E; color: white; border: none; border-radius: 50%;
    cursor: pointer; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
}

/* DASHBOARD */
.dashboard-container { max-width: 1100px; margin: 0 auto; padding: 2rem 5%; }
.subscription-banner {
    padding: 1.5rem 1.8rem; margin-bottom: 2rem;
    border-radius: 4px; border: 1px solid;
    display: flex; gap: 1.2rem; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
}
.subscription-banner.inactive {
    background: rgba(212,129,122,0.06); border-color: rgba(212,129,122,0.3);
}
.subscription-banner.active {
    background: rgba(201,169,97,0.06); border-color: rgba(201,169,97,0.3);
}
.subscription-banner .sb-text h4 {
    font-size: 1.1rem; color: var(--text-white); margin-bottom: 0.3rem;
    letter-spacing: 1px;
}
.subscription-banner .sb-text p {
    font-size: 0.82rem; color: var(--text-gray);
}

/* MESSAGES */
.messages-layout {
    display: grid; grid-template-columns: 320px 1fr;
    gap: 1rem; min-height: 500px;
}
#view-messages { padding-top: 1rem; }
#view-messages .detail-back {
    position: sticky; top: 0.5rem;
    background: var(--primary-black); padding: 0.4rem 0.8rem;
    z-index: 10; border-radius: 3px;
}
.conv-list {
    background: var(--card-bg); border: 1px solid rgba(201,169,97,0.1);
    border-radius: 4px; overflow: hidden;
    max-height: 70vh; overflow-y: auto;
}
.conv-item {
    padding: 1rem; border-bottom: 1px solid rgba(201,169,97,0.07);
    cursor: pointer; transition: background 0.2s;
}
.conv-item:hover { background: rgba(201,169,97,0.04); }
.conv-item.active { background: rgba(201,169,97,0.08); border-left: 3px solid var(--gold); }
.conv-item .conv-name { font-size: 0.9rem; color: var(--text-white); margin-bottom: 0.3rem; font-weight: 500; }
.conv-item .conv-preview { font-size: 0.75rem; color: var(--text-gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item .conv-time { font-size: 0.65rem; color: var(--text-light-gray); margin-top: 0.3rem; }
.conv-item .conv-unread {
    display: inline-block; background: var(--danger); color: #fff;
    font-size: 0.6rem; padding: 0.1rem 0.45rem; border-radius: 10px;
    margin-left: 0.4rem; vertical-align: middle;
}

.thread {
    background: var(--card-bg); border: 1px solid rgba(201,169,97,0.1);
    border-radius: 4px; padding: 1rem;
    display: flex; flex-direction: column; max-height: 70vh;
}
.thread-header {
    padding-bottom: 0.8rem; border-bottom: 1px solid rgba(201,169,97,0.1);
    margin-bottom: 0.8rem;
}
.thread-header h4 { font-size: 1.1rem; color: var(--text-white); }
.thread-messages { flex: 1; overflow-y: auto; padding: 0.6rem 0; }
.msg-bubble {
    padding: 0.7rem 1rem; border-radius: 8px; margin-bottom: 0.6rem;
    max-width: 75%; font-size: 0.85rem; line-height: 1.5;
}
.msg-bubble.mine {
    background: rgba(201,169,97,0.18); color: var(--text-white);
    margin-left: auto; border-bottom-right-radius: 2px;
}
.msg-bubble.theirs {
    background: rgba(255,255,255,0.04); color: var(--text-white);
    border-bottom-left-radius: 2px;
}
.msg-bubble .msg-time { font-size: 0.62rem; color: var(--text-light-gray); margin-top: 0.3rem; }
.msg-filtered-warn {
    background: rgba(212,129,122,0.12); color: var(--danger);
    font-size: 0.7rem; padding: 0.4rem 0.7rem; margin: 0.4rem 0;
    border-radius: 3px; text-align: center;
}
.thread-composer {
    border-top: 1px solid rgba(201,169,97,0.1);
    padding-top: 0.8rem; margin-top: 0.5rem;
}

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85); z-index: 2000; display: none;
    align-items: center; justify-content: center;
    overflow-y: auto; padding: 2rem 1rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--secondary-black); border: 1px solid rgba(201,169,97,0.2);
    padding: 2.2rem; max-width: 460px; width: 100%; position: relative;
    border-radius: 4px; margin: auto;
}
.modal-box h3 { color: var(--gold); margin-bottom: 0.8rem; font-size: 1.4rem; }
.modal-box p { color: var(--text-gray); margin-bottom: 1.2rem; font-size: 0.88rem; line-height: 1.7; }
.modal-close {
    position: absolute; top: 0.8rem; right: 1rem; background: none; border: none;
    color: var(--text-gray); font-size: 1.6rem; cursor: pointer;
}

/* TOAST */
.toast {
    position: fixed; bottom: 2rem; right: 2rem; padding: 0.9rem 1.6rem;
    background: var(--gold); color: var(--primary-black); font-size: 0.82rem;
    letter-spacing: 1px; z-index: 3000; transform: translateY(100px); opacity: 0;
    transition: all 0.4s; border-radius: 3px; max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--danger); color: #fff; }

/* LOADING */
.loader {
    text-align: center; padding: 3rem; color: var(--text-gray); font-size: 0.85rem;
}
.spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2px solid rgba(201,169,97,0.2);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle; margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .detail-content { grid-template-columns: 1fr; }
    .contact-panel { position: static; }
    .messages-layout { grid-template-columns: 1fr; }
}
/* Burger menu button — desktop hides it, mobile shows it.
   Without this button, connected suppliers on phones were trapped on the
   home view: the nav-links were `display:none` and no replacement UI
   existed, so they couldn't reach Ma fiche pro / Abonnement / Messages. */
.mobile-menu-toggle {
    display: none;
    background: transparent; border: 1px solid rgba(201,169,97,0.4);
    color: var(--gold); padding: 0.5rem 0.6rem;
    border-radius: 4px; cursor: pointer;
    transition: background 0.2s;
}
.mobile-menu-toggle:hover { background: rgba(201,169,97,0.08); }
.mobile-menu-toggle.is-open { background: rgba(201,169,97,0.12); }

@media (max-width: 768px) {
    .hero-mini h1 { font-size: 1.9rem; }
    .listings-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .detail-main-photo { height: 240px; }
    .subscription-banner { flex-direction: column; align-items: flex-start; }

    /* Reveal the burger toggle and reorganise the nav so logo + burger fit
       on a phone-width screen. nav-content stays a single horizontal row;
       only logo + burger remain visible at all times. */
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-content { grid-template-columns: 1fr auto auto; gap: 0.6rem; }
    .nav-right { gap: 0.5rem; }

    /* Mobile menu: hidden by default, slides down from under the nav when
       the burger toggle adds .mobile-open. Full-width, vertical list,
       solid background so it's readable over any content underneath. */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: #0a0a0a;
        border-bottom: 1px solid rgba(201,169,97,0.2);
        padding: 0.6rem 1rem 1.2rem;
        gap: 0;
        list-style: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links li a {
        display: block;
        padding: 1rem 0.4rem;
        border-bottom: 1px solid rgba(201,169,97,0.08);
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    .nav-links li:last-child a { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════════
   POLISH PASS — luxe minimaliste (Aman / Six Senses) — June 2026
   Strictly additive. Same DNA as the marketplace and landing polish
   so the three sites feel like one coherent product.
   ═══════════════════════════════════════════════════════════════ */

/* SP·1 — Buttons : tactile press + accessible focus + gold halo on hover */
.btn { transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-primary:hover {
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.28);
}
.btn:not(:disabled):active { transform: translateY(0) scale(0.985); }
.btn:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* SP·2 — Form fields : refined gold halo on focus */
.form-input, .form-textarea, .form-select {
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.14);
}
.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

/* SP·3 — Listing cards : layered hover (translate + shadow + gold rim)
   Single translateY reads as mechanical; layering adds depth = "considered". */
.listing-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s, box-shadow 0.35s, background 0.3s;
}
.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(201, 169, 97, 0.22);
}

/* SP·4 — Staggered fade-in for listing cards on arrival */
@keyframes spFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.listing-card {
    opacity: 0;
    animation: spFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.listing-card:nth-child(1)    { animation-delay: 0ms;   }
.listing-card:nth-child(2)    { animation-delay: 60ms;  }
.listing-card:nth-child(3)    { animation-delay: 120ms; }
.listing-card:nth-child(4)    { animation-delay: 180ms; }
.listing-card:nth-child(5)    { animation-delay: 220ms; }
.listing-card:nth-child(6)    { animation-delay: 260ms; }
.listing-card:nth-child(7)    { animation-delay: 300ms; }
.listing-card:nth-child(8)    { animation-delay: 340ms; }
.listing-card:nth-child(9)    { animation-delay: 380ms; }
.listing-card:nth-child(n+10) { animation-delay: 420ms; }

/* SP·5 — Modal close (×) : meaningful hover with rotation */
.modal-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-close:hover {
    color: var(--gold);
    background: rgba(201, 169, 97, 0.1);
    transform: scale(1.1) rotate(90deg);
}
.modal-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* SP·6 — Toast : smoother entry with a touch of overshoot */
.toast {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* SP·7 — Empty state : unified, calmer, more inviting
   Empty pages should feel like helpful pauses, not error screens. */
.empty-state {
    padding: 5rem 2rem;
    max-width: 580px;
    margin: 0 auto;
}
.empty-state h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}
.empty-state p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

/* SP·8 — Dashboard stat blocks : breathe alive on hover
   Static data cards feel like dead surface; gentle lift = "responsive product". */
.dashboard-stat, [data-role="stat-block"], .stat-block {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.dashboard-stat:hover, [data-role="stat-block"]:hover, .stat-block:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 10px 24px rgba(201, 169, 97, 0.1);
    transform: translateY(-2px);
}

/* SP·9 — Offer row buttons : ensure consistent feedback on hover/active */
.offer-row .btn, .offer-actions .btn {
    transition: all 0.25s ease;
}
.offer-row .btn:hover, .offer-actions .btn:hover { opacity: 0.95; }
@media (max-width: 600px) {
    .offer-row .offer-actions, .offer-actions {
        flex-direction: column;
        gap: 0.4rem !important;
    }
    .offer-row .btn, .offer-actions .btn { width: 100%; }
}

/* SP·10 — Detail page / gallery thumb breathing room */
.detail-main-photo { transition: opacity 0.4s ease-in-out; }
.detail-main-photo.swap-fade { opacity: 0.15; }
.detail-thumb {
    opacity: 0.65;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.detail-thumb:hover  { opacity: 1; transform: translateY(-2px); }
.detail-thumb.active { opacity: 1; box-shadow: 0 6px 14px rgba(201, 169, 97, 0.25); }

/* Global micro-polish */
::selection { background: rgba(201, 169, 97, 0.3); color: var(--text-white); }
html { scroll-behavior: smooth; }
a { transition: color 0.25s ease; }

/* Accessibility — respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .listing-card { opacity: 1; animation: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
