/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Przyciski */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #2e7d32;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #2e7d32;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-3px);
}

.btn-apartment {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.btn-apartment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #2e7d32;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2e7d32;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2e7d32;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2e7d32;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Features */
.features-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Apartments Section */
.apartments-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #2e7d32;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.apartment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apartment-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.apartment-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.1);
}

.apartment-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.apartment-status.available {
    background: #2e7d32;
    color: white;
}

.apartment-status.booked {
    background: #f44336;
    color: white;
}

.apartment-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.apartment-content h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 5px;
}

.apartment-location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apartment-location i {
    color: #2e7d32;
}

.apartment-features {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.apartment-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 0.9rem;
}

.apartment-features i {
    color: #2e7d32;
    font-size: 0.9rem;
}

.apartment-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.apartment-price {
    margin-bottom: 20px;
}

.price {
    font-size: 1.5rem;
    color: #2e7d32;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0.1);
}

/* Responsywność */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .apartments-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Modern refresh 2026 */
:root {
    --av-bg: #f7f5ef;
    --av-surface: #ffffff;
    --av-surface-soft: #f0eee7;
    --av-text: #20231f;
    --av-muted: #686f63;
    --av-green: #2f6f50;
    --av-green-dark: #174832;
    --av-sage: #9bab86;
    --av-gold: #c49854;
    --av-border: rgba(32, 35, 31, 0.12);
    --av-shadow: 0 18px 50px rgba(35, 39, 32, 0.12);
    --av-shadow-soft: 0 10px 30px rgba(35, 39, 32, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--av-text);
    background:
        linear-gradient(180deg, rgba(247, 245, 239, 0.75), rgba(255, 255, 255, 0.98) 360px),
        var(--av-bg);
    font-family: 'Open Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--av-text);
    letter-spacing: 0;
}

p {
    color: var(--av-muted);
}

.container {
    max-width: 1180px;
}

.main-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(32, 35, 31, 0.08);
    box-shadow: 0 12px 35px rgba(23, 72, 50, 0.08);
    backdrop-filter: blur(18px);
}

.header-content {
    min-height: 78px;
    padding: 9px 0;
}

.logo a {
    min-height: 58px;
}

.logo img {
    height: 54px !important;
    width: auto;
    display: block;
}

.main-nav ul {
    gap: 8px;
    align-items: center;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 999px;
    color: #394035;
    font-size: 0.95rem;
    font-weight: 700;
}

.main-nav a::after {
    display: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--av-green-dark);
    background: rgba(47, 111, 80, 0.1);
}

.main-nav li:nth-child(3) a {
    color: #ffffff;
    background: var(--av-green);
    box-shadow: 0 10px 25px rgba(47, 111, 80, 0.2);
}

.main-nav li:nth-child(3) a:hover,
.main-nav li:nth-child(3) a.active {
    color: #ffffff;
    background: var(--av-green-dark);
}

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(47, 111, 80, 0.1);
    color: var(--av-green-dark);
}

.hero-section {
    min-height: calc(100vh - 78px);
    margin-top: 78px;
    padding: 120px 0;
    text-align: left;
    background-image: url('../images/verde.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(12, 26, 20, 0.78) 0%, rgba(12, 26, 20, 0.5) 46%, rgba(12, 26, 20, 0.15) 100%),
        linear-gradient(180deg, rgba(12, 26, 20, 0.1), rgba(12, 26, 20, 0.65));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    margin: 0;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
    line-height: 1.04;
    margin-bottom: 22px;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.7;
    margin-bottom: 34px;
}

.hero-buttons {
    justify-content: flex-start;
    gap: 14px;
}

.hero-overlay {
    display: none;
}

.btn-primary,
.btn-secondary,
.btn-apartment,
.btn-contact,
.btn-airbnb,
.quick-btn,
.booking-option,
button[type='submit'] {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0;
}

.btn-primary,
.btn-apartment,
.btn-contact,
button[type='submit'] {
    background: linear-gradient(135deg, var(--av-green) 0%, var(--av-green-dark) 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(47, 111, 80, 0.22);
}

.btn-primary:hover,
.btn-apartment:hover,
.btn-contact:hover,
button[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(47, 111, 80, 0.28);
}

.btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    color: var(--av-green-dark);
    background: #ffffff;
    border-color: #ffffff;
}

.features-section,
.apartments-section,
.booking-section,
.contact-section,
.reviews-section,
.faq-section,
.map-section,
.comparison-section,
.gallery-section {
    padding: 88px 0;
}

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

.section-title {
    color: var(--av-green-dark);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    margin-bottom: 14px;
}

.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--av-green), var(--av-gold));
}

.section-subtitle {
    color: var(--av-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.features-grid,
.apartments-grid,
.reviews-grid,
.amenities-grid,
.places-grid,
.quick-info-grid,
.process-steps {
    gap: 24px;
}

.feature-card,
.apartment-card,
.review-card,
.info-card,
.sidebar-widget,
.contact-widget,
.booking-widget,
.booking-form,
.booking-info,
.booking-summary,
.quick-option,
.process-step,
.faq-item,
.amenity,
.place,
.alternative-booking,
.contact-form,
.contact-info,
.price-info-widget {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--av-border);
    border-radius: 8px;
    box-shadow: var(--av-shadow-soft);
}

.feature-card {
    padding: 30px 24px;
    text-align: left;
}

.feature-card:hover,
.apartment-card:hover,
.review-card:hover,
.quick-option:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--av-shadow);
}

