/* =========================================
   STYLE SPECYFICZNE DLA OSIEDLA MIEJSKA
   ========================================= */

/* Importowane zmienne z klimatyczna.css */
:root {
    --accent-teal: #345C6C;
}

/* Badge Premiere w Hero */
.badge-premiere {
    display: inline-block;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
}

/* Hero dla Słupska - taki sam jak index.ai.html */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
}

.hero__content {
    width: 100%;
    z-index: 2;
    padding-top: 80px;
}

.hero__text-block {
    background: rgba(255,255,255,0.9);
    padding: 40px;
    max-width: 650px;
    backdrop-filter: blur(5px);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 40px;
    font-family: var(--font-head);
}

.hero__desc {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Desktop Hero */
@media(min-width: 900px) {
    .hero__bg-wrapper {
        width: 60%;
    }
    .hero__text-block {
        padding: 60px 60px 60px 0;
        background: rgba(255,255,255,0.8);
    }
    .hero__title {
        font-size: 4.5rem;
    }
    .overlay {
        display: none;
    }
}

/* ========================================
   SEKCJA FULL-WIDTH HERO (Słupsk w zasięgu ręki)
   ======================================== */

.full-width-hero {
    padding: 0 !important;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.fw-wrapper {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-snap-align: center;
}

.fw-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: 0;
    z-index: 0;
}

.fw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

.fw-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.fw-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.fw-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.fw-desc {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.fw-wrapper .white-frame-overlay {
    top: 40px;
    bottom: 40px;
    left: 40px;
    right: 40px;
    border-color: rgba(255,255,255,0.4);
    z-index: 2;
}

@media (max-width: 768px) {
    .fw-wrapper {
        height: 50vh;
        min-height: 400px;
    }
    .fw-title {
        font-size: 2.2rem;
    }
    .fw-desc {
        font-size: 1rem;
    }
    .fw-wrapper .white-frame-overlay {
        top: 20px;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}

/* =========================================
   SEKCJA O INWESTYCJI (Two Column Layout)
   ========================================= */
.about-investment-section {
    padding: 100px 0;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: flex-start;
}

@media (min-width: 900px) {
    .two-col-layout {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.text-col,
.image-col {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #333;
}

.feature-list li:last-child {
    border-bottom: none;
}

.framed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================================
   SEKCJA TYPÓW DOMÓW (House Cards)
   ========================================= */
.house-types-section {
    padding: 100px 0;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.house-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .house-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .house-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px; /* Opcjonalnie: ograniczenie szerokości, żeby karty nie były gigantyczne */
        margin-left: auto;
        margin-right: auto;
    }
}

.house-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.house-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.house-card__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.house-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.house-card:hover .house-card__image img {
    transform: scale(1.1);
}

.house-card__content {
    padding: 25px;
}

.house-card__title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.house-card__area {
    font-size: 0.9rem;
    color: var(--accent-copper);
    font-weight: 600;
    margin-bottom: 15px;
}

.house-card__desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =========================================
   SEKCJA STANDARD (Feature Icons)
   ========================================= */
.standard-features {
    padding: 100px 0;
}

.features-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 600px) {
    .features-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .features-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-icon-box {
    text-align: center;
    padding: 20px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 1px solid rgba(198, 168, 124, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon-box:hover .icon-wrapper {
    border-color: var(--accent-copper);
    background-color: rgba(198, 168, 124, 0.05);
    transform: translateY(-5px);
}

.feature-icon-box h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-icon-box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   SEKCJA MASTERPLAN
   ========================================= */
.masterplan-section {
    padding: 100px 0;
}

.masterplan-wrapper {
    position: relative;
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.masterplan-image {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
    max-width: 100%;
}

/* Ken Burns Effect */
.ken-burns-effect {
    overflow: hidden;
}

.ken-burns-effect .masterplan-image {
    animation: kenBurnsOsiedle 24s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes kenBurnsOsiedle {
    0% { 
        transform: scale(1.5) translate(0, 15%); 
    }
    25% { 
        transform: scale(1.8) translate(-10%, 5%); 
    }
    50% { 
        transform: scale(2) translate(5%, -5%); 
    }
    75% { 
        transform: scale(1.8) translate(10%, 0); 
    }
    100% { 
        transform: scale(1.5) translate(0, 15%); 
    }
}

/* SVG rendering optimization */
.masterplan-image[src$=".svg"] {
    shape-rendering: geometricPrecision;
}

.masterplan-legend {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 30px;
    height: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.legend-text {
    font-size: 0.85rem;
    color: #ccc;
}

/* =========================================
   SEKCJA LOKALIZACJA
   ========================================= */
.location-section {
    padding: 100px 0;
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
}

@media (min-width: 900px) {
    .location-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 80px;
    }
}

.map-col {
    width: 100%;
}

.map-wrapper {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.location-info-col h3 {
    margin-bottom: 30px;
}

.location-list {
    list-style: none;
    padding: 0;
}

.location-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.location-list li:last-child {
    border-bottom: none;
}

.location-icon {
    font-size: 1.8rem;
    min-width: 40px;
}

.location-list strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 3px;
}

.location-list p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* =========================================
   SEKCJA KONTAKT / FORMULARZ
   ========================================= */
.contact-form-section {
    padding: 100px 0;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 900px) {
    .contact-form-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 80px;
    }
}

.form-col h2 {
    margin-bottom: 15px;
}

.futuro-form select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background: transparent;
    transition: 0.3s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.futuro-form select:focus {
    outline: none;
    border-bottom-color: var(--accent-copper);
}

.contact-person-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-person-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 350px;
}

.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-copper);
}

.contact-person-card h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.contact-role {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    display: block;
}

.contact-phone {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-copper);
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: none;
}

.contact-phone:hover {
    color: var(--text-main);
}

.contact-email {
    display: block;
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
}

.contact-email:hover {
    color: var(--accent-copper);
}

/* =========================================
   MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .house-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        height: 350px;
    }
}

/* =========================================
   STYLE Z KLIMATYCZNA.CSS
   ========================================= */

/* Przycisk accent teal */
.btn--accent { 
    background: var(--accent-teal); 
    color: #fff; 
    border: 1px solid var(--accent-teal); 
    padding: 12px 28px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    display: inline-block; 
    cursor: pointer;
    transition: 0.3s;
}

.btn--accent:hover { 
    background: transparent; 
    color: var(--accent-teal); 
}

/* Kontakt - grid i sekcja */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    /* align-items: center; removed to allow stretch */
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: stretch;
    }
}

.cp-photo { 
    height: 400px; 
    position: relative; 
}

@media (min-width: 900px) {
    .cp-photo {
        height: 100%;
    }
}

.cp-photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    object-position: center top;
}

