/* ── RESET & VARIABLES ──────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #1a1a1a;
    --mid:   #666666;
    --light: #999999;
    --line:  #e8e8e8;
    --bg:    #f7f7f7;
    --white: #ffffff;
}

/* ── BASE (Mobile XS: 0 – 479px) ─────────────────────────────────────── */

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    overflow: hidden;
}

/* ── HEADER ──────────────────────────────────────────────────────────── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 50px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    z-index: 200;
    animation: fadeDown .5s ease forwards;
}

.logo {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -.5px;
    color: var(--black);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.logo sup {
    font-size: 10px;
    font-weight: 300;
    vertical-align: super;
}

nav {
    display: none;
}

.lang {
    display: none;
}

.header-reservations {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
}

/* ── MOBILE BAR ──────────────────────────────────────────────────────── */
.mobile-bar {
    display: flex;
    align-items: center;
    gap: clamp(6px, 2vw, 8px);
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    flex-shrink: 0;
}

.mobile-tab {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #D0D0D0;
    border-radius: 20px;
    background: var(--white);
    font-family: inherit;
    font-size: 12px;
    color: var(--black);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.mobile-tab.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.mobile-filter-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--black);
    line-height: 0;
    position: relative;
}

.mobile-filter-badge {
    display: none;
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #F5A623;
    border-radius: 50%;
}

.mobile-filter-badge.visible {
    display: block;
}

/* ── OVERLAY ──────────────────────────────────────────────────────────── */
.drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 490;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.drawer-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ── LAYOUT ───────────────────────────────────────────────────────────── */

/*
 * XS: header 50px + mobile-bar 47px = 97px
 * .layout ocupa el espacio restante; .content scrollea dentro.
 */
.layout {
    height: calc(100vh - 97px);
    height: calc(100dvh - 97px);
    overflow: hidden;
}

/* ── SIDEBAR (base: bottom sheet) ─────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: unset;
    height: 92vh;
    height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-right: none;
    padding: 0 0 88px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    z-index: 500;
    background: var(--white);
    box-shadow: 0 -4px 30px rgba(0,0,0,.12);
    transform: translateY(110%);
    transition: transform .38s cubic-bezier(.32,.72,0,1);
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar.drawer-open {
    transform: translateY(0);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.drawer-close-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black);
    line-height: 0;
    padding: 4px;
}

.sidebar-clear {
    margin-bottom: 4px;
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--line);
}

.clear-filters-btn {
    width: 100%;
    padding: 9px 0;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: none;
    color: var(--mid);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.clear-filters-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

/* Filter block */
.filter-block {
    margin-bottom: 0;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    animation: slideIn .45s ease forwards;
}

.filter-block:nth-child(2)  { animation-delay: .04s; }
.filter-block:nth-child(3)  { animation-delay: .08s; }
.filter-block:nth-child(4)  { animation-delay: .12s; }
.filter-block:nth-child(5)  { animation-delay: .16s; }
.filter-block:nth-child(6)  { animation-delay: .20s; }
.filter-block:nth-child(7)  { animation-delay: .24s; }
.filter-block:nth-child(8)  { animation-delay: .28s; }
.filter-block:nth-child(9)  { animation-delay: .32s; }
.filter-block:last-child    { border-bottom: none; animation-delay: .36s; }

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: .02em;
    margin-bottom: 10px;
}

/* Radio / Checkbox rows */
.filter-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    cursor: pointer;
    user-select: none;
}

.filter-row:last-of-type {
    margin-bottom: 0;
}

.city-hidden {
    display: none;
}

.filter-row input {
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1.5px solid #bbb;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color .2s, background .2s;
}

.filter-row input[type="checkbox"] {
    border-radius: 3px;
}

.filter-row input:checked {
    border-color: var(--black);
    background: var(--black);
}

.filter-row input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--white);
    border-radius: 50%;
}

.filter-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 3.5px;
    width: 4px;
    height: 7px;
    border: 1.5px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(42deg);
}

.filter-row span {
    font-size: 13px;
    color: var(--black);
    transition: color .15s;
    cursor: pointer;
}

.filter-row:hover span {
    color: var(--mid);
}

