/* Tajne Srbije - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary-blue: #0a192f;
    --gold: #c5a059;
    --gold-light: #e0c28d;
    --cream: #f9f7f2;
    --white: #ffffff;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Cinzel', serif;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navigation */
header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo span {
    color: var(--gold);
}
.header-logo-img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero h1 {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Search Bar */
.search-container {
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
}

.search-container .btn {
    background: var(--primary-blue);
    color: var(--gold);
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    transition: var(--transition);
}

.search-container .btn:hover {
    background: var(--gold);
    color: var(--primary-blue);
}

/* Places Grid */
.section-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-meta i {
    margin-right: 5px;
    color: var(--gold);
}

.btn-more {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-blue);
    color: var(--gold);
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.btn-more:hover {
    background: var(--gold);
    color: var(--primary-blue);
}

/* Detail Page */
.detail-header {
    height: 60vh;
    position: relative;
}

.detail-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-title-box {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 40px 60px;
    box-shadow: var(--shadow);
    text-align: center;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
}

.detail-content {
    margin-top: 100px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 4rem;
}

.info-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.info-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.info-item span {
    font-weight: 500;
    color: var(--primary-blue);
}

/* Admin Specific */
.admin-sidebar {
    background: var(--primary-blue);
    min-height: 100vh;
    color: var(--white);
}

.admin-nav .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 15px 20px;
    border-left: 3px solid transparent;
}

.admin-nav .nav-link.active {
    color: var(--gold);
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--gold);
}

.admin-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    h1, h2, h3, h4, h5, .brand-font, .section-title, .about-title, .place-title, .place-section-title, .sidebar-section-title {
        text-align: center !important;
        overflow-wrap: break-word;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 60px 20px;
    }

    .hero h1 { 
        font-size: 2.2rem; 
        line-height: 1.2;
    }

    .hero p { 
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        padding: 0 10px;
    }

    .search-container {
        max-width: 100%;
        padding: 5px;
        width: 100%;
        margin: 0 auto;
    }

    .search-container input {
        padding: 10px 12px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
    }

    .search-container .btn {
        padding: 10px 12px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .card-content {
        text-align: center;
    }

    .card-meta {
        justify-content: center;
        text-align: center;
    }

    .detail-header {
        height: 35vh;
    }

    .detail-title-box {
        padding: 25px 15px;
        bottom: -40px;
        width: 92%;
    }

    .place-title {
        font-size: 1.8rem;
    }

    .detail-content { 
        grid-template-columns: 1fr; 
        margin-top: 70px;
        gap: 30px;
    }

    .about-section {
        padding: 50px 0;
    }

    .about-container {
        gap: 30px;
        text-align: center;
    }

    .about-col {
        min-width: 100%;
    }
    
    nav ul { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-blue);
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 0.85rem; }
    .search-container { padding: 4px; border-radius: 30px; }
    .search-container .btn {
        padding: 10px 10px;
        font-size: 0.7rem;
    }
    .search-container input {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    .search-container input::placeholder {
        font-size: 0.7rem;
    }
    .detail-title-box {
        padding: 20px 10px;
        width: 95%;
    }
    .place-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .hero { padding: 40px 10px; }
    .search-container .btn { padding: 10px 6px; font-size: 0.65rem; }
}

/* Utilities */
.d-md-none {
    display: block;
}

