:root {
    --bg: #f4f1ea;
    --bg-2: #e9e2d4;
    --surface: rgba(255, 255, 255, 0.58);
    --surface-strong: rgba(255, 255, 255, 0.78);
    --surface-premium: rgba(255, 255, 255, 0.88);
    --ink: #1e2430;
    --ink-soft: #546070;
    --line: rgba(45, 57, 74, 0.16);
    --brand: #f35f27;
    --brand-2: #f2b441;
    --gold: #d8b46a;
    --success: #1b8f68;
    --danger: #bb2d35;
    --shadow-soft: 0 12px 40px rgba(30, 36, 48, 0.12);
    --shadow-card: 0 22px 55px rgba(30, 36, 48, 0.14);
    --shadow-premium: 0 28px 70px rgba(30, 36, 48, 0.18);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% -10%, #fff6de 0%, transparent 45%),
        radial-gradient(circle at 90% 0%, #ffe5d1 0%, transparent 38%),
        linear-gradient(160deg, var(--bg), var(--bg-2));
    min-height: 100vh;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.26;
}

body::before {
    left: -130px;
    top: 18%;
    background: radial-gradient(circle, rgba(255, 176, 86, 0.8) 0%, rgba(255, 176, 86, 0) 70%);
}

body::after {
    right: -150px;
    top: 52%;
    background: radial-gradient(circle, rgba(112, 156, 231, 0.58) 0%, rgba(112, 156, 231, 0) 72%);
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.noise-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image: radial-gradient(rgba(0, 0, 0, 0.25) 0.6px, transparent 0.6px);
    background-size: 4px 4px;
    z-index: 0;
}

.glass {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    width: min(var(--container), calc(100% - 32px));
    margin: 16px auto 0;
    border-radius: 100px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(16, 29, 46, 0.14);
    transition: transform 320ms ease, box-shadow 320ms ease, background 320ms ease;
}

.site-header.is-scrolled {
    transform: translateY(calc(var(--scroll-shift, 0px) * -0.08));
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56));
    box-shadow: 0 18px 40px rgba(16, 29, 46, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 0.96rem;
    font-weight: 600;
}

.brand-title {
    font-size: clamp(1.7rem, 3.3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(
        90deg,
        #f35f27 0%,
        #ff7a2f 24%,
        #ffb23f 47%,
        #89be37 73%,
        #6db93b 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 24px rgba(83, 54, 12, 0.16);
}

.top-nav {
    display: inline-flex;
    gap: 6px;
}

.top-nav-extra {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-user-pill {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #33465d;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(45, 57, 74, 0.14);
}

.auth-link {
    border: 1px solid rgba(35, 53, 76, 0.22);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.84rem;
    color: #21334a;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    transition: all 180ms ease;
}

.auth-link:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #25384f, #1d2b3b);
}

.top-nav a {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    transition: all 220ms ease;
}

.top-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease;
}

.top-nav a:hover {
    background: var(--surface-strong);
    color: var(--ink);
}

.top-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #2a3b53, #1e2a3a);
    box-shadow: 0 10px 20px rgba(18, 31, 49, 0.26);
}

