@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --c-primary: #1F3B2C;
    --c-accent: #B28F5E;
    --c-bg: #FFFFFF;
    --c-surface: #F9F9F9;
    --c-text-main: #1C1C1C;
    --c-text-muted: #5A5A5A;
    --c-border: #E8E8E8;
    
    --f-serif: 'Playfair Display', serif;
    --f-sans: 'Inter', sans-serif;
    
    --container: 1140px;
    --section-padding: 4.5rem;
    
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.04);
    --shadow-md: 0 12px 35px rgba(0,0,0,0.07);
}

@media(min-width: 900px) {
    :root {
        --section-padding: 7rem;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body, h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; transition: 0.25s ease; }

body { background-color: var(--c-bg); color: var(--c-text-main); font-family: var(--f-sans); line-height: 1.6; }

/* Enhanced Typography & Vertical Rhythm */
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 400; color: var(--c-primary); line-height: 1.15; }
h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { font-size: 1.05rem; color: var(--c-text-muted); line-height: 1.8; margin-bottom: 1.5rem; }

@media(min-width: 768px) { 
    h1 { font-size: 3.75rem; margin-bottom: 1.75rem; } 
    h2 { font-size: 2.75rem; margin-bottom: 1.5rem; } 
    h3 { font-size: 1.5rem; } 
}

.eyebrow { font-family: var(--f-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; color: var(--c-accent); display: block; margin-bottom: 1rem; }
.italic { font-style: italic; }
.text-center { text-align: center; }

/* General Layout */
.container { width: 88%; max-width: var(--container); margin: 0 auto; }
.section { padding: var(--section-padding) 0; }
.section-sm { padding: calc(var(--section-padding) / 2) 0; }
.bg-surface { background-color: var(--c-surface); }

/* Intelligent Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media(min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media(min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media(min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Button Polish */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2.25rem;
    font-family: var(--f-sans); font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.05em; font-weight: 600; border-radius: 4px; /* Premium slight radius */
    cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent;
}
.btn-primary { background-color: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background-color: #11231a; border-color: #11231a; color: #fff; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-secondary { background-color: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-secondary:hover { background-color: var(--c-primary); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }

/* Strict Header Consistency */
.site-header { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: transparent; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0; height: 80px; }
@media(min-width: 1024px) { .header-wrap { height: 90px; } }

.brand { display: flex; align-items: center; z-index: 105; position: relative; height: 100%; top: 4px; }
/* Absolute lock on height so it doesn't stretch and breathes cleanly within header */
.brand-logo { max-height: 44px; width: auto; object-fit: contain; }
@media(min-width: 1024px) { .brand-logo { max-height: 52px; } }

/* Desktop Navigation */
.main-nav { display: none; }
@media(min-width: 1024px) {
    .main-nav { display: flex; gap: 2.5rem; align-items: center; margin: 0 auto; height: 100%; }
    .nav-link { 
        font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; 
        color: var(--c-text-muted); font-weight: 500; position: relative; padding: 0.5rem 0;
        white-space: nowrap; transition: color 0.2s;
    }
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--c-primary); transition: width 0.3s ease; }
    .nav-link:hover { color: var(--c-primary); }
    .nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
    .nav-link.is-active { color: var(--c-primary); }
}

.header-utils { display: flex; align-items: center; gap: 1.5rem; z-index: 105; position: relative; height: 100%; }

/* Language Switcher Polish */
.lang-dropdown { position: relative; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.25rem; font-size: 0.8rem; font-weight: 600; color: var(--c-text-main); transition: opacity 0.2s; }
.lang-dropdown:hover { opacity: 0.7; }
.lang-dropdown svg { width: 18px; height: 18px; fill: currentColor; }
.lang-dropdown-content { 
    position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm); border-radius: 4px; padding: 0.5rem 0; min-width: 140px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.2s ease; z-index: 200;
}
.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown:focus-within .lang-dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown-content a { display: block; padding: 0.5rem 1.25rem; color: var(--c-text-muted); font-size: 0.9rem; font-weight: 500; text-align: left; }
.lang-dropdown-content a:hover, .lang-dropdown-content a.is-active { color: var(--c-primary); background: var(--c-surface); }

