/**
 * Hot Deals listing pages (car, plot, house) — aligns with home.css tokens.
 */
:root {
    --hd-primary: #2563eb;
    --hd-primary-dark: #1d4ed8;
    --hd-surface: #f1f5f9;
    --hd-card: #ffffff;
    --hd-border: #e2e8f0;
    --hd-text: #0f172a;
    --hd-muted: #64748b;
    --hd-radius: 14px;
    --hd-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --hd-shadow-hover: 0 12px 36px rgba(37, 99, 235, 0.12);
}

body.hotdeals-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--hd-surface);
    color: var(--hd-text);
}

body.hotdeals-page h1,
body.hotdeals-page h2,
body.hotdeals-page h3 {
    font-family: 'Raleway', 'Inter', sans-serif;
}

.hotdeals-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #0d9488 100%);
    color: #fff;
    padding: 2.25rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.hotdeals-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(37, 99, 235, 0.35), transparent);
    pointer-events: none;
}

.hotdeals-hero .container {
    position: relative;
    z-index: 1;
}

.hotdeals-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hotdeals-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hotdeals-hero__lead {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
    margin-bottom: 1.25rem;
}

.hotdeals-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hotdeals-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hotdeals-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.hotdeals-nav a.is-active {
    background: #fff;
    color: var(--hd-primary-dark);
    border-color: #fff;
}

.hotdeals-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.hotdeal-card {
    display: flex;
    flex-direction: column;
    background: var(--hd-card);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    overflow: hidden;
    box-shadow: var(--hd-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
}

.hotdeal-card:hover {
    box-shadow: var(--hd-shadow-hover);
    transform: translateY(-2px);
}

.hotdeal-card__media {
    position: relative;
    background: var(--hd-surface);
}

.hotdeal-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotdeal-card .row > .col-md-5 .hotdeal-card__media {
    border-radius: var(--hd-radius) var(--hd-radius) 0 0;
    min-height: 200px;
}

@media (min-width: 768px) {
    .hotdeal-card .row > .col-md-5 .hotdeal-card__media {
        border-radius: var(--hd-radius) 0 0 var(--hd-radius);
        min-height: 100%;
    }
}

.hotdeal-card__body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hotdeal-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.hotdeal-card__title a {
    color: inherit;
    text-decoration: none;
}

.hotdeal-card__title a:hover {
    color: var(--hd-primary);
}

.hotdeal-card__loc {
    font-size: 0.875rem;
    color: var(--hd-muted);
    margin-bottom: 1rem;
}

.hotdeal-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hd-border);
}

.hotdeal-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hotdeal-card__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hotdeal-like {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    color: #e11d48;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0;
    cursor: pointer;
}

.hotdeal-like:focus-visible {
    outline: 2px solid var(--hd-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.hotdeal-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--hd-muted);
    margin-top: 0.75rem;
}

.hotdeal-card__seller {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--hd-text);
    text-decoration: none;
}

.hotdeal-card__seller:hover {
    color: var(--hd-primary);
}

.hotdeal-card__verified {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.hotdeals-sidebar {
    background: var(--hd-card);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow);
    padding: 1.5rem;
    position: sticky;
    top: 5.5rem;
}

.hotdeals-sidebar h3 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hd-muted);
    margin-bottom: 1rem;
}

.hotdeals-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--hd-card);
    border: 1px dashed var(--hd-border);
    border-radius: var(--hd-radius);
    color: var(--hd-muted);
}

.hotdeals-pagination.pagination {
    gap: 0.25rem;
}

.hotdeals-pagination .page-link {
    border: none;
    border-radius: 10px !important;
    color: var(--hd-text);
    font-weight: 500;
    min-width: 2.5rem;
    text-align: center;
}

.hotdeals-pagination .page-item.active .page-link {
    background: var(--hd-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.hotdeals-pagination .page-link:hover {
    background: #eff6ff;
    color: var(--hd-primary);
}

@media (max-width: 991.98px) {
    .hotdeals-sidebar {
        position: static;
    }
}