.top-nav a.is-active::after {
    transform: scaleX(1);
    background: linear-gradient(90deg, #ffd07a, #f2b441);
}

.top-nav a:hover::after {
    transform: scaleX(1);
}

.top-nav a.nav-apli-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.top-nav a.nav-apli-link img {
    width: 70px;
    max-width: none;
    height: auto;
}

.apli-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #d61f2f;
    border: 1px solid rgba(33, 50, 73, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.top-nav a.nav-apli-link.is-active {
    background: rgba(255, 255, 255, 0.9);
}

.premium-offer-strip {
    width: min(var(--container), calc(100% - 32px));
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.premium-offer-chip {
    border-radius: 14px;
    border: 1px solid rgba(38, 52, 73, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
    color: #1f3045;
    padding: 10px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(20, 32, 49, 0.1);
}

main {
    width: min(var(--container), calc(100% - 32px));
    margin: 32px auto 0;
    position: relative;
    z-index: 1;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 26px;
}

.apli-hero {
    margin-top: 20px;
    padding: 18px;
}

.apli-hero-grid {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.apli-hero-preview {
    border-radius: 16px;
    border: 1px solid rgba(45, 57, 74, 0.18);
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
        linear-gradient(160deg, rgba(255, 247, 236, 0.8), rgba(246, 250, 255, 0.72));
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 16px 12px;
    box-shadow: 0 18px 40px rgba(22, 38, 58, 0.14);
}

.apli-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #d71e2f;
    border: 1px solid rgba(31, 49, 72, 0.18);
    background: #fff;
}

.apli-hero-preview p {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    color: #5f6d7e;
}

.apli-hero-copy h1 {
    margin: 8px 0 10px;
}

.apli-story {
    margin-top: 14px;
    padding: clamp(18px, 3vw, 28px);
    display: grid;
    gap: 10px;
}

.apli-story h2,
.apli-story h3 {
    margin: 0;
}

.apli-story ul {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
    display: grid;
    gap: 8px;
}

.apli-story p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.apli-subcat-chips {
    margin: 0 0 14px;
}

main > section {
    position: relative;
    isolation: isolate;
}

main > section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 67, 92, 0.24), transparent);
    opacity: 0;
    transform: scaleX(0.65);
    transform-origin: center;
    transition: opacity 560ms ease, transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

main > section.is-section-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

.cinematic-enabled .hero .hero-copy,
.cinematic-enabled .hero .search-panel {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
}

.cinematic-enabled.page-ready .hero .hero-copy,
.cinematic-enabled.page-ready .hero .search-panel {
    animation: hero-lift 780ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.cinematic-enabled.page-ready .hero .search-panel {
    animation-delay: 140ms;
}

@keyframes hero-lift {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.restricted-hero {
    margin-top: 28px;
    border-radius: var(--radius-xl);
    padding: clamp(24px, 5vw, 56px);
    text-align: center;
}

.restricted-hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.serif {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: #3a4d67;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    margin: 0;
    color: #6f7b88;
}

.subtitle {
    margin: 0;
    color: var(--ink-soft);
    max-width: 62ch;
}

.hero-signature-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.hero-welcome-premium {
    --spot-x: -260px;
    --spot-y: 50%;
    --spot-size: 0px;
    --spot-opacity: 0;
    margin: 0;
    margin-left: clamp(2rem, 3.4vw, 3rem);
    padding: 6px 2px;
    font-size: clamp(0.82rem, 1.1vw, 1rem);
    font-weight: 900;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    white-space: nowrap;
    background:
        radial-gradient(var(--spot-size) circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, var(--spot-opacity)) 0%, rgba(255, 255, 255, calc(var(--spot-opacity) * 0.74)) 15%, rgba(255, 255, 255, calc(var(--spot-opacity) * 0.3)) 34%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.14) 2%, rgba(255, 255, 255, 0.03) 36%, rgba(0, 0, 0, 0.36) 74%, rgba(255, 255, 255, 0.09) 100%),
        repeating-linear-gradient(50deg, rgba(255, 255, 255, 0.08) 0 1px, rgba(0, 0, 0, 0.22) 1px 3px),
        linear-gradient(132deg, #12161b 0%, #232931 44%, #3e4853 100%);
    background-blend-mode: screen, overlay, soft-light, normal;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.27;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.04);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08)) drop-shadow(0 6px 10px rgba(10, 12, 15, 0.18));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-welcome-premium:hover {
    letter-spacing: 0.092em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 25px rgba(234, 179, 8, 0.35);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(0 14px 19px rgba(13, 16, 20, 0.45));
}

.hero-welcome-premium.is-spotlight-on {
    --spot-size: 290px;
    --spot-opacity: 1;
    opacity: 0.98;
}

.search-panel {
    border-radius: var(--radius-xl);
    padding: 18px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55));
}

.search-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-input-wrap input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search-input-wrap input:focus {
    border-color: rgba(243, 95, 39, 0.55);
    box-shadow: 0 0 0 4px rgba(243, 95, 39, 0.14);
}

.search-input-wrap button {
    border: 0;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand), #dd4d1d);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    box-shadow: 0 10px 20px rgba(243, 95, 39, 0.26);
}

.search-input-wrap button:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 14px 30px rgba(243, 95, 39, 0.34);
}

.chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-filter-status {
    margin: 10px 0 0;
    font-size: 0.84rem;
    color: #516071;
}

.subcat-hub-note {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #5f6d7e;
}

.search-tools-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.search-tools-group {
    display: grid;
    gap: 6px;
}

.search-tools-label {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b6979;
}

.search-tools-select {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.75);
    color: #2a394d;
}

.search-tools-toggle {
    display: inline-flex;
    border: 1px solid rgba(40, 56, 76, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.view-mode-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.75);
    color: #4f5d6e;
    padding: 8px 12px;
    font-size: 0.82rem;
    cursor: pointer;
}

.view-mode-btn.is-active {
    background: linear-gradient(135deg, #26384f, #202a3a);
    color: #fff;
}

.favorites-toggle-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #4f5d6e;
    font-size: 0.82rem;
    cursor: pointer;
}

.favorites-toggle-btn.is-active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #24364b, #1d2a3a);
}

.search-tools-hint {
    margin: 8px 0 0;
    color: #5e6d7f;
    font-size: 0.78rem;
}

.chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    color: #516071;
    transition: all 180ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip:hover,
.chip.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #26384f, #202a3a);
    color: #f6f7f9;
}

.chip-fav {
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.82;
}

.chip.is-favorite .chip-fav {
    opacity: 1;
    color: #f2b441;
}

.mode-subcats {
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.48);
    padding: 10px 12px;
}

.mode-subcats-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}

.mode-subcats-toggle::-webkit-details-marker {
    display: none;
}

.mode-subcats-toggle::after {
    content: "▾";
    font-size: 0.84rem;
    color: #556476;
    transition: transform 180ms ease;
}

.mode-subcats[open] .mode-subcats-toggle::after {
    transform: rotate(180deg);
}

.mode-subcats-content {
    margin-top: 8px;
}

.mode-subcats-title {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5c6b7c;
}

.mode-subcats-group {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.mode-subcats-group strong {
    font-size: 0.84rem;
    color: #33465e;
}

.mode-subcats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mode-chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
    color: #516071;
    font-size: 0.84rem;
    transition: all 180ms ease;
}

.mode-chip.is-all {
    border-color: rgba(40, 56, 76, 0.2);
    font-weight: 600;
}

.mode-chip:hover,
.mode-chip.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #26384f, #202a3a);
    color: #f6f7f9;
}

.results-wrap {
    margin-top: 34px;
    padding-bottom: 54px;
}

.auth-flash-wrap {
    margin-top: 20px;
}

.reviews-wrap {
    margin-top: 28px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.review-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.84);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64));
    box-shadow: var(--shadow-soft);
    padding: 14px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(30, 36, 48, 0.14);
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.review-top strong {
    font-size: 0.96rem;
}

.review-top span {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.review-card p {
    margin: 10px 0 12px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.45;
}

.review-stars {
    display: flex;
    gap: 4px;
    color: #c8cfda;
    font-size: 1rem;
}

.review-stars .filled {
    color: #f2b441;
}

.trust-wrap {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    padding: 16px;
}

.trust-wrap h3 {
    margin: 0 0 10px;
}

.trust-wrap ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    display: grid;
    gap: 8px;
}

.review-form-wrap {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    padding: 16px;
}

.review-form-wrap h3 {
    margin: 0;
}

.review-form-wrap > p {
    margin: 6px 0 14px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.story-wrap {
    margin-top: 28px;
    padding-bottom: 24px;
}

.story-content {
    border-radius: var(--radius-lg);
    padding: clamp(16px, 3vw, 28px);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
}

.story-content h3 {
    margin: 0 0 12px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.story-content h4 {
    margin: 16px 0 8px;
    font-size: 1rem;
}

.story-content p {
    margin: 0 0 10px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.legal-block {
    margin-top: 16px;
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6));
}

.legal-block h4 {
    margin: 0 0 8px;
}

.legal-block ul {
    margin: 0 0 12px;
    padding-left: 18px;
    color: var(--ink-soft);
    display: grid;
    gap: 6px;
}

.legal-block ul:last-child {
    margin-bottom: 0;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.results-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.85rem);
    letter-spacing: -0.01em;
}

.results-head h2::after {
    content: "";
    display: block;
    width: 66px;
    height: 3px;
    margin-top: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--gold));
}