/* Contact details - pionowa linia teal */
.contact-details { 
    margin: 30px 0; 
    border-left: 3px solid var(--accent-teal); 
    padding-left: 20px; 
}

.contact-details .name { 
    display: block; 
    font-weight: 600; 
    color: #111; 
    margin-bottom: 5px; 
}

.contact-details .phone { 
    display: block; 
    font-family: var(--font-head); 
    font-size: 1.8rem; 
    color: var(--accent-teal); 
    margin-bottom: 5px; 
    text-decoration: none;
    transition: 0.3s;
}

.contact-details .phone:hover {
    color: #1C232E;
}

.contact-details .email { 
    color: #666; 
    font-size: 0.9rem; 
    text-decoration: none;
    transition: 0.3s;
}

.contact-details .email:hover {
    color: var(--accent-teal);
}

/* Biała ramka overlay na zdjęciach */
.white-frame-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    z-index: 5;
    pointer-events: none;
}

/* ============================
   MAP SECTION
   ============================ */
.map-section {
    padding: 100px 0;
}

.map-wrapper {
    position: relative;
    margin: 60px 0 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
}

.map-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.map-info-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-copper);
    transition: all 0.3s ease;
}

.map-info-card:hover {
    background: #f0f0f0;
    transform: translateY(-5px);
}

.map-info-card h4 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--bg-dark);
    margin-bottom: 8px;
}

.map-info-card p {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 400px;
    }
    
    .map-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-person-card {
        margin-top: 20px;
    }
}

/* Dark BG overrides for Feature Box */
.dark-bg .big-number {
    color: #fff;
}
.dark-bg .feature-box p {
    color: rgba(255,255,255,0.8);
}

/* Button override for Financing Section to avoid Copper hover */
.btn.btn--white.btn--no-copper {
    transition: all 0.3s ease;
}
.btn.btn--white.btn--no-copper:hover {
    background-color: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Force vertical layout for invest-header in Slupsk financing section */
@media (min-width: 900px) {
    .invest-header.invest-header--vertical {
        flex-direction: column !important;
        gap: 30px;
    }
    .invest-header.invest-header--vertical h2 {
        min-width: auto;
    }
}

/* =========================================
   STICKY NAVIGATION (CAPSULE BOTTOM) - COPIED FROM GORALSKA.HTML
   ========================================= */

/* --- WARIANT: CAPSULE (Piguła na dole) --- */
.nav-capsule {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Domyślnie schowane w dół */
    background: rgba(255, 255, 255, 0.9); /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.8);
    
    /* Kompaktowy start */
    max-width: 50px; 
    overflow: hidden;
    white-space: nowrap;
    
    display: flex; /* Zmienione na flex, by było widoczne */
}

.nav-capsule.visible {
    transform: translateX(-50%) translateY(0);
}

/* Rozwiń (expanded via JS or button click) */
.nav-capsule.expanded,
.nav-capsule.manual-open {
    max-width: 800px;
    padding: 8px 25px;
    background: #fff;
}

.nav-capsule ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0; margin: 0;
    align-items: center;
}

.nav-capsule li {
    display: flex;
    align-items: center;
}

/* Ikonka Menu (trigger) */
.capsule-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #1C232E;
    border-radius: 50%;
    color: #fff;
    margin-right: 0;
    transition: margin 0.3s;
    cursor: pointer;
}

/* Styl dla wszystkich stanów otwartych */
.nav-capsule.expanded .capsule-trigger,
.nav-capsule.manual-open .capsule-trigger {
    margin-right: 15px;
    background: transparent;
    color: #1C232E;
    width: auto;
    height: auto;
}

.nav-capsule a {
    text-decoration: none;
    color: #1C232E;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s;
    opacity: 0; 
    transform: translateY(10px);
}

/* Pokazujemy linki w stanach otwartych */
.nav-capsule.expanded a,
.nav-capsule.manual-open a {
     opacity: 1;
     transform: translateY(0);
}

.nav-capsule a.active {
    background: #1C232E;
    color: #fff;
}

/* === Nowe Style dla Specyfikacji Kart (Ikony) === */
.house-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #B8860B;
    font-weight: 500;
}

.spec-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.spec-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #B8860B; /* Złoty kolor spójny z resztą strony */
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
