/* ============================================================
   Monteo public pages
   Files: landing.php, nekretnine.php, nekretnina.php
   ============================================================ */

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --green-600: #16a34a;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
}

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 56px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.08));
    color: #ffffff;
}

.site-header.solid {
    position: sticky;
    background: rgba(255, 255, 255, 0.96);
    color: var(--slate-900);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.brand img {
    height: 52px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 13px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.site-header:not(.solid) .site-nav a {
    color: #ffffff;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(37, 99, 235, 0.14);
    color: var(--blue-600);
}

.site-header:not(.solid) .site-nav a:hover,
.site-header:not(.solid) .site-nav a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Landing */

.landing-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-carousel,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.48), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 130px 0 70px;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 42px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-copy h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 560px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.75;
}

.search-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-card-header h2 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.search-card-header p {
    margin: 0 0 22px;
    color: var(--slate-500);
    line-height: 1.6;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group.wide {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 900;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--slate-900);
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.primary-search-button,
.filter-button {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
    transition: 0.2s ease;
}

.primary-search-button:hover,
.filter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.44);
}

/* Featured and cards */

.featured-section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading span {
    display: block;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--blue-600);
    font-weight: 900;
    text-decoration: none;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.property-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.11);
    transition: 0.22s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.20);
}

.property-image {
    position: relative;
    min-height: 230px;
    background-size: cover;
    background-position: center;
}

.sponsor-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.property-content {
    padding: 20px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.property-meta span {
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 900;
}

.property-meta.big span {
    font-size: 13px;
}

.property-content h3 {
    margin: 0 0 9px;
    font-size: 20px;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.property-content p {
    margin: 0;
    color: var(--slate-500);
}

.property-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.property-details-row span {
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 800;
}

.property-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.property-bottom strong {
    color: var(--blue-700);
    font-size: 20px;
}

.property-bottom span {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

/* Results */

.listing-page-body,
.detail-page-body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 30%),
        #f8fafc;
}

.listings-layout {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 24px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 106px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
}

.filter-panel h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.filter-panel p {
    margin: 0 0 22px;
    color: var(--slate-500);
    line-height: 1.6;
}

.filter-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.reset-filter {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    color: var(--blue-600);
    font-weight: 900;
    text-decoration: none;
}

.results-panel {
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.results-header span {
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.results-header h2 {
    margin: 7px 0 0;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pagination a {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    color: var(--slate-700);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.pagination a.active {
    background: var(--blue-600);
    color: #ffffff;
}

.empty-state {
    padding: 40px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 26px;
}

.empty-state p {
    margin: 0;
    color: var(--slate-500);
}

/* Detail */

.detail-layout {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 70px;
}

.detail-hero {
    display: grid;
    gap: 14px;
}

.detail-main-image {
    min-height: 560px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.photo-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.photo-strip img {
    width: 180px;
    height: 110px;
    border-radius: 16px;
    object-fit: cover;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    margin-top: 26px;
}

.detail-main,
.contact-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
}

.breadcrumb {
    display: flex;
    gap: 9px;
    color: var(--slate-500);
    font-size: 14px;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--blue-600);
    font-weight: 900;
    text-decoration: none;
}

.title-row {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}

.title-row h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.location-line {
    color: var(--slate-500);
    font-size: 16px;
    line-height: 1.6;
}

.detail-price {
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--blue-50);
    color: var(--blue-700);
    font-size: 28px;
    white-space: nowrap;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.quick-stats div {
    padding: 18px;
    border-radius: 18px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.quick-stats span {
    display: block;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.quick-stats strong {
    font-size: 20px;
}

.detail-section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--slate-200);
}

.detail-section h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-section p {
    color: var(--slate-600);
    line-height: 1.8;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pill {
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 900;
}

.details-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    overflow: hidden;
}

.details-table div {
    padding: 14px;
    border-bottom: 1px solid var(--slate-200);
    background: #ffffff;
}

.details-table div:nth-child(odd) {
    border-right: 1px solid var(--slate-200);
}

.details-table span {
    display: block;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.details-table strong {
    font-size: 14px;
}

.map-placeholder {
    padding: 24px;
    border-radius: 18px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.map-placeholder a {
    color: var(--blue-600);
    font-weight: 900;
    text-decoration: none;
}

.contact-card {
    position: sticky;
    top: 106px;
}

.contact-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.agent-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: var(--slate-50);
    margin-bottom: 16px;
}

.agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-600), #60a5fa);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
}

.agent-box strong,
.agent-box span {
    display: block;
}

.agent-box span {
    color: var(--slate-500);
    font-size: 13px;
    margin-top: 4px;
}

.contact-button,
.report-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    margin-top: 10px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #ffffff;
}

.contact-button.whatsapp {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.contact-button.secondary,
.report-link {
    background: var(--blue-50);
    color: var(--blue-700);
    border: 1px solid var(--blue-200);
}

.contact-note,
.muted {
    color: var(--slate-500);
    line-height: 1.7;
}

.not-found {
    width: min(720px, calc(100% - 32px));
    margin: 80px auto;
    padding: 42px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
}

.not-found a {
    color: var(--blue-600);
    font-weight: 900;
}

/* Responsive */

@media (max-width: 1150px) {
    .hero-content,
    .listings-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .contact-card {
        position: static;
    }

    .results-grid,
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        padding-top: 120px;
    }
}

@media (max-width: 720px) {
    .site-header {
        height: auto;
        position: absolute;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-header.solid {
        position: relative;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .brand img {
        height: 44px;
    }

    .hero-content {
        width: min(100% - 24px, 1240px);
        padding-top: 150px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .search-grid,
    .filter-two,
    .quick-stats,
    .details-table,
    .property-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .detail-main-image {
        min-height: 360px;
        border-radius: 22px;
    }

    .title-row {
        flex-direction: column;
    }

    .detail-price {
        width: 100%;
        text-align: center;
    }

    .detail-main,
    .contact-card,
    .search-card,
    .filter-panel,
    .results-header {
        padding: 22px;
        border-radius: 22px;
    }
}
