/* =================================================================
   Single House Page Styles
================================================================= */

.single-house {
    padding-top: 80px;
}

@media (max-width: 767px) {
    .single-house {
        padding-top: 30px;
    }
}

.single-house .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #ffffff;
    opacity: 1;
}

/* =================================================================
   Project Hero Section
================================================================= */
.projekt-hero {
    background: #ffffff;
    padding: 15px 0 60px;
}

.projekt-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-bottom: 30px;
}

.projekt-hero .back-link:hover {
    color: var(--primary-color);
}

/* Gallery */
.projekt-gallery {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

@media (min-width: 992px) {
    .projekt-hero .row.align-items-start {
        align-items: stretch !important;
        display: flex;
    }
    
    .projekt-hero .col-lg-7,
    .projekt-hero .col-lg-5 {
        display: flex;
        flex-direction: column;
    }
    
    .projekt-info {
        flex: 1;
    }
}

.projekt-main-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.projekt-main-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.projekt-main-image:hover img {
    transform: scale(1.02);
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 16px;
    cursor: pointer;
    z-index: 100 !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

.gallery-prev {
    left: 15px !important;
}

.gallery-next {
    right: 15px !important;
}

@media (max-width: 767px) {
    .gallery-nav {
        display: none !important;
    }
}

.projekt-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Project Info */
.projekt-info {
    padding-left: 40px;
}

.projekt-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--primary-color);
    padding: 6px 15px;
    margin-bottom: 15px;
}

.projekt-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.projekt-tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Price Box */
.projekt-price-box {
    background: #f8f8f8;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.price-label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-light);
}

.price-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-note {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-light);
}

/* Specs */
.projekt-specs {
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--text-light);
}

.spec-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-download {
    width: 100%;
    text-align: center;
    padding: 18px 30px;
}

.btn-download i {
    margin-right: 10px;
}

/* =================================================================
   Project Description
================================================================= */
.projekt-description {
    background: #f8f8f8;
    padding: 60px 0;
}

.section-subtitle-projekt {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projekt-desc-text {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-light);
}

/* =================================================================
   Floor Plan Section
================================================================= */
.projekt-floorplan {
    background: #ffffff;
    padding: 60px 0;
}

.floorplan-row {
    display: flex;
    align-items: stretch;
}

@media (min-width: 992px) {
    .floorplan-row {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    
    .floorplan-col,
    .rooms-col {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
        flex-direction: column;
    }
    
    .floorplan-col {
        padding-right: 20px;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
    
    .rooms-col {
        padding-left: 20px;
    }
    
    .floorplan-container {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .floorplan-image {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .floorplan-image img {
        max-height: 70vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .rooms-table-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .rooms-table {
        width: 100%;
    }
}

.floorplan-col {
    display: flex;
    flex-direction: column;
}

.rooms-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.floorplan-container {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.floorplan-image {
    position: relative;
    overflow: hidden;
}

.floorplan-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.floorplan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floorplan-overlay i {
    font-size: 40px;
    color: #ffffff;
}

.floorplan-image:hover .floorplan-overlay {
    opacity: 1;
}

.floorplan-image:hover img {
    transform: scale(1.02);
}

/* Rooms table */
.rooms-table-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rooms-table {
    width: 100%;
    border-collapse: collapse;
}

.rooms-table th,
.rooms-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rooms-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: #f8f8f8;
}

.rooms-table td {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-light);
}

.rooms-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.rooms-table td:last-child {
    text-align: right;
}

.rooms-table th:last-child {
    text-align: right;
}

.rooms-table tfoot td {
    background: #f8f8f8;
    font-weight: 600;
}

.rooms-table tfoot td strong {
    color: var(--text-dark);
}

.btn-download-plan {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto !important;
    max-width: fit-content;
    margin-bottom: 30px;
}

/* =================================================================
   Pricing Section
================================================================= */
.projekt-pricing {
    background: #f8f8f8;
    padding: 80px 0;
}

.section-title-projekt {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing Section Layout */
.pricing-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.pricing-col-left,
.pricing-col-right {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .pricing-row {
        flex-wrap: nowrap;
    }
    
    .pricing-col-left {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding-right: 15px;
    }
    
    .pricing-col-right {
        flex: 0 0 58.333%;
        max-width: 58.333%;
        padding-left: calc(8.333% + 15px);
    }
}

.pricing-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    width: 100%;
}

.pricing-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .pricing-row {
        flex-direction: column;
    }
    
    .pricing-sticky {
        position: relative;
        top: 0;
    }
    
    .pricing-col-right {
        padding-left: 0;
        margin-top: 40px;
    }
}

/* Pricing Table */
.pricing-table-wrapper {
    background: #ffffff;
    overflow: hidden;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: #f0f0f0;
}

.pricing-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.pricing-table td {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
}

.pricing-table td:last-child {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    white-space: nowrap;
}

.pricing-table tr.featured {
    background: #f9f9f9;
}

.pricing-table tr.featured td:first-child {
    font-weight: 500;
}

.badge-recommended {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    margin-left: 0;
    vertical-align: middle;
}

/* Offer Content */
.offer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.offer-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-light);
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid #eee;
}

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

.offer-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.offer-notes-subtle {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Options Table */
.options-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.options-table-wrapper {
    background: #ffffff;
    overflow: hidden;
}

.options-table {
    width: 100%;
    border-collapse: collapse;
}

.options-table th,
.options-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.options-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: #f8f8f8;
}

.options-table td {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-light);
}

.options-table td:last-child {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.options-table th:last-child {
    text-align: right;
}

.options-table tbody tr:hover {
    background: #fafafa;
}

/* =================================================================
   Responsive
================================================================= */
@media (max-width: 991px) {
    .projekt-info {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .projekt-title {
        font-size: 42px;
    }
    
    .section-title-projekt {
        font-size: 28px;
    }
    
    .floorplan-row {
        flex-direction: column;
    }
}

/* =================================================================
   Technical Drawings Section (Elewacje i PZT)
================================================================= */
.projekt-technical {
    padding: 60px 0;
    background: #f0f0f0; /* jaśniejsze szare */
}

.technical-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.technical-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 0 0 calc(20% - 16px);
    max-width: calc(20% - 16px);
}

.technical-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0; /* bez radiusów */
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.technical-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.technical-item:hover .technical-thumb {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.technical-item:hover .technical-thumb img {
    transform: scale(1.05);
}

.technical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.technical-overlay i {
    color: #fff;
    font-size: 24px;
}

.technical-item:hover .technical-overlay {
    opacity: 1;
}

.technical-label {
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a; /* czarne podpisy */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

@media (max-width: 991px) {
    .technical-item {
        flex: 0 0 calc(33.33% - 14px);
        max-width: calc(33.33% - 14px);
    }
}

@media (max-width: 575px) {
    .technical-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .technical-gallery {
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .projekt-hero {
        padding: 15px 0 40px;
    }
    
    .projekt-main-image img {
        height: 300px;
    }
    
    .thumbnail img {
        height: 60px;
    }
    
    .projekt-title {
        font-size: 36px;
    }
    
    .price-value {
        font-size: 26px;
    }
    
    .projekt-description,
    .projekt-floorplan,
    .projekt-technical {
        padding: 40px 0;
    }
    
    .projekt-pricing {
        padding: 50px 0;
    }
    
    .section-title-projekt {
        font-size: 24px;
    }
}
