/* BB Apartman – Alap stílusok */
:root {
    --color-bg: #faf9f6;
    --color-text: #2c2c2c;
    --color-muted: #5a5a5a;
    --color-accent: #8b6914;
    --color-accent-hover: #6d5210;
    --color-border: #e0ddd6;
    --font-head: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', sans-serif;
    --max-width: 1100px;
    --narrow: 720px;
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}
.main-content { min-height: 60vh; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.narrow { max-width: var(--narrow); }

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}
.logo:hover { color: var(--color-accent); }
.main-nav {
    display: flex;
    gap: 1.5rem;
}
.main-nav a {
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-accent); }
.nav-fb { display: flex; align-items: center; padding: 0 0.25rem; }
.nav-fb img { display: block; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a3f1f 0%, #6b5b2e 50%, #8b6914 100%);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%238b6914" fill-opacity="0.15" width="100" height="100"/></svg>');
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.hero-subtitle {
    margin: 0 0 1.5rem;
    opacity: 0.95;
    font-size: 1.1rem;
}
.hero .btn { margin: 0 0.35rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Sections */
.section {
    padding: 3rem 0;
}
.section h2 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: var(--color-text);
}
.page-section h1 {
    font-family: var(--font-head);
    font-size: 1.85rem;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}
.lead { font-size: 1.15rem; color: var(--color-muted); margin-bottom: 1rem; }
.prose { white-space: pre-wrap; }
.prose.html-content { white-space: normal; }
.html-content p { margin: 0 0 0.75em; }
.html-content ul, .html-content ol { margin: 0 0 0.75em; padding-left: 1.5em; }
.html-content li { margin: 0.25em 0; }
.html-content h2, .html-content h3 { margin: 1em 0 0.35em; }
.content-block { margin-bottom: 1.5rem; }
.back-link { margin-top: 2rem; }
.back-link a { color: var(--color-accent); text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* Quick features */
.quick-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
@media (max-width: 768px) {
    .quick-features { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
.feature-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    line-height: 1;
    background: linear-gradient(135deg, rgba(139,105,20,0.12) 0%, rgba(139,105,20,0.06) 100%);
    border-radius: 14px;
}
.feature-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}
.feature-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.3;
}

/* CTA section */
.cta-section {
    background: linear-gradient(180deg, #f0ede6 0%, var(--color-bg) 100%);
}
.cta-section .btn { margin: 0 0.35rem; }

/* Contact */
.contact-block {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}
.contact-block a { color: var(--color-accent); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }
.info-box {
    background: #f5f3ef;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Gallery */
.gallery-category-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}
.gallery-category-title:first-of-type { margin-top: 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.gallery-figure { margin: 0; }
.gallery-caption {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.35rem;
    text-align: center;
    line-height: 1.3;
}
.gallery-item {
    display: block;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 3rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.35); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #bbb;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-contact h3 {
    font-family: var(--font-head);
    color: #fff;
    margin: 0 0 0.5rem;
}
.footer-contact p { margin: 0.25rem 0; }
.footer-contact a { color: #ccc; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-fb img { display: inline-block; vertical-align: middle; }
.contact-fb .fb-icon { vertical-align: middle; margin-right: 0.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-links a { color: #bbb; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 0.9rem; opacity: 0.8; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.08); }
    .nav-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero .btn { display: block; margin: 0.5rem auto; }
}