/* Hamburger UI */
.hamburger { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 105; margin-right: -10px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--c-primary); transition: 0.3s; margin: 3px 0; border-radius: 2px; }
@media(min-width: 1024px) { .hamburger { display: none; } }

/* Header Booking CTA */
.header-btn { display: none; }
@media(min-width: 1024px) { 
    .header-btn { display: inline-flex; padding: 0.65rem 1.5rem; font-size: 0.75rem; border-width: 1px; } 
}

/* Off-Canvas Mobile Menu Logic */
.mobile-menu {
    position: fixed; inset: 0; background: #fff; z-index: 104;
    display: flex; flex-direction: column; padding: 2rem 6% 3rem;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto; pointer-events: none; visibility: hidden;
}
.mobile-menu.is-active { transform: translateX(0); pointer-events: auto; visibility: visible; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; border-bottom: 1px solid var(--c-border); padding-bottom: 1rem; }
.mobile-close-btn { font-size: 2.5rem; line-height: 1; color: var(--c-text-muted); background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; }
.mobile-close-btn:hover { color: var(--c-primary); }

.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.mobile-nav-link { font-family: var(--f-serif); font-size: 1.75rem; color: var(--c-primary); text-decoration: none; padding: 0.75rem 0; border-bottom: 1px solid var(--c-border); }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link.is-active { color: var(--c-accent); font-style: italic; }

.mobile-menu-shortcuts { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; font-size: 1.05rem; }
.mobile-menu-shortcuts a { display: flex; align-items: center; gap: 0.75rem; color: var(--c-text-muted); font-weight: 500; }
.mobile-menu-shortcuts a:hover { color: var(--c-primary); }
.mobile-menu-shortcuts svg { width: 22px; height: 22px; fill: currentColor; }

/* 
 * HERO COMPOSITION & BOOKING WIDGET 
 * Strictly decoupled from fixed sizes to prevent clipping. 
 */
.hero { padding: 3rem 0; }
.hero .grid-2 { align-items: center; gap: 3rem; } 
@media(min-width: 1024px) { 
    .hero { padding: 5rem 0; min-height: calc(100vh - 90px); display: flex; align-items: center; }
    .hero .grid-2 { grid-template-columns: 58% 37%; justify-content: space-between; gap: 5%; } 
}
.hero-content-wrap { align-self: center; display: flex; flex-direction: column; justify-content: center; }
.hero-img-wrap { width: 100%; height: auto; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/5; }
@media(min-width: 900px) { .hero-img-wrap { aspect-ratio: auto; height: 75vh; max-height: 800px; } }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Booking Widget Grid Restructure - Single Row Desktop Design */
.booking-widget-wrapper { margin-top: 2.5rem; margin-bottom: 2rem; width: 100%; max-width: 780px; }
.booking-widget { 
    background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    border: 1px solid #EAEAEA; display: flex; flex-direction: column; overflow: hidden;
}
@media(min-width: 900px) { 
    .booking-widget { flex-direction: row; align-items: stretch; padding: 0.4rem; gap: 0; } 
}
.booking-field { 
    display: flex; flex-direction: column; justify-content: center; 
    padding: 0.85rem 1.25rem; position: relative; border-bottom: 1px solid #EAEAEA;
}
@media(min-width: 900px) { 
    .booking-field { border-bottom: none; border-right: 1px solid #EAEAEA; padding: 0.5rem 1rem; } 
    .booking-field.fi-checkin { width: 26%; }
    .booking-field.fi-checkout { width: 26%; }
    .booking-field.fi-guests { width: 18%; border-right: none; }
}
.booking-label { font-size: 0.7rem; text-transform: uppercase; color: var(--c-text-muted); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.2rem; white-space: nowrap; }
/* Hard lock on the input geometry */
.booking-input { border: none; padding: 0; margin: 0; font-family: var(--f-sans); font-size: 1rem; font-weight: 500; color: var(--c-text-main); background: transparent; outline: none; width: 100%; min-width: 0; cursor: pointer; border-radius: 0; line-height: 1.2; text-overflow: ellipsis; overflow: hidden; }
.booking-input:focus { color: var(--c-primary); }
.booking-input::placeholder { color: #999; opacity: 1; font-weight: 400; }

.booking-submit-wrap { display: flex; align-items: stretch; padding: 1rem; }
@media(min-width: 900px) {
    .booking-submit-wrap { width: 30%; padding: 0 0 0 0.4rem; }
}
.booking-submit-wrap .btn { width: 100%; height: 100%; border-radius: 4px; margin: 0; padding: 0.85rem 1rem; }

/* Flatpickr Calendar Styling Matches Brand */
.flatpickr-calendar { font-family: var(--f-sans); border-radius: 4px !important; box-shadow: var(--shadow-md) !important; border: 1px solid var(--c-border) !important; padding: 10px; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay { background: var(--c-primary) !important; border-color: var(--c-primary) !important; color: #fff !important; }

/* Trust Bar */
.trust-bar { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-top: 0; padding-top: 0; border-top: none; max-width: 650px; }
@media(min-width: 600px) { .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; } }
.trust-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--c-text-muted); font-weight: 500; line-height: 1.4; }
.trust-item svg { width: 18px; height: 18px; fill: var(--c-primary); flex-shrink: 0; position: relative; top: 2px; }

/* Family Section Refined Grid */
.family-section .grid-2 { align-items: center; }
.family-section img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-sm); }
@media(min-width: 900px) { .family-text { padding-left: 3rem; } }

