*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f6fb;
    color: #1f2933;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    gap: 1rem;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.15rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

/* Hlavní navigace */

.main-nav {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.main-nav a {
    padding: 0.3rem 0.4rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background: rgba(15, 118, 110, 0.08);
    color: #047857;
}

/* Přepínání jazyků */

.lang-switch {
    display: flex;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.lang {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.lang.current {
    background: #047857;
    border-color: #047857;
    color: #ecfdf5;
}

/* Sekce (scroll pointy) */

.section {
    padding: 4rem 0;
}

.section-alt {
    background: #ffffff;
}

/* HERO ÚVOD */

.hero {
    background: radial-gradient(circle at top left, #a7f3d0 0, transparent 55%),
                radial-gradient(circle at bottom right, #bfdbfe 0, transparent 55%);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    min-height: 60vh;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 34rem;
    margin-bottom: 1.3rem;
}

/* Obrázek v úvodu */

.hero-image {
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    background: #111827;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TLAČÍTKO v úvodu */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ecfdf5;
    box-shadow: 0 12px 24px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(4, 120, 87, 0.35);
}

/* LAYOUT POMOCNÉ */

.two-column {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2.2rem;
    align-items: flex-start;
}

/* INFORMACE O CHALUPĚ */

.features ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.features li::before {
    content: "•";
    color: #059669;
    font-weight: 700;
    margin-right: 0.4rem;
}

/* GALERIE */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
}

.gallery-item {
    border-radius: 1.1rem;
    overflow: hidden;
    background: #0f172a;
    color: #f9fafb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
}

/* CENÍK */

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
}

.pricing-card {
    background: #ffffff;
    border-radius: 0.95rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.pricing-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
}

.pricing-card .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #047857;
}

.pricing-card .price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.pricing-card .note {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Text pod ceníkem */

.pricing-detail {
    margin-top: 1.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.92rem;
    color: #4b5563;
}

.pricing-detail h3 {
    font-size: 1.12rem;
    margin-bottom: 0.45rem;
}

.pricing-detail p {
    white-space: pre-line;
    margin: 0.5rem 0;
}

/* REZERVACE (formulář) */

.form {
    display: grid;
    gap: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.form-field {
    display: grid;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.86rem;
    font-weight: 500;
    color: #374151;
}

.form-field input,
.form-field textarea,
.form-field select {
    padding: 0.55rem 0.65rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font: inherit;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.35);
    outline: none;
}

/* INFORMACE UŽIVATELI O ZPĚTNÉ VAZBĚ */

.alert {
    padding: 0.75rem 0.95rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* DOSTUPNOST (e-chalupy.cz kalendar) */

.kalendar {
    min-height: 280px;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

/* kontakt mapa */

.map {
    min-height: 280px;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.map iframe {
    border-radius: 0.9rem;
}

/* NÁPISY A LISTY */

.contact-list {
    list-style: none;
    margin-top: 0.9rem;
}

.contact-list li + li {
    margin-top: 0.3rem;
}

/* PATIČKA */

.site-footer {
    padding: 1.3rem 0;
    background: #0b1120;
    color: #e5e7eb;
    margin-top: 2.4rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    font-size: 0.86rem;
}

.site-footer a {
    color: #22c55e;
}

.footer-admin .btn-secondary {
    font-size: 0.86rem;
    padding: 0.4rem 0.92rem;
}

/* TLAČÍTKO "Admin" v patičce */

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: #f9fafb;
    box-shadow: 0 8px 16px rgba(107, 114, 128, 0.3);
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(107, 114, 128, 0.35);
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

/* ADMIN – úvod admin styly */

.admin-body {
    background: #020617;
    color: #e5e7eb;
}

.admin-header {
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.8rem 0;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-header nav a {
    margin-left: 0.8rem;
    font-size: 0.9rem;
}

.admin-main {
    padding: 2.2rem 0;
}

.admin-login-wrapper {
    max-width: 380px;
    margin: 6vh auto;
    background: #020617;
    border-radius: 1rem;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
}

/* MAZÁNÍ FOTEK V ADMINU */

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.gallery-admin-item {
    background: #020617;
    border-radius: 0.95rem;
    padding: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: grid;
    gap: 0.75rem;
}

.gallery-admin-thumb img {
    border-radius: 0.6rem;
}

.gallery-admin-fields {
    display: grid;
    gap: 0.3rem;
    font-size: 0.85rem;
}

/* RESET input v adminu */

.gallery-admin-fields .form-field input {
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
}

/* TLAČÍTKO DELETE */

.btn-delete {
    background: #ef4444;
    color: #f9fafb;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 130px;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* PRRDAVÁNÍ NOVÝCH FOTEK */

.pricing-admin-table {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.pricing-admin-header,
.pricing-admin-row {
    display: grid;
    gap: 0.3rem;
}

/* VYLEPŠENÉ RESPONZIVNÍ PRVKY – mobil */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-admin-header,
    .pricing-admin-row {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        font-size: 0.9rem;
    }

    .pricing-detail {
        font-size: 0.86rem;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}
/* SOCIO ODKAZY */

.footer-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-social {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc277f, #c13584, #5851db, #23c6f2);
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    padding: 0.45rem 0.95rem;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    font-weight: 600;
    border-radius: 1.2rem;
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.45);
}

.instagram-icon {
    background: #ffffff;
    color: #1f2933;
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 0.4rem;
    font-weight: 700;
}
