﻿*, *::before, *::after {
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    height: auto;
    background: #121210;
}
body {
    margin: 0;
        padding: 0;
        width: 100%;
        min-height: 100vh;
        position: relative;
        overflow-x: hidden;

        background-color: #121210;
        background-image:
            radial-gradient(circle at center, rgba(45, 42, 35, 0.35) 0%, transparent 75%),
            url('assets/asfalt-dark.png');
        background-size: 100% 100%;

        color: #a09d94;
        font-family: 'IBM Plex Mono', 'Courier New', monospace;
        cursor: none;

}

#custom-cursor {
    width: 6px; height: 6px;
    background: rgba(160, 157, 148, 0.5);
    position: fixed; border-radius: 50%;
    pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.1s linear;
    will-change: left, top;
}

.cursor-hover {
    opacity: 0.2;
}

h1 {
    font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
    font-weight: 200;
    font-size: 14px;
    letter-spacing: 0.65em;
    color: #dcdcdc;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 3s ease;
    display: block;
    width: 100%;
    text-align: center;
		pointer-events: none;
    user-select: none;
    margin: 0 !important;
}

::-webkit-scrollbar {
    width: 4px;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(140, 126, 101, 0.2);
    border-radius: 2px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 126, 101, 0.2) transparent;
}
/* ─────────────────────────────────────────────────────────
   THREE-SCREEN SCROLL LAYOUT
───────────────────────────────────────────────────────── */
#screen-brand {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#screen-list {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 60px;
    border-top: 1px solid #191917;
}

#object-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
}

.list-group {
    display: flex;
    flex-direction: column;
}

.list-group.has-gap {
    margin-top: 26px;
}

.list-category {
    font-size: 7px;
    letter-spacing: 0.5em;
    color: #2a2825;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 2px;
    pointer-events: none;
    user-select: none;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    border-bottom: 1px solid #161614;
}

.list-item:hover .item-code {
    color: #8a8680;
}

.item-code {
    font-size: 9px;
    letter-spacing: 0.28em;
    color: #4a4640;
    transition: none;
}

.item-state {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    flex-shrink: 0;
}

.item-state.is-available { background: #4a453a; }
.item-state.is-sold      { background: #222019; }

.card-state-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}
.card-state-dot.is-available { background: #8c897f; }
.card-state-dot.is-sold      { background: #3a3730; }

/* ─────────────────────────────────────────────────────────
   OBJECT CARD OVERLAY
───────────────────────────────────────────────────────── */
#object-card {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s linear, visibility 0.18s linear;
    background: #0e0e0c;
}

#object-card.is-open {
    opacity: 1;
    visibility: visible;
}

#card-img {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #141412;
    background-size: cover;
    background-position: center;
}

#card-img.no-img::after {
    content: attr(data-code);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    letter-spacing: 0.5em;
    color: rgba(74, 70, 64, 0.25);
    pointer-events: none;
    white-space: nowrap;
}

#card-fields {
    padding: 100px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    border-left: 1px solid #191917;
}

.card-row {
    display: flex;
    align-items: baseline;
    border-bottom: none;
    padding: 16px 0;
}

.card-row label {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 115px;
    font-size: 7px;
    letter-spacing: 0.45em;
    color: #2e2c28;
    margin-right: 30px;
}

.card-row span {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #7a7870;
    line-height: 1.8;
}

.card-notes {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #1c1b18;
    font-size: 9px;
    letter-spacing: 0.06em;
    color: #5a5650;
    line-height: 2.4;
}

#card-close {
    position: fixed;
    top: 32px;
    right: 40px;
    font-size: 8px;
    letter-spacing: 0.4em;
    color: #3a3730;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.1s linear;
    user-select: none;
}

#card-close:hover { color: #a09d94; }

/* ─────────────────────────────────────────────────────────
   SCREEN 3: CONTACT
───────────────────────────────────────────────────────── */
#contact-layer {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #191917;
    position: relative;
}

#copyright {
    position: absolute;
    bottom: 40px;
    font-size: 7px;
    letter-spacing: 0.4em;
    color: #2a2825;
    user-select: none;
}

#contact-email {
    font-size: 9px;
    letter-spacing: 0.5em;
    color: #3a3730;
    text-decoration: none;
    transition: color 0.1s linear;
    user-select: none;
}

#contact-email:hover { color: #7a7870; }

/* ─────────────────────────────────────────────────────────
   SOLD STATE DIMMING
───────────────────────────────────────────────────────── */
.list-item.is-sold-item .item-code {
    color: #26231f;
}

/* ─────────────────────────────────────────────────────────
   CARD NAVIGATION — PREV / NEXT
───────────────────────────────────────────────────────── */
#card-prev,
#card-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    letter-spacing: 0.4em;
    color: #4a453a;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.1s linear;
    user-select: none;
}
#card-prev { left: 32px; }
#card-next { right: 32px; }
#card-prev:hover,
#card-next:hover { color: #7a7870; }

/* ─────────────────────────────────────────────────────────
   IMAGE FULLSCREEN OVERLAY
───────────────────────────────────────────────────────── */
#card-img { cursor: zoom-in; }

#img-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(9, 9, 8, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s linear, visibility 0.18s linear;
    cursor: zoom-out;
}
#img-fullscreen.is-open {
    opacity: 1;
    visibility: visible;
}
#img-fs-inner {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ─────────────────────────────────────────────────────────
   MOBILE ( ≤ 768px )
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #custom-cursor { display: none !important; }
    body { cursor: auto !important; }

    #screen-list {
        padding: 60px 32px;
    }
    #object-list {
        max-width: 100%;
    }

    #object-card {
        grid-template-columns: 1fr;
        grid-template-rows: 42vh 1fr;
    }
    #card-img {
        height: 42vh;
        cursor: zoom-in;
    }
    #card-fields {
        padding: 40px 28px 80px;
        overflow-y: auto;
    }
    #card-close {
        top: auto;
        bottom: 28px;
        right: 24px;
    }
    #card-prev { left: 16px; top: 21vh; }
    #card-next { right: 16px; top: 21vh; }

    .card-row label {
        min-width: 72px;
        margin-right: 16px;
    }
}