/* =====================================================================
   styles.css — Boborján Apartman — gabiholiday.hu/boborjan/
   ===================================================================== */

/* === CSS VARIABLES === */
:root {
    --primary: #2c7be5;
    --primary-dark: #1a5cbf;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --border: #e2e8f0;
    --nav-height: 64px;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    --transition: 0.25s ease;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* === LAYOUT === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 44px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-light);
    margin-top: 22px;
    margin-bottom: 40px;
    max-width: 620px;
    font-size: 1.02rem;
}

/* === NAVIGATION === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.nav-brand:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 6px 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(44, 123, 229, 0.07);
    text-decoration: none;
}

.nav-link.active {
    color: var(--primary);
    background: rgba(44, 123, 229, 0.10);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 2px 5px;
    border-radius: 10px;
    transition: color var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    color: var(--primary);
}

.lang-sep {
    color: var(--border);
    font-size: 0.85rem;
    line-height: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === HERO === */
.hero {
    height: 100vh;
    min-height: 520px;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.35) 100%),
        url('../images/20250305_142740.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    animation: fadeInUp 0.7s ease both;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 0.7s ease 0.15s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === INTRODUCTION === */
.intro-description {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 760px;
    color: var(--text);
    margin-bottom: 36px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.feature-list li {
    padding: 13px 16px 13px 42px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    position: relative;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--bg-alt);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    opacity: 0.88;
}

.gallery-item:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.26);
}

.lightbox-close {
    top: 18px;
    right: 18px;
    font-size: 1.1rem;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.88rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 14px;
    border-radius: 12px;
    pointer-events: none;
}

/* === CALENDAR === */
.calendar-wrapper {
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-month-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-transform: capitalize;
    text-align: center;
    flex: 1;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    flex-shrink: 0;
}

.cal-nav-btn:hover:not(:disabled) {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.cal-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.cal-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
}

.cal-day-header {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 4px 2px;
    letter-spacing: 0.3px;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: default;
    user-select: none;
    color: var(--text);
    font-weight: 400;
}

.cal-day.other-month {
    color: var(--border);
}

.cal-day.past {
    color: #c5cbd5;
    background: #f8f9fb;
}

.cal-day.today {
    border: 2px solid var(--primary);
    font-weight: 700;
    color: var(--primary);
}

.cal-day.booked {
    background: #fde8e8;
    color: #c53030;
    font-weight: 600;
}

.cal-day.available {
    background: #e8f5e9;
    color: #276749;
}

.cal-day.today.available {
    background: #e8f5e9;
    border-color: var(--primary);
}

.cal-loading {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.calendar-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-available .legend-dot {
    background: #e8f5e9;
    border: 1px solid #276749;
}

.legend-booked .legend-dot {
    background: #fde8e8;
    border: 1px solid #c53030;
}

.cal-error {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: 6px;
    border: 1px solid var(--border);
    line-height: 1.5;
}

.contact-address-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-address-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.copy-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px 5px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    flex-shrink: 0;
    line-height: 0;
}

.copy-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(44, 123, 229, 0.06);
}

.copy-btn.copied {
    color: #276749;
    border-color: #276749;
    background: #e8f5e9;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.pricing-card.selected {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: scale(1.03);
}

/* pricing-featured is only a default marker — visuals come from .selected */
.pricing-featured {
    /* intentionally empty */
}

.pricing-persons {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 14px;
}

.pricing-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.pricing-currency {
    font-size: 1rem;
    font-weight: 600;
}

.pricing-per {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.pricing-cta {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 13px 36px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-align: center;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 123, 229, 0.30);
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: background var(--transition);
}

.contact-item:hover {
    background: rgba(44, 123, 229, 0.05);
}

.contact-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

.contact-value {
    color: var(--text);
    font-size: 0.95rem;
    word-break: break-all;
    display: block;
}

a.contact-value:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-map iframe {
    width: 100%;
    height: 360px;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: block;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}

/* === FOOTER === */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 28px 0;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-back {
    margin-bottom: 6px;
}

.footer-back a {
    color: #90cdf4;
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-back a:hover {
    text-decoration: underline;
}

.footer-dev {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #718096;
}

.footer-dev-link {
    color: #90cdf4;
    text-decoration: none;
    font-weight: 600;
}

.footer-dev-link:hover {
    text-decoration: underline;
    color: #63b3ed;
}

/* === OTHER ACCOMMODATION STRIP === */
.other-strip {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.other-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.other-strip-text .other-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.other-strip-text .other-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.other-strip-text .other-desc {
    font-size: 0.92rem;
    color: var(--text-light);
}

.other-strip-cta .btn-outline {
    display: inline-block;
    padding: 11px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.other-strip-cta .btn-outline:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* =====================================================================
   RESPONSIVE STYLES
   ===================================================================== */

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {

    /* Nav: show hamburger, hide inline menu */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
        padding: 16px 24px 24px;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        overflow-y: auto;
        max-height: calc(100vh - var(--nav-height));
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 16px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 0.98rem;
    }

    .lang-switcher {
        align-self: flex-start;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        height: 80vh;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-featured {
        transform: none;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
    .section {
        padding: 44px 0;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .hero {
        height: 75vh;
        min-height: 420px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Gallery: 2 columns on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Lightbox: hide arrows (use swipe) */
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pricing-card {
        padding: 22px 14px;
    }

    .pricing-amount {
        font-size: 1.4rem;
    }

    /* Calendar */
    .calendar-wrapper {
        padding: 18px 14px;
    }

    .cal-day {
        font-size: 0.8rem;
    }
}

/* === FOCUS STYLES (accessibility) === */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}