.see-more-btn {
    font-size: 11px;
    color: var(--mid);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 7px;
    display: inline-block;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color .2s;
}

.see-more-btn:hover {
    color: var(--black);
}

.cities-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .3s ease;
    opacity: 0;
}

.cities-extra.open {
    max-height: 120px;
    opacity: 1;
}

/* Number pill buttons */
.pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: var(--white);
    font-family: inherit;
    font-size: 12px;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s, color .2s, transform .15s;
}

.pill:hover {
    border-color: var(--black);
}

.pill.on {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
    transform: scale(1.05);
}

/* Price slider */
.price-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.price-filter-label {
    margin: 0;
}

.reset-btn {
    font-size: 11px;
    color: var(--mid);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color .2s;
}

.reset-btn:hover {
    color: var(--black);
}

.slider-wrap {
    position: relative;
    height: 18px;
    margin-bottom: 6px;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: var(--line);
    border-radius: 1px;
}

.slider-fill {
    position: absolute;
    height: 2px;
    top: 0;
    background: var(--black);
    border-radius: 1px;
    transition: left .05s, width .05s;
}

input[type=range].rng {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

input[type=range].rng::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--black);
    cursor: pointer;
    pointer-events: all;
    transition: transform .15s;
}

input[type=range].rng::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

input[type=range].rng::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--black);
    border: none;
    cursor: pointer;
    pointer-events: all;
}

.price-vals {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--mid);
    margin-top: 4px;
}

/* ── DRAWER FOOTER (mobile) ───────────────────────────────────────────── */
.drawer-footer {
    display: flex;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px 28px;
    background: var(--white);
    border-top: 1px solid var(--line);
    z-index: 501;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.drawer-footer.visible {
    opacity: 1;
    pointer-events: all;
}

.drawer-cancel-btn,
.drawer-search-btn {
    flex: 1;
    height: 52px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.drawer-cancel-btn {
    background: var(--white);
    color: var(--black);
    border: 1.5px solid var(--black);
}

.drawer-cancel-btn:hover {
    background: #f5f5f5;
}

.drawer-search-btn {
    background: var(--black);
    color: var(--white);
    border: none;
}

.drawer-search-btn:hover {
    background: #333;
}

/* ── CONTENT ─────────────────────────────────────────────────────────── */
.content {
    margin-left: 0;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 16px) 40px;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeIn .5s .1s ease forwards;
    position: relative;
    z-index: 100;
}

.results-count {
    font-size: 13px;
    color: var(--black);
}

/* Sort dropdown */
.sort-wrap {
    position: relative;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--black);
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity .2s;
}

.sort-trigger:hover {
    opacity: .6;
}

.sort-icon {
    flex-shrink: 0;
}

.sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--white);
    border: 1px solid var(--line);
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    z-index: 100;
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
    pointer-events: none;
}

.sort-menu.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: all;
}

.sort-option {
    padding: 10px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}

.sort-option:hover {
    background: var(--bg);
}

.sort-option.active {
    font-weight: 600;
}

/* ── CARDS ───────────────────────────────────────────────────────────── */
.cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    isolation: isolate;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    animation: cardIn .4s ease forwards;
    transition: box-shadow .22s ease, transform .22s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,.10);
    transform: translateY(-2px);
    z-index: 2;
}

.card-image {
    width: 100%;
    min-width: unset;
    height: auto;
    border-radius: 0;
    margin-right: 0;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #c8d0cc;
    aspect-ratio: 16 / 9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apt-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 14px;
}

.card-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.location-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-text {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    line-height: 1;
}

.link-icon {
    color: #C8C8C8;
    line-height: 0;
    cursor: pointer;
    transition: color .2s;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid #E4E4E4;
    background: #FAFAFA;
}

.link-icon:hover {
    color: #666;
}

.card-title {
    font-size: 17px;
    font-weight: 400;
    color: #000000;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -.4px;
}

.card-specs {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666666;
    line-height: 1;
}

.spec-icon {
    line-height: 0;
    flex-shrink: 0;
}

.card-bottom-wrapper {
    margin: 0;
    background: #EFF8F9;
    border-radius: 8px;
    padding: 13px;
}

