/* Rimal CRM — public website theme.
   Deliberately separate from assets/css/styles.css (the admin Modernize
   theme) — this is a small, self-contained stylesheet, not a full
   framework, per the public-site scope. */

:root {
    --rimal-primary: #0d6efd;
    --rimal-dark: #1a2942;
    --rimal-muted: #6c757d;
}

body.public-site {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #212529;
    background-color: #f8f9fa;
}

/* Navbar */
.public-navbar {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.public-navbar .navbar-brand img {
    height: 36px;
}

.public-navbar .nav-link.active {
    font-weight: 600;
    color: var(--rimal-primary) !important;
}

/* Hero */
.public-hero {
    background: linear-gradient(135deg, var(--rimal-dark), #26456f);
    color: #fff;
    padding: 4rem 0 6rem;
}

.public-hero h1 {
    font-weight: 700;
}

.public-search-card {
    margin-top: -3.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Property cards */
.property-card {
    border: 1px solid #eceef1;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
    height: 100%;
}

.property-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.property-card-image {
    aspect-ratio: 4 / 3;
    background-color: #e9ecef;
    object-fit: cover;
    width: 100%;
    display: block;
}

.property-card-price {
    font-weight: 700;
    color: var(--rimal-primary);
}

.property-badge-purpose {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
}

.property-card-media-wrap {
    position: relative;
}

/* Detail gallery */
.property-gallery-main img,
.property-gallery-main video {
    width: 100%;
    border-radius: 0.5rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background-color: #e9ecef;
}

.property-gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.35rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.property-gallery-thumb img.active {
    border-color: var(--rimal-primary);
}

/* Agent contact card */
.agent-card {
    border-radius: 0.6rem;
    position: sticky;
    top: 1rem;
}

/* Footer */
.public-footer {
    background-color: var(--rimal-dark);
    color: #cfd8e3;
    padding: 3rem 0 1.5rem;
}

.public-footer a {
    color: #cfd8e3;
}

.public-footer a:hover {
    color: #fff;
}

/* Empty state */
.public-empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--rimal-muted);
}

/* Skip link */
.skip-link {
    position: absolute;
    inset-inline-start: -999px;
    top: 0;
    z-index: 2000;
    background: #fff;
    padding: 0.5rem 1rem;
}

.skip-link:focus {
    inset-inline-start: 0.5rem;
    top: 0.5rem;
}
