/* ZÁKLADNÍ NASTAVENÍ BAREV A TYPOGRAFIE */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #b5c4b1;
    --text-color: #333333;
    --bg-light: #f9f9f9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* 1. HERO SEKCE */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden; 
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #1a1a1a;
}

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

.slide.active {
    opacity: 1;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    transition: top 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 50px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 16px 36px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #9cad98;
    transform: translateY(-2px);
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) rotate(45deg);
    animation: bounce 2s infinite;
    transition: border-color 0.3s;
}

.scroll-arrow:hover {
    border-color: #fff;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) rotate(45deg) translateY(0);
    }
    40% {
        transform: translateX(-50%) rotate(45deg) translateY(-15px) translateX(-15px);
    }
    60% {
        transform: translateX(-50%) rotate(45deg) translateY(-7px) translateX(-7px);
    }
}

/* 2. O NÁS */
.about {
    padding: 120px 0;
    text-align: center;
    background-color: #ffffff;
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
}

.about .text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
}

/* 3. REFERENCE A NEMOVITOSTI */
.portfolio {
    padding: 100px 0 120px;
    background-color: var(--bg-light);
}

.portfolio h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 70px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.property-card {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.property-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.property-info {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.property-info .desc {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    flex-grow: 1;
}

.reference-box {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
}

.reference-box .quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
}

.reference-box .client-name {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* 4. PATIČKA */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px 60px;
}

footer p {
    opacity: 0.7;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        background: rgba(0,0,0,0.6);
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .slide {
        background-attachment: scroll;
    }
    .property-grid {
        grid-template-columns: 1fr;
    }
    .admin-top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    body.admin-logged-in .navbar {
        top: 75px; 
    }
}


/* --- INLINE EDITACE PRO SPRÁVCE --- */
.inline-editable {
    transition: all 0.3s ease;
    outline: none;
    border-radius: 4px;
}

.inline-editable[contenteditable="true"]:hover {
    box-shadow: 0 0 0 2px rgba(181, 196, 177, 0.8);
    cursor: text;
}

.inline-editable[contenteditable="true"]:focus {
    box-shadow: 0 0 0 2px var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.hero .inline-editable[contenteditable="true"]:focus {
    background-color: rgba(0, 0, 0, 0.5);
}

.inline-editable.saving {
    opacity: 0.5;
}

.inline-editable.saved {
    box-shadow: 0 0 0 2px #4caf50 !important;
    background-color: rgba(76, 175, 80, 0.2);
}

.inline-editable:empty::before {
    content: "✏️ (Prázdný text)";
    color: #999;
    font-size: 1rem;
    font-style: italic;
}

.admin-url-edit {
    font-size: 0.85rem;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 15px;
    display: inline-block;
    color: #fff;
    font-weight: 300;
}
.admin-url-edit span {
    color: var(--accent-color);
    border-bottom: 1px dashed var(--accent-color);
}

/* --- ČERNÝ ADMIN PRUH NAHOŘE --- */
.admin-top-bar {
    background-color: #111;
    color: #ccc;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    font-family: 'Roboto', sans-serif;
    border-bottom: 2px solid var(--accent-color);
}

.admin-top-bar strong {
    color: #fff;
    margin-right: 15px;
}

.edit-mode-badge {
    background-color: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Odkazy v liště (nyní zohledňují i SVG ikony) */
.admin-links a, .logout-btn {
    color: var(--accent-color);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px; 
}

/* Restylování tlačítka formuláře, aby vypadalo jako klasický odkaz */
.logout-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.admin-links a:hover, .logout-btn:hover {
    color: #fff;
}

.admin-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

body.admin-logged-in .navbar {
    top: 42px; 
}