.results-head p {
    margin: 0;
    color: var(--ink-soft);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.listing-grid.is-compact {
    grid-template-columns: 1fr;
    gap: 10px;
}

.listing-grid.is-compact .listing-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: stretch;
}

.listing-grid.is-compact .media {
    height: 100%;
    min-height: 136px;
}

.listing-grid.is-compact .media img {
    height: 100%;
}

.listing-grid.is-compact .content {
    padding: 12px;
}

.listing-grid.is-compact .content p {
    margin: 7px 0 10px;
    font-size: 0.86rem;
}

.listing-grid.is-compact .listing-excerpt {
    -webkit-line-clamp: 3;
}

.listing-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, var(--surface-premium), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
                box-shadow 0.35s ease,
                opacity 0.45s ease;
}

.listing-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}

.media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.media img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 400ms ease;
}

.listing-link {
    display: block;
    height: 100%;
}

.listing-title-link {
    color: inherit;
}

.listing-title-link:hover {
    color: #26384f;
}

.listing-card:hover .media img {
    transform: scale(1.09);
}

.vehicle-card .vehicle-media {
    perspective: 900px;
    background:
        radial-gradient(circle at 50% 84%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 56%),
        linear-gradient(180deg, rgba(22, 30, 42, 0.12), rgba(22, 30, 42, 0.02));
}

.vehicle-card .vehicle-media::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 72%;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(20, 30, 43, 0.34) 0%, rgba(20, 30, 43, 0.1) 62%, rgba(20, 30, 43, 0) 100%);
    pointer-events: none;
}

.vehicle-card .vehicle-media img {
    transform-origin: center 76%;
    animation: vehicleTurntable 7.6s ease-in-out infinite;
}

.listing-card.vehicle-card:hover .vehicle-media img {
    transform: none;
    animation-play-state: paused;
}

.vehicle-spin-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 5px 10px;
    color: #f9fbff;
    background: linear-gradient(135deg, rgba(34, 49, 69, 0.86), rgba(23, 33, 46, 0.84));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    letter-spacing: 0.01em;
}

@keyframes vehicleTurntable {
    0% {
        transform: translateY(0) rotateY(-19deg) scale(1.03);
    }
    25% {
        transform: translateY(-1px) rotateY(-8deg) scale(1.04);
    }
    50% {
        transform: translateY(0) rotateY(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-1px) rotateY(8deg) scale(1.04);
    }
    100% {
        transform: translateY(0) rotateY(19deg) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-card .vehicle-media img {
        animation: none;
        transform: scale(1.03);
    }
}

@media (max-width: 900px) {
    .listing-detail-grid {
        grid-template-columns: 1fr;
    }
}

.badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    padding: 6px 10px;
    color: #f9fbff;
    background: rgba(24, 31, 42, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.content {
    padding: 14px;
}

.content h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.3;
}

.content p {
    margin: 9px 0 12px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.45;
}

.listing-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.meta strong {
    font-size: 1rem;
    color: #172438;
}

.meta span {
    color: #5e6d7f;
}

.card-actions {
    margin-top: 12px;
}

.listing-contact-cta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-contact-cta .auth-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.79rem;
}

.listing-contact-cta .auth-link:first-child {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #f35f27, #dd4d1d);
    box-shadow: 0 10px 20px rgba(243, 95, 39, 0.3);
}

.listing-contact-cta .auth-link:first-child:hover {
    color: #fff;
    background: linear-gradient(135deg, #f66d3a, #e25525);
    box-shadow: 0 14px 24px rgba(223, 79, 32, 0.34);
}

.stock-inline {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #185938;
    background: rgba(38, 192, 107, 0.16);
    border: 1px solid rgba(38, 192, 107, 0.33);
}

.stock-inline::before {
    content: '●';
    font-size: 0.62rem;
    line-height: 1;
}

.stock-inline.is-low {
    color: #8a4f00;
    background: rgba(245, 165, 36, 0.18);
    border-color: rgba(245, 165, 36, 0.44);
}

.btn-buy-now {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #f35f27, #df4f20);
    box-shadow: 0 12px 24px rgba(243, 95, 39, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-buy-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(223, 79, 32, 0.34);
}

.empty-state {
    margin: 30px 0;
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed var(--line);
    color: #5b6979;
    background: rgba(255, 255, 255, 0.45);
}

.listing-detail-wrap {
    margin-top: 24px;
    padding: 18px;
}

.listing-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.listing-detail-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.74);
}