/* Cards (Rooms & Gallery) */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: 4px; overflow: hidden; height: 100%; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #e0e0e0; }
.card-img { width: 100%; aspect-ratio: 4/3; background: var(--c-surface); overflow: hidden; }
.card-img.square { aspect-ratio: 1/1; }
.card-img img { width: 100%; height: 100%; object-fit: cover !important; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); display: block; }
.card:hover .card-img img { transform: scale(1.05); }
.card-content { padding: 2rem; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.card-content p { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.7; }
.card-meta { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--c-border); }
.card-meta span { font-size: 0.9rem; color: var(--c-text-muted); display: flex; align-items: center; gap: 0.5rem; font-weight: 500;}
.card-meta svg { width: 18px; height: 18px; fill: var(--c-primary); }
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--c-primary); text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; margin-top: auto; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: 0.2s; }
.card-link:hover { border-bottom-color: var(--c-primary); }

/* Reviews Guarantee Balance */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 800px) { .reviews-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.review-card { padding: 2.5rem; background: #fff; border: 1px solid var(--c-border); border-radius: 4px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; }
.stars { color: var(--c-accent); font-size: 1.25rem; margin-bottom: 1.25rem; letter-spacing: 0.15em; }

/* Arrival & Map Alignment */
.map-container { width: 100%; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--c-surface); }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(15%) contrast(1.1); }
/* Specific fix to ensure the map sits beautifully beside text on layout pages */
.location-map-wrap { height: 400px; position: sticky; top: 120px; }
@media(min-width: 900px) { .location-map-wrap { height: calc(100vh - 160px); min-height: 450px; } }