@media (min-width: 769px) {
    .d-md-none {
        display: none !important;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Utility Classes */
.pt-60 { padding-top: 60px; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-35 { margin-top: 35px; }

/* Filter & Search Bars */
.filter-bar { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); margin-bottom: 40px; }
.filter-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; align-items: end; }
.filter-label { display: block; margin-bottom: 8px; font-weight: 600; }
.filter-select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.filter-actions { display: flex; gap: 10px; }
.btn-filter { width: 100%; border: none; cursor: pointer; }
.btn-reset { background: #eee; color: #333; width: 100%; text-align: center; display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: var(--transition); }
.btn-reset:hover { background: #e0e0e0; }

.map-filter-bar { background: var(--white); padding: 20px; border-radius: 15px; box-shadow: var(--shadow); margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.checkbox-group { display: flex; gap: 15px; }
.checkbox-label { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.custom-checkbox { width: 18px; height: 18px; accent-color: var(--gold); }
.search-wrapper { flex: 1; max-width: 400px; position: relative; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 25px; outline: none; }
.search-icon { position: absolute; right: 15px; top: 13px; color: #aaa; }

/* Placeholders & Empty States */
.empty-image { background: #eee; display: flex; align-items: center; justify-content: center; color: #aaa; }
.empty-results { text-align: center; grid-column: 1/-1; padding: 40px; }
.page-intro-text { text-align: center; max-width: 800px; margin: 0 auto 40px; color: #666; }

/* Place Details Page */
.place-header-bg { background: var(--primary-blue); height: 100%; }
.place-type-badge { color: var(--gold); font-weight: 600; text-transform: uppercase; }
.place-title { font-size: 3rem; margin-top: 10px; }
.place-meta { color: var(--text-muted); margin-top: 10px; }
.place-section-title { margin-bottom: 20px; }
.place-content-text { font-size: 1.1rem; margin-bottom: 40px; }
.place-history-box { font-size: 1.1rem; margin-bottom: 40px; padding: 30px; background: var(--white); border-left: 4px solid var(--gold); border-radius: 5px; }
.place-map-container { background: #eee; border-radius: 15px; overflow: hidden; height: 400px; margin-bottom: 20px; box-shadow: var(--shadow); }
.btn-full-width { width: 100%; text-align: center; display: inline-block; box-sizing: border-box; }
.sidebar-section-title { font-size: 1.5rem; margin-bottom: 25px; border-bottom: 2px solid var(--gold); padding-bottom: 10px; }
.tags-container { margin-top: 5px; }
.tag-badge { background: #eee; color: #555; padding: 4px 10px; border-radius: 15px; font-size: 0.8rem; margin-right: 5px; display: inline-block; margin-bottom: 5px; }
.contact-link { color: var(--gold); font-weight: 600; }

/* Main Map */
.main-map-container { height: 600px; border-radius: 15px; box-shadow: var(--shadow); border: 4px solid var(--white); z-index: 1; position: relative; }

/* Homepage */
.hero-content-inner { z-index: 2; position: relative; }
.delay-2 { animation-delay: 0.2s; }
.delay-4 { animation-delay: 0.4s; }
.search-form { display: flex; width: 100%; }
.mb-60 { margin-bottom: 60px; }
.btn-lg { padding: 15px 40px; font-size: 1.1rem; }
.about-section { background: var(--white); padding: 80px 0; border-top: 1px solid #eee; }
.about-container { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.about-col { flex: 1; min-width: 300px; }
.about-title { font-size: 2.5rem; margin-bottom: 20px; }
.about-text { font-size: 1.1rem; color: #555; margin-bottom: 30px; }
.about-img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

/* Contact Page */
.py-80 { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 60px; align-items: start; }
.contact-intro { margin-bottom: 30px; color: #666; }
.alert-success { background: #d4edda; color: #155724; padding: 20px; border-radius: 10px; margin-bottom: 30px; }
.contact-form-card { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
.btn-submit { width: 100%; border: none; cursor: pointer; font-size: 1.1rem; padding: 15px; }
.contact-info-card { background: var(--primary-blue); color: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }
.contact-info-title { color: var(--gold); margin-bottom: 30px; }
.info-row { margin-bottom: 25px; display: flex; gap: 20px; }
.info-icon { color: var(--gold); font-size: 1.5rem; }
.info-text { color: #ccc; }
.info-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 30px 0; }
.office-hours-title { color: var(--gold); margin-bottom: 15px; }

/* Footer */
.site-footer { background: #0a192f; color: #fff; padding: 60px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-title { color: #c5a059; margin-bottom: 20px; }
.footer-desc { color: #a0a0a0; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ccc; transition: color 0.3s ease; }
.footer-links a:hover { color: #c5a059; }
.footer-admin-link { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
.footer-admin-link a { color: var(--gold); }
.footer-socials { display: flex; gap: 15px; }
.footer-social-link { color: #fff; font-size: 1.5rem; transition: color 0.3s ease; }
.footer-social-link:hover { color: var(--gold); }
.footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.footer-copy { text-align: center; color: #777; font-size: 0.9rem; }

/* About Page */
.about-page-container { padding: 80px 0; }
.about-page-inner { max-width: 800px; margin: 0 auto; }
.about-page-title { font-size: 3rem; margin-bottom: 30px; text-align: center; }
.about-hero-img { width: 100%; border-radius: 20px; margin-bottom: 40px; box-shadow: var(--shadow); }
.about-content { font-size: 1.2rem; line-height: 1.8; color: #444; }
.about-text-p { margin-bottom: 20px; }
.about-subtitle { margin: 40px 0 20px; color: var(--primary-blue); }
.about-feature-box { background: var(--white); padding: 40px; border-radius: 15px; margin-top: 50px; border: 1px solid #eee; }
.about-feature-title { color: var(--gold); margin-bottom: 15px; }
.about-feature-list { list-style: none; }
.about-feature-item { margin-bottom: 15px; display: flex; align-items: start; gap: 15px; }
.about-feature-icon { color: var(--gold); margin-top: 5px; }

/* Translator Top Bar */
.top-bar-translator {
    background-color: #0a192f;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lang-switch {
    display: flex;
    gap: 5px;
}
.lang-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--body-font);
}
.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.lang-btn.active {
    color: var(--gold);
    font-weight: bold;
    background: rgba(197, 160, 89, 0.1);
}