.listing-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.listing-main-image {
    cursor: zoom-in;
}

.listing-main-image:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: -3px;
}

.listing-detail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(38, 56, 79, 0.2);
    background: rgba(255, 255, 255, 0.88);
    color: #1f2f45;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.listing-detail-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
    box-shadow: 0 8px 22px rgba(32, 42, 58, 0.18);
}

.listing-detail-nav-prev {
    left: 10px;
}

.listing-detail-nav-next {
    right: 10px;
}

.vehicle-detail-media img {
    animation: vehicleTurntable 7.6s ease-in-out infinite;
}

.listing-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
}

.listing-thumb {
    border: 1px solid rgba(45, 57, 74, 0.2);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.listing-thumb img {
    width: 100%;
    height: 74px;
    object-fit: cover;
}

.listing-thumb.is-active {
    border-color: #26384f;
    box-shadow: 0 0 0 2px rgba(38, 56, 79, 0.16);
}

.listing-swipe-hint {
    display: none;
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #607082;
}

body.listing-lightbox-open {
    overflow: hidden;
}

.listing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1700;
    background: rgba(11, 18, 28, 0.94);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: clamp(10px, 2.4vw, 18px);
}

.listing-lightbox[hidden] {
    display: none;
}

.listing-lightbox-figure {
    margin: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-height: 100%;
    overflow: auto;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.listing-lightbox-figure img {
    width: auto;
    height: auto;
    max-width: min(96vw, 1220px);
    max-height: calc(100vh - 96px);
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    transform-origin: center center;
    transition: transform 160ms ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: zoom-in;
}

.listing-lightbox-figure img.is-zoomed {
    cursor: grab;
}

.listing-lightbox-figure img.is-dragging {
    transition: none;
    cursor: grabbing;
}

.listing-lightbox-caption {
    color: rgba(239, 246, 255, 0.9);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.listing-lightbox-zoom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(203, 213, 225, 0.2);
}

.listing-lightbox-zoom-btn {
    border: 1px solid rgba(203, 213, 225, 0.26);
    background: rgba(15, 23, 42, 0.4);
    color: #f8fafc;
    border-radius: 999px;
    min-height: 34px;
    min-width: 52px;
    padding: 0 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.listing-lightbox-zoom-btn.is-active {
    background: linear-gradient(135deg, #f66d3a, #e25525);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.listing-lightbox-close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    border: 1px solid rgba(226, 232, 240, 0.24);
    background: rgba(15, 23, 42, 0.68);
    color: #f8fafc;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

.listing-lightbox-nav {
    border: 1px solid rgba(226, 232, 240, 0.24);
    background: rgba(15, 23, 42, 0.68);
    color: #f8fafc;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.listing-lightbox-nav:hover,
.listing-lightbox-close:hover {
    background: rgba(15, 23, 42, 0.86);
}

.listing-lightbox-nav[hidden] {
    display: none;
}

.service-quote-box {
    margin-top: 18px;
    border: 1px solid rgba(45, 57, 74, 0.14);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.74);
}

.service-quote-box h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.service-quote-intro {
    margin: 0 0 12px;
    color: #5e6d7d;
    font-size: 0.92rem;
}

@keyframes swipeHintPulse {
    0% { opacity: 0.55; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-1px); }
    100% { opacity: 0.55; transform: translateY(0); }
}

.pagination {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: #4f5d6e;
    background: rgba(255, 255, 255, 0.72);
    transition: all 180ms ease;
}

.page-link:hover,
.page-link.is-current {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #26384f, #202a3a);
}

.site-footer {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 28px;
    color: #6a7684;
    font-size: 0.82rem;
    text-align: center;
}

.floating-social {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 45;
    display: grid;
    gap: 8px;
}

.floating-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(31, 49, 72, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(17, 31, 49, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease;
    position: relative;
    overflow: visible;
    opacity: 1 !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.floating-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(17, 31, 49, 0.26);
}

.floating-social-facebook {
    background-color: #1967d8;
    background: linear-gradient(180deg, #2f7ff8, #1967d8);
}

.floating-social-messenger {
    background-color: #0064ff;
    background: linear-gradient(180deg, #00b2ff, #0064ff);
}

.floating-social-phone {
    background-color: #0f7f55;
    background: linear-gradient(180deg, #18a56f, #0f7f55);
}

.floating-social-mail {
    background-color: #dc7421;
    background: linear-gradient(180deg, #f29b2f, #dc7421);
}

.floating-social-btn svg {
    display: none;
}

.floating-social-btn::before {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

.floating-social-facebook::before {
    content: "f";
    font-family: Arial, sans-serif;
}

.floating-social-messenger::before {
    content: "✉";
    font-size: 14px;
}

.floating-social-phone::before {
    content: "☎";
    font-size: 13px;
}

.floating-social-mail::before {
    content: "@";
    font-family: Arial, sans-serif;
}

.floating-social-btn::after {
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    pointer-events: none;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #f6f9ff;
    background: rgba(20, 32, 49, 0.92);
    white-space: nowrap;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 16px rgba(17, 31, 49, 0.22);
    transition: opacity 170ms ease, transform 170ms ease;
    z-index: 60;
}

.floating-social-btn:hover::after,
.floating-social-btn:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.floating-social-facebook::after {
    content: "Nos trouvailles en direct 📘";
}

.floating-social-messenger::after {
    content: "Un message, et on chine pour vous 💬";
}

.floating-social-phone::after {
    content: "Besoin d'une voix humaine ? On décroche ☎";
}

.floating-social-mail::after {
    content: "Un e-mail, zéro pigeon voyageur ✉";
}

body.modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 24, 0.56);
}

.auth-modal-panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.86);
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(45, 57, 74, 0.2);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.auth-modal-panel h2 {
    margin: 2px 0 6px;
}

.auth-modal-subtitle {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.auth-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-tab {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 8px 12px;
    color: #516071;
    cursor: pointer;
}

.auth-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #23354c, #1c2a39);
    color: #fff;
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.is-active {
    display: block;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.alert-pill-fieldset {
    border: 1px solid rgba(45, 57, 74, 0.15);
    border-radius: 14px;
    padding: 12px;
    margin: 0;
}

.alert-pill-fieldset legend {
    padding: 0 6px;
    color: #5a6879;
    font-size: 0.82rem;
}

.alert-pill-list,
.google-auth-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alert-pill {
    position: relative;
}

.alert-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.alert-pill span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.76);
    color: #526173;
    cursor: pointer;
    font-size: 0.83rem;
}

.alert-pill input:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, #20324a, #1c2a3a);
    color: #fff;
}

.google-auth-form {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.btn-google {
    border: 1px solid #d5dbe5;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    background: #fff;
    color: #21334a;
    cursor: pointer;
}

.guest-listing-preview {
    margin: 0 0 12px;
    border: 1px solid rgba(45, 57, 74, 0.15);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: rgba(255, 255, 255, 0.72);
}

.guest-listing-preview span {
    color: #5a6778;
    font-size: 0.9rem;
}

.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.988);
    transition: opacity 0.66s cubic-bezier(0.2, 0.75, 0.2, 1),
                transform 0.66s cubic-bezier(0.2, 0.75, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.admin-layout {
    width: min(900px, calc(100% - 24px));
    margin: 20px auto 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-header h1 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.admin-logout {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.86rem;
    color: #526174;
    background: rgba(255, 255, 255, 0.6);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.panel {
    border-radius: var(--radius-lg);
    padding: 18px;
}

#panier {
    scroll-margin-top: 116px;
}

.cart-panel {
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.92);
}

.cart-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    color: #334a63;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(45, 57, 74, 0.14);
}

.cart-top-actions {
    margin-top: 10px;
}

.cart-continue-link {
    align-self: center;
}

.cart-checkout-form {
    margin-top: 12px;
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(45, 57, 74, 0.1);
}

.cart-note {
    margin: 0;
    color: var(--ink-soft);
}

.cart-note-follow {
    margin-top: 4px;
}

.cart-checkout-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.cart-checkout-actions .btn-primary,
.cart-checkout-actions .admin-logout {
    min-height: 46px;
}

.cart-checkout-actions .admin-logout.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.payment-unavailable-note {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: #4f6278;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.82rem;
    color: #607082;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 11px 12px;
    font-family: inherit;
    font-size: 0.96rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.actions {
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand), #d84a1b);
}

.alert {
    border-radius: 12px;
    padding: 12px;
    font-size: 0.92rem;
}

.alert.success {
    background: rgba(27, 143, 104, 0.1);
    border: 1px solid rgba(27, 143, 104, 0.35);
    color: var(--success);
}

.alert.error {
    background: rgba(187, 45, 53, 0.08);
    border: 1px solid rgba(187, 45, 53, 0.35);
    color: var(--danger);
}

.alert.info {
    background: rgba(48, 111, 189, 0.11);
    border: 1px solid rgba(48, 111, 189, 0.28);
    color: #234a80;
}

.login-wrap {
    width: min(430px, calc(100% - 20px));
    margin: 68px auto;
}

.login-wrap h1 {
    margin: 0 0 16px;
}

.lock-note {
    margin: 0 0 10px;
    color: #8b4b16;
    font-size: 0.86rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.66);
}

.stat-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.04rem;
    color: #18273c;
}

.admin-listings {
    display: grid;
    gap: 10px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.65);
}

.admin-item-main h3 {
    margin: 0;
    font-size: 0.95rem;
}

.admin-item-main p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.admin-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-item-actions form {
    margin: 0;
}

.admin-gallery-sortable {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    min-width: 110px;
    cursor: grab;
    background: #fff;
}

.admin-gallery-item.is-dragging {
    opacity: 0.65;
    cursor: grabbing;
}

.admin-gallery-thumb {
    width: 94px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-gallery-meta {
    font-size: 12px;
    color: #4b5563;
}

.admin-gallery-drag-hint {
    font-size: 11px;
    color: #7c8a9a;
    letter-spacing: 0.02em;
}

.admin-delete {
    border: 1px solid rgba(187, 45, 53, 0.34);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #93222a;
    background: rgba(187, 45, 53, 0.08);
    cursor: pointer;
}

@media (max-width: 1020px) {
    .site-header {
        width: min(var(--container), calc(100% - 24px));
        top: 10px;
    }

    @media (max-width: 768px) {
        .listing-swipe-hint {
            display: block;
            animation: swipeHintPulse 700ms ease-in-out 3;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .listing-swipe-hint {
            animation: none !important;
        }
    }

    main {
        width: min(var(--container), calc(100% - 24px));
    }

    .hero-copy h1 {
        font-size: clamp(1.9rem, 5vw, 3.2rem);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .media {
        height: 205px;
    }

    .apli-hero-grid {
        grid-template-columns: 1fr;
    }

    .apli-hero-preview {
        padding: 14px 10px;
    }

    .apli-hero-badge {
        min-width: 76px;
        font-size: 0.92rem;
    }
}

@media (max-width: 760px) {
    .site-header.is-hidden-mobile {
        transform: translateY(calc(-100% - 18px));
        box-shadow: none;
    }

    .site-header {
        width: calc(100% - 16px);
        margin: 8px auto 0;
        top: 8px;
        border-radius: 18px;
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }

    .top-nav-extra {
        width: 100%;
        justify-content: flex-end;
    }

    .top-nav a {
        flex: 0 0 auto;
        padding: 9px 12px;
    }

    .apli-nav-badge {
        min-width: 56px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .top-nav a.nav-apli-link {
        padding: 7px 10px;
    }

    .top-nav a.nav-apli-link img {
        width: 56px;
    }

    .top-nav a.is-active {
        box-shadow: 0 8px 16px rgba(19, 31, 50, 0.25);
    }

    .premium-offer-strip {
        width: calc(100% - 16px);
        margin-top: 12px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .premium-offer-chip {
        font-size: 0.82rem;
        padding: 9px 12px;
    }

    .search-input-wrap {
        grid-template-columns: 1fr;
    }

    .floating-social {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        gap: 7px;
    }

    .floating-social-btn {
        width: 34px;
        height: 34px;
    }

    .floating-social-btn::before {
        font-size: 14px;
    }

    .floating-social-btn::after {
        display: none;
    }

    .search-input-wrap button {
        min-height: 46px;
    }

    main {
        width: calc(100% - 16px);
        margin-top: 22px;
    }

    .hero {
        gap: 16px;
        margin-top: 16px;
    }

    .hero-signature-line {
        align-items: flex-start;
        gap: 8px 10px;
    }

    .hero-welcome-premium {
        margin-left: 1rem;
        font-size: clamp(0.74rem, 2.6vw, 0.9rem);
        letter-spacing: 0.058em;
    }

    .hero-copy h1 {
        font-size: clamp(1.7rem, 9vw, 2.4rem);
    }

    .search-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .listing-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .listing-contact-cta {
        gap: 7px;
    }

    .listing-lightbox {
        grid-template-columns: 1fr;
        justify-items: center;
        align-content: center;
        gap: 12px;
        padding: calc(14px + env(safe-area-inset-top)) 10px calc(14px + env(safe-area-inset-bottom));
    }

    .listing-lightbox-figure img {
        max-width: 100%;
        max-height: calc(100vh - 140px);
        border-radius: 10px;
    }

    .listing-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .listing-lightbox-nav-prev {
        left: max(8px, env(safe-area-inset-left));
    }

    .listing-lightbox-nav-next {
        right: max(8px, env(safe-area-inset-right));
    }

    .listing-grid.is-compact .listing-card {
        grid-template-columns: 1fr;
    }

    .listing-grid.is-compact .media {
        min-height: 180px;
    }

    .search-tools-row {
        align-items: stretch;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results-head {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-modal-panel {
        max-height: calc(100vh - 28px);
        overflow-y: auto;
    }

    #panier {
        scroll-margin-top: 92px;
    }

    .cart-panel {
        background: #ffffff;
        border: 1px solid rgba(214, 224, 236, 0.95);
        box-shadow: 0 12px 28px rgba(24, 37, 56, 0.1);
    }

    .cart-panel .results-head {
        gap: 10px;
    }

    .cart-summary {
        width: 100%;
        justify-content: center;
    }

    .cart-panel .admin-item {
        border-radius: 14px;
        background: #fff;
    }

    .cart-top-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cart-continue-link {
        text-align: center;
    }

    .cart-checkout-form {
        padding: 10px;
        background: #f9fbff;
    }

    .cart-checkout-form input[readonly] {
        font-weight: 700;
        color: #1d2f46;
        background: #fff;
    }

    .cart-checkout-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cart-checkout-actions .btn-primary,
    .cart-checkout-actions .admin-logout {
        width: 100%;
    }

    .results-wrap,
    .reviews-wrap,
    .story-wrap {
        margin-top: 22px;
    }

    .review-card,
    .trust-wrap,
    .review-form-wrap,
    .story-content {
        padding: 14px;
    }

    .media {
        height: 195px;
    }

    .pagination {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: clamp(1.45rem, 8vw, 1.9rem);
    }

    .hero-copy h1 {
        font-size: clamp(1.55rem, 8.8vw, 2.05rem);
    }

    .subtitle {
        font-size: 0.92rem;
    }

    .hero-welcome-premium {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
        margin-left: 0.55rem;
    }

    .listing-contact-cta .auth-link {
        width: 100%;
        justify-content: center;
    }

    .chip {
        padding: 8px 12px;
        font-size: 0.86rem;
    }

    .media {
        height: 182px;
    }

    .content {
        padding: 12px;
    }

    .content h3 {
        font-size: 0.96rem;
    }

    .content p {
        font-size: 0.86rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) and (pointer: coarse) {
    html {
        scroll-behavior: auto;
    }

    body::before,
    body::after,
    .noise-layer {
        display: none;
    }

    .glass,
    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .site-header,
    .site-header.is-scrolled {
        transform: none;
    }

    .premium-offer-track,
    .premium-offer-shine {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-header,
    .reveal,
    .listing-card,
    main > section::before {
        transition: none !important;
        animation: none !important;
    }

    .reveal,
    .listing-card,
    .cinematic-enabled .hero .hero-copy,
    .cinematic-enabled .hero .search-panel {
        opacity: 1 !important;
        transform: none !important;
    }
}
