:root { --brand: #D8232A; --brand-dark: #A8181E; }

html, body { font-family: 'Inter', system-ui, sans-serif; }

.btn-primary {
    background: var(--brand); color: #fff;
    padding: .65rem 1.1rem; border-radius: .6rem;
    font-weight: 600; transition: filter .15s; display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-ghost {
    padding: .55rem .9rem; border-radius: .55rem; font-weight: 500;
    color: #475569; transition: background .15s;
}
.btn-ghost:hover { background: #f1f5f9; }

.input, .select, .textarea {
    width: 100%; padding: .6rem .85rem; border: 1px solid #cbd5e1;
    border-radius: .55rem; background: #fff; transition: border-color .15s, box-shadow .15s;
    font-size: .95rem;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(216,35,42,.18);
}
.label { display: block; font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: .25rem; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; }

.listing-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; overflow: hidden;
    transition: transform .15s, box-shadow .15s; cursor: pointer; display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(15,23,42,.18); }
.listing-card .thumb { aspect-ratio: 4/3; background: #f1f5f9 center/cover no-repeat; position: relative; }

.skeleton { background: linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0;} 100% { background-position: -200% 0;} }

.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px;
    font-size: .72rem; font-weight: 600; background: #fef0f1; color: var(--brand-dark); }

.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center;
    justify-content: center; padding: 1rem; z-index: 50; }
.modal-content { background: #fff; border-radius: .8rem; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; }

.hero-pattern {
    background-image:
        radial-gradient(at 20% 20%, rgba(255,255,255,.18) 0, transparent 40%),
        radial-gradient(at 80% 80%, rgba(0,0,0,.25) 0, transparent 40%);
}

@media (max-width: 768px) {
    .listing-card .thumb { aspect-ratio: 3/2; }
}
