/* Apartment Detail Page Styles */

body {
    background-color: #EFEFEF;
}

/* Hero Section */
.apartment-hero {
    background-color: #EFEFEF;
    height: 658px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 120px;
    padding-right: 120px;
    padding-top: 100px;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
}

.hero-title {
    font-family: 'Source Serif 4', serif;
    font-size: 70px;
    font-weight: 300;
    color: #AB844E;
    line-height: 1.2;
    margin: 0 0 40px 0;
    padding-top: 142px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 22px 10px 40px;
    background: transparent;
    color: #AB844E;
    border: 2px solid #AB844E;
    border-radius: 60px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    width: fit-content;
    text-decoration: none;
}

.hero-btn .arrow-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.hero-btn .arrow-circle img {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.hero-btn .arrow-default {
    opacity: 1;
}

.hero-btn .arrow-hover {
    opacity: 0;
}

.hero-btn:hover {
    background-color: #d7a461;
    border-color: #d7a461;
    color: #fff;
}

.hero-btn:hover .arrow-default {
    opacity: 0;
}

.hero-btn:hover .arrow-hover {
    opacity: 1;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: none;
}

.hero-3d-render {
    width: 797px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    bottom: -70px;
    box-shadow: none;
    flex-shrink: 0;
    z-index: 10;
}

.hero-3d-render img {
    max-width: 100%;
    height: auto;
    box-shadow: none;
}

.hero-3d-icon {
    position: absolute;
    top: 20%;
    right: -40px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-3d-icon:hover {
    transform: scale(1.05);
}

.hero-3d-icon span {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #243646;
}

.hero-3d-icon img {
    width: 20px;
    height: 20px;
}

/* Main Info Section */
.main-info-section {
    background-color: white;
    padding-top: 200px;
}

.info-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.info-surface {
    flex: 1;
}

.surface-title {
    font-family: 'Source Serif 4', serif;
    font-size: 35px;
    font-weight: 400;
    color: #243646;
    margin: 0 0 10px 0;
}

.surface-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #999;
    margin: 0;
    max-width: calc(50%);
}

.raspolozivo-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 32px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.raspolozivo-btn:hover {
    background-color: #45a049;
}

.info-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #243646;
    margin: 0 0 60px 0;
}

/* Room Details and Floor Plan Section */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

/* Left Column - Room Details */
.room-details-column {
    padding-right: 20px;
}

.section-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.column-label {
    text-align: right;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #dddddd;
    margin-bottom: 20px;
}

.room-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.room-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 16px;
}

.room-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #c89a4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #c89a4b;
}

.room-name {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #666;
}

.room-size {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #666;
    text-align: right;
}

.total-row {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #dddddd;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 16px;
}

.total-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    grid-column: 2;
}

.total-value {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-align: right;
}

/* Right Column - Floor Plan */
.floor-plan-column {
    padding-left: 20px;
}

.floor-plan-container {
    margin-top: 50px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
}

.floor-plan-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Additional Plans Section */
.additional-plans-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.plans-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.plans-left-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.plan-subsection {
    position: relative;
}

.plan-image-container {
    overflow: hidden;
}

.brosura{
    max-width: 43px;
}

.orijentacija{
    max-width: 200px;
}

.plan-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.plans-right-column {
    position: relative;
}

/* Old styles - keeping for backwards compatibility */
.room-details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.room-details-left {
    position: relative;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.details-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #7A7A7A;
    margin: 0;
    margin-bottom: 15px;
}

.col-header-right {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 17px;
    color: #7A7A7A;
    font-weight: 400;
}

.title-divider {
    width: 100%;
    height: 1px;
    background-color: #888888;
    border: none;
    margin: 0 0 20px 0;
}

.table-columns-header {
    display: flex;
    justify-content: flex-end;
    gap: 100px;
    margin-bottom: 10px;
}

.col-header {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #7A7A7A;
    font-weight: 400;
}

.col-header:first-child {
    margin-right: 20px;
}

.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    padding: 10px 0;
    align-items: center;
}

.table-row.table-total {
    background-color: transparent;
    padding: 16px 0;
    font-weight: 600;
}

.room-number {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    width: 30px;
    height: 30px;
    border: 2px solid #d7a461;
    background-color: #d7a461;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-total .room-number {
    border: none;
}

.room-name {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #7A7A7A;
}

.table-total .room-name {
    font-weight: 600;
    color: #243646;
}

.room-size {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #7A7A7A;
    text-align: right;
    padding-right: 20px;
}

.table-total .room-size {
    font-weight: 600;
    color: #243646;
}

.floor-plan-image {
    width: 100%;
    margin-top: 40px;
}

.floor-plan-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floor Plans Section */
.floor-plans-section {
    background-color: #EFEFEF;
    padding: 80px 0;
}

.plans-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.plan-item {
    background-color: white;
    padding: 30px;
    border-radius: 4px;
}

.plan-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #243646;
    margin: 0 0 20px 0;
}

.plan-image {
    position: relative;
}

.plan-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pdf-link {
    position: relative;
    display: block;
}

.pdf-icon {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(171, 132, 78, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.pdf-link:hover .pdf-icon {
    background-color: #AB844E;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: #AB844E;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .apartment-hero,
    .info-container,
    .plans-container,
    .contact-form {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Mobile disclaimer - hidden on desktop, shown only on mobile */
.surface-subtitle--mobile-wrap {
    display: none;
}

@media (max-width: 768px) {
    .apartment-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 120px 20px 60px 20px;
        height: auto;
    }

    .hero-left {
        padding-top: 0;
    }

    .hero-title {
        font-size: 36px;
        padding-top: 0;
        margin-bottom: 30px;
    }

    .hero-3d-render {
        width: 100%;
        bottom: 0;
    }

    .info-container,
    .plans-container,
    .contact-form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .info-header {
        flex-direction: column;
        gap: 20px;
    }

    .surface-title {
        font-size: 28px;
    }

    /* Hide original subtitle on mobile, show mobile duplicate instead */
    .info-surface .surface-subtitle {
        display: none;
    }

    .surface-subtitle--mobile-wrap {
        display: block;
        padding: 0 20px 40px 20px;
        background-color: #ffffff;
    }

    .surface-subtitle--mobile-wrap .surface-subtitle {
        max-width: 100%;
    }

    .plans-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .room-details-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .plans-two-column-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .plans-left-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-info-section {
        padding-top: 60px;
    }

    .additional-plans-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .surface-title {
        font-size: 24px;
    }

    .form-title {
        font-size: 28px;
    }

    .table-row {
        grid-template-columns: 50px 1fr 80px;
    }

    .room-number {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .room-name,
    .room-size {
        font-size: 14px;
    }
}