.feature-icon,
.quick-icon,
.option-icon,
.info-icon {
    width: 58px;
    height: 58px;
    margin: 0 0 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(47, 111, 80, 0.98), rgba(196, 152, 84, 0.88));
    box-shadow: 0 12px 26px rgba(47, 111, 80, 0.2);
}

.feature-card h3 {
    color: var(--av-text);
    font-size: 1.22rem;
}

.feature-card p {
    color: var(--av-muted);
}

.apartments-section {
    background: #ffffff;
}

.apartments-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.apartment-card {
    overflow: hidden;
}

.apartment-card:hover {
    transform: translateY(-8px);
}

.apartment-image {
    height: 270px;
}

.apartment-image::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42));
    pointer-events: none;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.045);
}

.apartment-status,
.preview-status,
.legend-dot {
    border-radius: 999px;
}

.apartment-status.available {
    background: rgba(47, 111, 80, 0.94);
    box-shadow: 0 8px 18px rgba(47, 111, 80, 0.25);
}

.apartment-status.booked {
    background: #8f3b33;
}

.apartment-content {
    padding: 26px;
}

.apartment-content h3 {
    color: var(--av-text);
    font-size: 1.45rem;
}

.apartment-location,
.apartment-features span,
.apartment-description {
    color: var(--av-muted);
}

.apartment-location i,
.apartment-features i,
.footer-contact i,
.contact-info i {
    color: var(--av-green);
}

.price,
.price-amount,
.amount,
.total-price {
    color: var(--av-green-dark);
}

.cta-section {
    padding: 90px 0;
    background-image: url('../images/calipso.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(23, 72, 50, 0.82), rgba(32, 35, 31, 0.62));
}

.cta-section .container,
.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.88);
}

.cta-overlay {
    display: none;
}

.details-grid,
.contact-grid,
.booking-container,
.booking-main,
.booking-options,
.alternative-options {
    gap: 28px;
}

.details-content,
.details-sidebar,
.booking-sidebar {
    min-width: 0;
}

.gallery-grid {
    gap: 14px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--av-shadow-soft);
}

.gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.description,
.house-rules,
.location,
.availability-check,
.availability-section,
.nearby-places,
.contact-cta {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--av-border);
    border-radius: 8px;
    box-shadow: var(--av-shadow-soft);
    padding: 28px;
}

.description h3,
.house-rules h3,
.availability-check h3,
.nearby-places h3,
.sidebar-widget h3,
.booking-widget h3,
.contact-widget h3 {
    color: var(--av-green-dark);
}

.description ul,
.house-rules ul,
.amenities ul {
    padding-left: 0;
    list-style: none;
}

.description li,
.house-rules li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--av-muted);
}

.description li::before,
.house-rules li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--av-green);
    font-weight: 800;
}

.form-control,
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='number'],
select,
textarea {
    width: 100%;
    border: 1px solid rgba(32, 35, 31, 0.16);
    border-radius: 8px;
    background: #ffffff;
    color: var(--av-text);
    min-height: 48px;
    padding: 12px 14px;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea {
    min-height: 130px;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(47, 111, 80, 0.16);
    border-color: var(--av-green);
}

.faq-question {
    color: var(--av-text);
    font-weight: 800;
}

.faq-answer {
    color: var(--av-muted);
}

.site-footer {
    background:
        linear-gradient(135deg, rgba(23, 72, 50, 0.98), rgba(32, 35, 31, 0.96)),
        var(--av-green-dark) !important;
    margin-top: 0 !important;
}

.footer-links a,
.footer-contact p,
.footer-logo p,
.footer-bottom {
    color: rgba(255, 255, 255, 0.82) !important;
}

.footer-links a:hover {
    color: #ffffff !important;
}

.social-links a {
    border-radius: 999px !important;
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding: 96px 0;
    }

    .features-section,
    .apartments-section,
    .booking-section,
    .contact-section,
    .reviews-section,
    .faq-section,
    .map-section,
    .comparison-section,
    .gallery-section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        min-height: 70px;
    }

    .logo img {
        height: 46px !important;
    }

    .main-nav {
        top: 70px;
        left: 20px;
        right: 20px;
        width: auto;
        padding: 14px;
        border: 1px solid var(--av-border);
        border-radius: 8px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .main-nav.active {
        left: 20px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav ul {
        gap: 8px;
    }

    .main-nav a {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        margin-top: 70px;
        padding: 76px 0;
        text-align: center;
    }

    .hero-section::before {
        background: linear-gradient(180deg, rgba(12, 26, 20, 0.72), rgba(12, 26, 20, 0.62));
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary,
    .btn-apartment {
        width: 100%;
        max-width: 360px;
    }

    .feature-card {
        text-align: center;
    }

    .feature-icon,
    .quick-icon,
    .option-icon,
    .info-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .description,
    .house-rules,
    .location,
    .availability-check,
    .availability-section,
    .nearby-places,
    .contact-cta {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section {
        padding: 64px 0;
    }

    .apartment-image {
        height: 230px;
    }

    .apartment-content,
    .feature-card {
        padding: 22px;
    }

    .section-subtitle {
        margin-bottom: 36px;
    }
}
