/* Property cards — global StayVista styling */
.sv-theme .property-card {
    border: 1px solid var(--sv-border, #e8e4df) !important;
    border-radius: 4px;
    box-shadow: none !important;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.sv-theme .property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

.sv-card-media {
    overflow: hidden;
}

.sv-card-gallery {
    position: relative;
    overflow: hidden;
    background: #f3f1ee;
}

.sv-card-gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sv-card-gallery-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.sv-card-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.sv-card-gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

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

.sv-card-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sv-dark, #141414);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.15s;
    cursor: pointer;
}

.sv-card-gallery.has-slider:hover .sv-card-gallery-nav,
.sv-card-gallery.has-slider:focus-within .sv-card-gallery-nav {
    opacity: 1;
}

.sv-card-gallery-nav:hover {
    background: #fff;
}

.sv-card-gallery-prev {
    left: 0.55rem;
}

.sv-card-gallery-next {
    right: 0.55rem;
}

.sv-card-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
}

.sv-card-gallery-dot {
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.sv-card-gallery-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

.sv-card-compare-btn {
    top: auto;
    bottom: 0.55rem;
    left: 0.55rem;
    z-index: 5;
}

.sv-theme .property-card .card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sv-dark, #141414);
}

.sv-theme .property-card .text-primary,
.sv-theme .property-card .fw-bold.text-primary {
    color: var(--sv-dark, #141414) !important;
}

.sv-theme .property-card .sv-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    background: var(--sv-dark, #141414);
    color: #fff;
}

.sv-theme .property-card .sv-card-badge.is-premium {
    background: var(--sv-gold, #c9a96e);
    color: var(--sv-dark, #141414);
}

.sv-theme .property-card .sv-card-badge.is-featured {
    top: 2.35rem;
    background: #9b2c2c;
}

.sv-theme .property-card .save-property-btn {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--sv-border, #e8e4df);
}

.sv-theme .property-card .bi-check2-square {
    color: var(--sv-gold-dark, #a8864d) !important;
}

.sv-theme .sv-dest-results .sv-card-gallery-track {
    aspect-ratio: 4 / 3;
}
