/* Villa Novak - Custom Styles */

/*
 * Inter (variable 400-700), self-hosted from Google Fonts v20. Declared here
 * rather than in a vendor stylesheet so the font is discovered as soon as this
 * file is parsed, without an extra request in between. Only two subsets ship:
 * latin covers en/de, latin-ext the Croatian č/ć/š/ž/đ.
 * Refresh the files with tools/fetch-vendor.sh.
 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/vendor/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/vendor/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --vn-primary: #2c6fbb;
    --vn-primary-hover: #235a99;
    --vn-dark: #1a2332;
    --vn-light: #f8f9fa;
}

/*
 * Bootstrap's own blue (#0d6efd) only reaches 4.3:1 as text on .bg-light, so
 * outline buttons and links failed the contrast check. The brand blue clears
 * 4.5:1 on both white and .bg-light, so it replaces Bootstrap's everywhere the
 * "primary" colour is used rather than only in the few hand-written rules.
 */
:root {
    --bs-primary: var(--vn-primary);
    --bs-primary-rgb: 44, 111, 187;
    --bs-link-color: var(--vn-primary);
    --bs-link-color-rgb: 44, 111, 187;
    --bs-link-hover-color: var(--vn-primary-hover);
    --bs-link-hover-color-rgb: 35, 90, 153;
}

.btn-primary {
    --bs-btn-bg: var(--vn-primary);
    --bs-btn-border-color: var(--vn-primary);
    --bs-btn-hover-bg: var(--vn-primary-hover);
    --bs-btn-hover-border-color: var(--vn-primary-hover);
    --bs-btn-active-bg: var(--vn-primary-hover);
    --bs-btn-active-border-color: var(--vn-primary-hover);
    --bs-btn-disabled-bg: var(--vn-primary);
    --bs-btn-disabled-border-color: var(--vn-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--vn-primary);
    --bs-btn-border-color: var(--vn-primary);
    --bs-btn-hover-bg: var(--vn-primary);
    --bs-btn-hover-border-color: var(--vn-primary);
    --bs-btn-active-bg: var(--vn-primary-hover);
    --bs-btn-active-border-color: var(--vn-primary-hover);
    --bs-btn-disabled-color: var(--vn-primary);
    --bs-btn-disabled-border-color: var(--vn-primary);
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    padding-top: 56px;
}

/* Navbar */
.navbar {
    background-color: var(--vn-dark) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-color: var(--vn-dark);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-section .container {
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-section .lead {
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Apartment Cards */
.apartment-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.apartment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

.card-img-wrapper {
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.apartment-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-footer {
    border-radius: 0 0 12px 12px !important;
}

/* Feature icons on home page */
.feature-icon i {
    opacity: 0.85;
}

/* Gallery */
.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item {
    transition: opacity 0.3s, transform 0.3s;
}

.gallery-item.hidden {
    display: none;
}

/* Lightbox */
#lightboxModal .modal-body img {
    max-height: 80vh;
    object-fit: contain;
}

/* Section spacing */
section {
    overflow: hidden;
}

/* Cards general */
.card {
    border-radius: 12px;
}

/* Form styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--vn-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 111, 187, 0.2);
}

/* Pricing badge */
.pricing .fs-5 {
    color: var(--vn-primary);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Map */
.map-container {
    border-radius: 12px;
}

/* Footer */
footer a:hover {
    color: #fff !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 40vh;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .card-img-wrapper {
        height: 200px;
    }

    .btn-group.flex-wrap .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 35vh;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Alert improvements */
.alert {
    border-radius: 8px;
}

/* Table improvements */
.table th {
    font-weight: 600;
}