/* Forms & Contact Section */
.form-wrap { background: #fff; border: 1px solid var(--c-border); padding: 2rem; border-radius: 4px; box-shadow: var(--shadow-sm); }
@media(min-width: 768px) { .form-wrap { padding: 3.5rem; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media(min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 1.5rem; }
.form-row .form-group { margin-bottom: 0; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--c-text-main); }
.form-input { width: 100%; padding: 1rem 1.25rem; border: 1px solid #dcdcdc; border-radius: 4px; background: #fff; font-family: var(--f-sans); font-size: 1.05rem; transition: all 0.3s ease; color: var(--c-text-main); }
.form-input:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 1px var(--c-primary); }
.form-input::placeholder { color: #A0A0A0; }

.contact-card { background: var(--c-surface); padding: 2rem; border-radius: 4px; border: 1px solid var(--c-border); position: sticky; top: 120px; }
@media(min-width: 768px) { .contact-card { padding: 3rem; } }
.contact-row { margin-bottom: 2rem; }
.contact-row .eyebrow { margin-bottom: 0.5rem; color: var(--c-text-muted); }
.contact-row p { margin: 0; font-size: 1.15rem; color: var(--c-text-main); }
.contact-row a { text-decoration: none; color: var(--c-text-main); transition: color 0.2s; }
.contact-row a:hover { color: var(--c-primary); }
.reassurance-note { font-size: 0.9rem; color: var(--c-text-muted); font-style: italic; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); line-height: 1.6; }

/* Deep Footer Branding Consistency - Explicit 4-Column 1280px Structure */
.site-footer { background: #162c20; color: #fff; padding: 70px 0 30px; font-size: 16px; margin-top: 5rem; line-height: 1.7; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(max-width: 1023px) {
    .brand-col { order: 1; }
    .contact-col { order: 2; margin-bottom: 1rem; }
    .nav-col { order: 3; margin-bottom: 1rem; }
    .discover-col { order: 4; }
}
@media(min-width: 1024px) {
    .site-footer { padding: 90px 0 40px; }
    .footer-container { padding: 0 80px; }
    .footer-grid { grid-template-columns: 2fr 1.5fr 2fr 1.5fr; gap: 3rem; }
}

.footer-heading { font-family: var(--f-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; font-weight: 600; }
.footer-logo { max-width: 200px; height: auto; display: block; filter: brightness(0) invert(1); }
.brand-col p { margin-bottom: 0.5rem; }

.footer-nav { display: flex; flex-direction: column; gap: 16px; }
.footer-nav a { color: #fff; transition: color 0.2s; font-size: 16px; text-decoration: none; }
.footer-nav a:hover { color: var(--c-accent); }

.footer-contact-list { display: flex; flex-direction: column; gap: 1.25rem; font-size: 16px; color: rgba(255,255,255,0.9); }
.footer-contact-list a { color: #fff; text-decoration: none; transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--c-accent); }

.social-links-vertical { display: flex; flex-direction: column; gap: 16px; margin-bottom: 2rem; }
.social-links-vertical a { color: #fff; text-decoration: none; font-size: 16px; transition: color 0.2s; }
.social-links-vertical a:hover { color: var(--c-accent); }

.footer-bottom { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-legal { display: flex; gap: 1rem; align-items: center; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.2s; }
.footer-legal a:hover { color: #fff; }
.footer-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 100%; text-align: center; }
.footer-btn:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Carousel Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(255,255,255,0.98); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; width: 90%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 90vh; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; box-shadow: var(--shadow-sm); border-radius: 4px; user-select: none; }
.lightbox-close { position: absolute; top: -1.5rem; right: 0; font-size: 2.5rem; line-height: 1; color: var(--c-primary); cursor: pointer; z-index: 1001; }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--c-primary); cursor: pointer; box-shadow: var(--shadow-sm); z-index: 1001; border: 1px solid var(--c-border); transition: 0.3s; }
.lightbox-btn:hover { background: var(--c-surface); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
@media(min-width: 768px) { .lightbox-prev { left: -3rem; } .lightbox-next { right: -3rem; } .lightbox-content { width: 80%; } }

/* WhatsApp Premium Icon Lock */
.wa-widget { 
    position: fixed; bottom: 2rem; right: 2rem; 
    background: #25D366; color: #fff; width: 77px; height: 77px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    z-index: 999; box-shadow: var(--shadow-md); transition: 0.3s; 
}
.wa-widget:hover { background: #20b858; transform: translateY(-5px); box-shadow: 0 15px 25px rgba(37,211,102,0.3); }
.wa-widget svg { width: 70px; height: 70px; fill: currentColor; }
@media(max-width: 768px) { .wa-widget { bottom: 1.5rem; right: 1.5rem; width: 64px; height: 64px; } .wa-widget svg { width: 38px; height: 38px; } }
