/* source/css/style.css - Vzhled samotného webu Ubytování U Nás (nabenecku.cz)
 * Styly pro rezervační systém a karty pokojů jsou odděleny v /rezervace/rezervace_widget.css
 */
:root {
    --primary: #1b365d;
    --primary-dark: #10233f;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --warm: #d97706;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
}

/* Navigace */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(16, 35, 63, 0.96);
    backdrop-filter: blur(8px);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 0.76rem;
    color: #93c5fd;
    font-weight: 500;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-links a.nav-cta {
    background: var(--accent);
    color: #fff;
}

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

.nav-links a.nav-admin {
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    margin-left: 0.35rem;
}

/* Hamburger tlačítko pro mobilní menu */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hamburger-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 13px;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* Hero sekce */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 35, 63, 0.86) 0%, rgba(27, 54, 93, 0.74) 100%),
                url('../../obrazky/zima_benecko.jpg') center/cover no-repeat;
    color: #fff;
    padding: 4.5rem 1.25rem 4rem;
}

.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.22);
    border: 1px solid rgba(125, 211, 252, 0.45);
    color: #e0f2fe;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.18;
    margin: 0 0 1rem;
    font-weight: 800;
}

.hero p.lead {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 0 0 1.6rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-highlights {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero-highlights h2 {
    margin: 0 0 0.9rem;
    font-size: 1.15rem;
    color: #7dd3fc;
}

.hero-highlights ul {
    margin: 0;
    padding-left: 1.2rem;
}

.hero-highlights li {
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}

/* Sekce */
.section {
    padding: 3.5rem 1.25rem;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0 0 0.4rem;
    font-size: 1.9rem;
    color: var(--primary);
    font-weight: 800;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* O nás mřížka */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.about-photos img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.quick-links-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.quick-link-chip {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.quick-link-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.9rem;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* Patička a kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.site-footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Lightbox galerie pro zvětšení a procházení fotek šipkami */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem 3.75rem;
    user-select: none;
}

.lightbox-backdrop.open {
    display: flex;
}

.lightbox-content {
    max-width: 960px;
    max-height: 90vh;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
    object-fit: contain;
    transition: opacity 0.15s ease;
}

.lightbox-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.lightbox-caption {
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
}

.lightbox-counter {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-nav:hover {
    background: rgba(2, 132, 199, 0.85);
    border-color: #38bdf8;
    transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
    left: 1.1rem;
}

.lightbox-next {
    right: 1.1rem;
}

.lightbox-close {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    transition: background 0.15s ease;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.85);
}

@media (max-width: 960px) {
    .hero-inner,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-inner {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .brand-title {
        font-size: 1.08rem;
    }

    .brand-sub {
        font-size: 0.7rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.55rem 0 0.25rem;
        margin-top: 0.35rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a,
    .nav-links a.nav-cta {
        padding: 0.5rem 0.75rem;
        font-size: 0.88rem;
        border-radius: 7px;
        background: transparent;
        color: #e2e8f0;
        text-align: left;
        margin-top: 0;
    }

    .nav-links a:hover,
    .nav-links a.nav-cta:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 2.1rem 1rem 1.9rem;
    }

    .hero-inner {
        gap: 1.35rem;
    }

    .hero-badge {
        font-size: 0.74rem;
        padding: 0.22rem 0.65rem;
        margin-bottom: 0.65rem;
    }

    .hero h1 {
        font-size: 1.55rem;
        line-height: 1.24;
        margin-bottom: 0.7rem;
    }

    .hero p.lead {
        font-size: 0.93rem;
        margin-bottom: 1.1rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    /* Menší, kompaktnější tlačítka na mobilu */
    .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.84rem;
        border-radius: 8px;
        gap: 0.35rem;
    }

    .hero-highlights {
        padding: 1.05rem;
    }

    .hero-highlights h2 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .hero-highlights li {
        font-size: 0.86rem;
        margin-bottom: 0.4rem;
    }

    .section {
        padding: 2.1rem 1rem;
    }

    .section-header {
        margin-bottom: 1.35rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .quick-links-bar {
        gap: 0.45rem;
    }

    .quick-link-chip {
        padding: 0.3rem 0.65rem;
        font-size: 0.78rem;
    }

    .about-photos {
        gap: 0.6rem;
    }

    .about-photos img {
        height: 135px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .gallery-item img {
        height: 120px;
    }

    .lightbox-backdrop {
        padding: 1rem 2.75rem;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .lightbox-prev {
        left: 0.45rem;
    }

    .lightbox-next {
        right: 0.45rem;
    }

    .lightbox-close {
        top: 0.65rem;
        right: 0.65rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
