/* Zmienne kolorystyczne i fonty */
:root {
    --primary-color: #2C5F2D;
    /* Leśna zieleń */
    --secondary-color: #97BC62;
    /* Jasna zieleń */
    --accent-color: #0077B6;
    /* Głęboki błękit jeziora */
    --text-color: #333333;
    --bg-color: #F9F9F9;
    --white: #FFFFFF;
    --light-gray: #E0E0E0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

/* Reset i Style Bazowe */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Kontener */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header & Nawigacja */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('tlo_home.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 var(--spacing-sm);
    position: relative;
    /* For button positioning */
}

.hero-location {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('lokalizacja.jpg');
    background-size: cover;
    background-position: center 75%;
    height: 40vh;
}

.hero-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('harsz_kontakt.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero .btn:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sekcje */
section {
    padding: var(--spacing-lg) 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Grid Działek */
.plots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.plot-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plot-card:hover {
    transform: translateY(-5px);
}

.plot-image {
    height: 200px;
    background-color: var(--light-gray);
    position: relative;
    flex-shrink: 0;
}

.plot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.status-available {
    background-color: var(--secondary-color);
}

.status-sold {
    background-color: #c0392b;
}

.plot-card.is-sold {
    position: relative;
    opacity: 0.8;
}

.plot-card.is-sold::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 10px;
    background-color: rgba(192, 57, 43, 0.8);
    transform: translateY(-50%) rotate(-10deg);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.plot-card.is-sold .plot-image img,
.plot-card.is-sold .plot-details {
    filter: grayscale(0.5);
}

.plot-card.is-sold::before {
    content: 'SPRZEDANA';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #c0392b;
    color: white;
    padding: 10px 30px;
    font-size: 1.5rem;
    font-weight: 900;
    z-index: 15;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    letter-spacing: 2px;
}

.plot-card.is-sold .btn {
    background-color: #999 !important;
    border-color: #999 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.plot-details {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.plot-details h3 {
    font-size: 1.5rem;
}

.plot-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.plot-details p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Allow paragraph to take up available space */
}

.plot-details .btn,
.plot-details .btn-secondary {
    margin-top: 0;
    /* Remove auto margin as flex-grow on p handles spacing */
    width: 100%;
    text-align: center;
    display: block;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.feature-item {
    padding: var(--spacing-md);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: fadeInPage 0.8s ease-out;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grids */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Oferta - Unified Info Card */
.info-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto 3rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text {
    flex-grow: 1;
}

.info-text strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
    font-family: var(--font-heading);
}

.info-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    font-weight: 400;
}

@media (max-width: 600px) {
    .info-row {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}


.map-exhibit {
    background-color: var(--white);
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: fit-content;
    /* Ramka dopasuje się do szerokości zdjęcia */
    max-width: 1000px;
    margin: 0 auto 4rem;
    transition: transform 0.3s ease;
    overflow: hidden;
    /* Dodane dla efektu przybliżenia */
}

.map-exhibit:hover {
    transform: translateY(-5px);
}

.map-exhibit img {
    border-radius: 8px;
    display: block;
    width: auto;
    /* Zmienione z 100%, aby nie wymuszać szerokości */
    max-width: 100%;
    /* Ale nie szersze niż ekran */
    height: auto;
    max-height: 580px;
    /* Zmniejszone z 650px */
    object-fit: contain;
    /* Powrót do contain, żeby nie ucinało mapy */
    transform: scale(1.02);
    /* Bardzo delikatne przybliżenie */
    background-color: #f8f9fa;
    margin: 0 auto;
    /* Wyśrodkowanie zdjęcia w ramce */
}

.map-caption {
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
    padding-bottom: 0.5rem;
    width: 100%;
    /* Upewnienie się, że podpis zajmuje całą szerokość dla centrowania */
}