:root {
    --gold: #c9a227;
    --gold-dark: #a8841f;
    --gold-soft: rgba(201, 162, 39, 0.16);
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #faf7ef;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
}

* ,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 48px 0;
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.home-hero {
    padding: 48px 0 28px;
    background: linear-gradient(180deg, #fff 0%, #fcfaf5 100%);
    border-bottom: 1px solid #f1ead7;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.08;
}

.hero-content p {
    margin: 0;
    font-size: 18px;
    color: var(--muted);
    max-width: 720px;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

.card,
.opstina-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover,
.opstina-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrap {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f3f4f6;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.card:hover .card-image-wrap img {
    transform: scale(1.04);
}

.card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.card-body p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.button.secondary {
    background: transparent;
    color: var(--gold-dark);
    border-color: var(--gold);
}

.button.secondary:hover {
    background: var(--bg-soft);
}

.featured-section {
    background: linear-gradient(180deg, #fff 0%, #fffdf7 100%);
}

.featured-grid {
    margin-bottom: 10px;
}

.featured-card {
    border: 2px solid var(--gold);
    box-shadow: 0 10px 28px rgba(201, 162, 39, 0.18);
    background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
}

.featured-card .button.secondary {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.featured-card .button.secondary:hover {
    background: rgba(201, 162, 39, 0.08);
}

.opstina-section {
    padding-top: 8px;
}

.opstina-grid {
    margin-top: 6px;
}

.term-card {
    min-height: 140px;
    display: flex;
}

.term-card-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.term-card-body {
    width: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.term-card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text);
}

.term-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.opstina-card:hover .term-card-body h3 {
    color: var(--gold-dark);
}

.listing-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-intro {
    padding: 28px 0 8px;
}

.archive-title {
    margin: 8px 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--gold-dark);
    text-decoration: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafafa;
}

.detail-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    margin: 0 0 14px;
}

.sidebar-contact {
    display: grid;
    gap: 10px;
}

.sidebar-contact-item {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}

.map-wrap iframe {
    width: 100%;
    border: 0;
    border-radius: 14px;
    display: block;
}

.site-header {
    position: relative;
    z-index: 9999;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.branding .custom-logo {
    max-height: 54px;
    width: auto;
    display: block;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-cta {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: #4f6b3b !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 10000;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    order: 99;
}

.header-cta:hover {
    background: #41592f !important;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .grid.grid-4,
    .grid.grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-head h2,
    .archive-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-cta {
        order: 2;
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .grid.grid-4,
    .grid.grid-3,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .term-card-body {
        padding: 18px;
    }

    .section {
        padding: 36px 0;
    }
}