.card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.price-label {
    font-size: 11px;
    color: #4D4D4D;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 1;
}

.price-value {
    font-size: 21px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -.8px;
    line-height: 1;
}

.learn-more-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .18s ease;
    white-space: nowrap;
    align-self: center;
}

.learn-more-btn:hover {
    background: #1e1e1e;
}

/* Empty state */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--mid);
    font-size: 14px;
    opacity: 0;
    animation: fadeIn .4s .2s ease forwards;
}

.empty-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

/* Active filter tags */
.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    min-height: 0;
    transition: all .3s;
}

.tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 11px;
    color: var(--black);
    background: var(--white);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    animation: fadeIn .2s ease;
}

.tag:hover {
    background: var(--bg);
    border-color: #bbb;
}

.tag-remove {
    font-size: 13px;
    line-height: 1;
    margin-left: 2px;
    color: var(--mid);
}

/* ── KEYFRAMES ──────────────────────────────────────────────────────── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════
   SM — Mobile estándar: min-width 480px
══════════════════════════════════════════════════════════════════════ */
@media (min-width: 480px) {
    header {
        height: 52px;
        padding: 0 20px;
    }

    .mobile-bar {
        padding: 10px 20px;
    }

    /* SM: header 52px + mobile-bar 51px = 103px */
    .layout {
        height: calc(100vh - 103px);
        height: calc(100dvh - 103px);
    }

    .content {
        padding: 16px 16px 48px;
    }

    .cards {
        gap: 14px;
    }

    .card-content {
        padding: 14px 16px 0;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .card-specs {
        gap: 20px;
        margin-bottom: 14px;
    }

    .spec {
        font-size: 14px;
    }

    .card-bottom-wrapper {
        margin: 0;
        padding: 16px;
    }

    .price-value {
        font-size: 26px;
    }

    .price-label {
        font-size: 13px;
    }

    .learn-more-btn {
        padding: 13px 22px;
        font-size: 12px;
    }

    .location-text {
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   MD — Tablet portrait: min-width 768px
   Sidebar: panel lateral izquierdo (drawer)
══════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    header {
        height: 56px;
        padding: 0 24px;
    }

    .mobile-bar {
        padding: 10px 24px;
    }

    /* MD: header 56px + mobile-bar 51px = 107px */
    .layout {
        height: calc(100vh - 107px);
        height: calc(100dvh - 107px);
    }

    /* Sidebar → left panel drawer */
    .sidebar {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 320px;
        min-width: 320px;
        height: 100vh;
        height: 100dvh;
        border-radius: 0 16px 16px 0;
        border-right: 1px solid var(--line);
        box-shadow: 4px 0 32px rgba(0,0,0,.12);
        transform: translateX(-110%);
        transition: transform .35s cubic-bezier(.32,.72,0,1);
        padding: 0 0 88px;
    }

    .sidebar.drawer-open {
        transform: translateX(0);
    }

    .sidebar-clear {
        padding: 0 24px 16px;
    }

    .drawer-footer {
        width: 320px;
        padding: 16px 20px 24px;
    }

    .drawer-cancel-btn,
    .drawer-search-btn {
        height: 48px;
        font-size: 14px;
    }

    .content {
        padding: 20px 24px 48px;
    }

    .results-bar {
        margin-bottom: 16px;
    }

    .cards {
        gap: 14px;
    }

    .card {
        flex-direction: row;
        padding: 16px;
        overflow: visible;
        border-radius: 12px;
    }

    .card-image {
        width: 240px;
        min-width: 240px;
        border-radius: 12px;
        margin-right: 16px;
    }

    .card-content {
        padding: 0;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .card-specs {
        gap: 18px;
        margin-bottom: 14px;
    }

    .spec {
        font-size: 13px;
    }

    .card-bottom-wrapper {
        margin: 0;
        padding: 14px;
    }

    .price-value {
        font-size: 22px;
    }

    .learn-more-btn {
        padding: 11px 18px;
        font-size: 11px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   LG — Tablet landscape: min-width 1024px
   Sidebar: fixed (no drawer)
══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    html {
        height: 100%;
        overflow: hidden;
    }

    body {
        height: 100%;
        overflow: hidden;
    }

    header {
        height: 60px;
        padding: 0 28px;
        position: sticky;
        top: 0;
    }

    nav {
        display: flex;
        gap: 18px;
        align-items: center;
    }

    nav a {
        text-decoration: none;
        color: var(--black);
        font-size: 12px;
        transition: opacity .2s;
    }

    nav a:hover {
        opacity: .5;
    }

    .lang {
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--black);
        cursor: pointer;
    }

    .header-reservations {
        display: none;
    }

    .mobile-bar {
        display: none;
    }

    .drawer-overlay {
        display: none;
    }

    .drawer-footer {
        display: none;
    }

    .drawer-close-btn {
        display: none;
    }

    /* LG+: solo header 60px */
    .layout {
        height: calc(100vh - 60px);
        overflow: hidden;
    }

    /* Sidebar: fixed, no drawer */
    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        right: auto;
        bottom: auto;
        width: 240px;
        min-width: 240px;
        height: calc(100vh - 60px);
        border-radius: 0;
        border-right: 1px solid var(--line);
        padding: clamp(18px, 3vh, 22px) 20px 40px;
        box-shadow: none;
        transform: none !important;
        transition: none;
    }

    .sidebar-heading {
        font-size: 12px;
        font-weight: 500;
        color: var(--black);
        letter-spacing: .04em;
        text-transform: uppercase;
        border-bottom: none;
        padding: 0;
        margin-bottom: 20px;
        position: static;
        background: none;
        justify-content: flex-start;
    }

    .sidebar-clear {
        padding: 0 0 16px;
        border-bottom: 1px solid var(--line);
    }

    .filter-block {
        padding: clamp(10px, 2vh, 14px) 0;
    }

    .content {
        margin-left: 240px;
        height: 100%;
        overflow-y: auto;
        padding: clamp(18px, 3vh, 20px) 28px 48px;
    }

    .card {
        padding: 20px;
    }

    .card-image {
        width: 300px;
        min-width: 300px;
    }

    .card-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .card-specs {
        gap: 22px;
        margin-bottom: 18px;
    }

    .spec {
        font-size: 14px;
    }

    .card-bottom-wrapper {
        padding: 18px;
    }

    .price-value {
        font-size: 26px;
    }

    .learn-more-btn {
        padding: 12px 22px;
        font-size: 12px;
    }

    /* carousel arrows: only visible on card hover */
    .carousel-arrow {
        opacity: 0;
    }

    .card:hover .carousel-arrow {
        opacity: 1;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   Desktop: min-width 1280px
══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    header {
        padding: 0 40px;
    }

    nav {
        gap: 28px;
    }

    nav a {
        font-size: 13px;
    }

    .sidebar {
        width: 280px;
        min-width: 280px;
        padding: clamp(20px, 4vh, 28px) 28px 48px;
    }

    .content {
        margin-left: 280px;
        padding: clamp(20px, 3vh, 24px) 36px 48px;
    }

    .card {
        padding: 24px;
    }

    .card-image {
        width: 400px;
        min-width: 400px;
        margin-right: 24px;
    }

    .card-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .card-specs {
        gap: 32px;
        margin-bottom: 24px;
    }

    .spec {
        font-size: 16px;
    }

    .card-bottom-wrapper {
        padding: 22px;
    }

    .price-value {
        font-size: 32px;
    }

    .learn-more-btn {
        padding: 16px 32px;
        font-size: 13px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   CAROUSEL
   .card-image already provides: position:relative; overflow:hidden
══════════════════════════════════════════════════════════════════════ */
.carousel {
    position: absolute;
    inset: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s, opacity .2s;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,.65);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* ── INFINITE SCROLL LOADER ──────────────────────────────────────────── */
.infinite-load {
    display: none;
    justify-content: center;
    padding: 24px 0;
}

.infinite-load__spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-top-color: #555555;
    border-radius: 50%;
    animation: infinite-spin 0.8s linear infinite;
}

@keyframes infinite-spin {
    to { transform: rotate(360deg); }
}
