/* Home Page Styles */

/* Hero Section */
.home-hero {
    margin-top: 86px;
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

.home-hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-hero-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero-logo {
    margin-bottom: 56px;
}

.home-hero-logo img {
    height: 156px;
    width: auto;
}

.home-hero-title {
    font-family: 'Source Serif 4', serif;
    font-size: 48px;
    font-weight: 400;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.home-hero-scroll {
    display: inline-block;
    margin-top: 103px;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: scrollBounce 2s infinite;
}

.home-hero-scroll:hover {
    transform: translateY(5px);
}

.home-hero-scroll img {
    height: 27px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Lokacija Section */
.lokacija-section {
    padding: 100px 0;
    background: #F8F6F3;
}

.lokacija-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--boxed-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.lokacija-divider {
    width: 35px;
    height: 2px;
    background: #AB844E;
    border: none;
    margin: 0 0 60px 0;
}

.lokacija-title {
    font-family: 'Source Serif 4', serif;
    font-size: 50px;
    font-weight: 400;
    color: #AB844E;
    margin-bottom: 40px;
    line-height: 1.2;
}

.lokacija-text p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lokacija-btn {
    margin-top: 30px;
    padding: 14px 25px 14px 40px;
    background: #d7a461;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
}

.lokacija-btn img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.lokacija-btn:hover {
    background: #c9985a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 165, 97, 0.3);
}

.lokacija-btn:hover img {
    transform: translateX(3px);
}

.lokacija-right img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Srce Zvezdare Section */
.srce-zvezdare {
    padding: 100px 0;
    background: #FFFFFF;
}

.srce-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--boxed-padding);
}

.srce-title {
    font-family: 'Source Serif 4', serif;
    font-size: 42px;
    font-weight: 400;
    color: #AB844E;
    text-align: center;
    margin-bottom: 80px;
}

.srce-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.srce-icon-item {
    text-align: center;
    flex: 0 0 calc(33.333% - 40px);
    max-width: 250px;
}

.srce-icon-item:nth-child(4),
.srce-icon-item:nth-child(5) {
    flex: 0 0 calc(33.333% - 40px);
    max-width: 250px;
}

.srce-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #AB844E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.srce-icon-circle:hover {
    background: #F8F6F3;
    transform: scale(1.05);
}

.srce-icon-circle img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.srce-icon-item p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
}

/* Building Showcase */
.building-showcase {
    width: 100%;
    overflow: hidden;
}

.building-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

/* Apartments Section */
.apartments-section {
    padding: 100px 0;
    background: #F8F6F3;
}

.apartments-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--boxed-padding);
}

.apartments-header {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 70px;
}

.apartments-title {
    font-family: 'Source Serif 4', serif;
    font-size: 50px;
    font-weight: 400;
    color: #AB844E;
    text-align: left;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
}

.apartments-divider {
    width: 372px;
    height: 2px;
    background-color: #AB844E;
    border: none;
    margin: 0;
    margin-left: auto;
}

.apartments-grid {
    display: grid;
    grid-template-columns: 768px 372px;
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

/* Left column container */
.apartments-left {
    display: grid;
    grid-template-rows: auto auto;
}

/* Row 1 - Jednosobni (full width) */
.apartments-row-1 {
    width: 100%;
}

/* Row 2 - Dvosobni and Trosobni (2 columns) */
.apartments-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Right column - Četvorosobni (full height) */
.apartments-right {
    display: flex;
    flex-direction: column;
}

.apartment-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.apartment-item:hover {
    transform: translateY(-3px);
}

.apartment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Jednosobni - Red 1 */
.apartments-row-1 .apartment-item {
    height: 400px;
}

/* Dvosobni and Trosobni - Red 2 */
.apartments-row-2 .apartment-item {
    height: 300px;
}

/* Četvorosobni - Right column, full height */
.apartments-right .apartment-item {
    height: 100%;
}

.apartments-right .apartment-item img {
    height: 780px;
    object-fit: cover;
}

.apartment-label {
    padding: 20px 0;
    color: #4A4A4A;
    font-family: 'Source Serif 4', serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

/* Penthouse Section */
.penthouse-section {
    margin-top: 60px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

/*.penthouse-section .apartment-item {
    height: 500px;
}
    */

.penthouse-section .apartment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartments-btn-wrapper {
    text-align: center;
    margin-top: 50px;
}

.apartments-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px 18px 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;
}

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

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

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

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

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

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

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

/* Map Section */
.map-section {
    width: 100%;
}

.map-section iframe {
    display: block;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .lokacija-container {
        gap: 60px;
    }

    .srce-icons {
        gap: 30px;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .apartments-left {
        grid-row: auto;
    }

    .apartments-right {
        grid-row: auto;
    }

    .apartments-right .apartment-item {
        height: 400px;
    }
}

/* Mobile Landscape & Small Tablet */
@media (max-width: 968px) {
    .home-hero {
        height: 500px;
    }

    .home-hero-logo img {
        height: 80px;
    }

    .home-hero-title {
        font-size: 36px;
    }

    .lokacija-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lokacija-title {
        font-size: 36px;
    }

    .srce-icons {
        gap: 30px;
    }

    .srce-icon-item {
        flex: 0 0 calc(50% - 30px);
    }

    .srce-icon-item:nth-child(4),
    .srce-icon-item:nth-child(5) {
        flex: 0 0 calc(50% - 30px);
    }

    .apartments-title {
        font-size: 32px;
    }

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

    .apartments-row-2 .apartment-item {
        height: auto;
    }

    .apartments-row-2 .apartment-item img {
        height: 250px;
    }

    .apartments-row {
        flex-direction: column;
    }

    .penthouse-section {
    margin-top: 0px;
    }
}

/* Mobile Portrait */
@media (max-width: 768px) {
    .home-hero {
        height: 400px;
    }

    .home-hero-title {
        font-size: 28px;
        padding: 0 20px;
    }

    .lokacija-title,
    .srce-title,
    .apartments-title {
        font-size: 28px;
    }

    /* Fix for all apartment items on mobile */
    .apartments-row-1 .apartment-item,
    .apartments-right .apartment-item {
        height: auto;
    }

    .apartments-row-1 .apartment-item img,
    .apartments-right .apartment-item img {
        height: 250px;
    }

    .srce-icons {
        gap: 20px;
    }

    .srce-icon-item {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
    }

    .srce-icon-item:nth-child(4),
    .srce-icon-item:nth-child(5) {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
    }

    .srce-icon-circle {
        width: 80px;
        height: 80px;
    }

    .srce-icon-circle img {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .home-hero {
        height: 350px;
    }

    .home-hero-logo img {
        height: 60px;
    }

    .home-hero-title {
        font-size: 24px;
    }

    .lokacija-title,
    .srce-title,
    .apartments-title {
        font-size: 24px;
    }

    .srce-icon-item {
        flex: 0 0 calc(50% - 10px);
    }

    .srce-icon-item:nth-child(4),
    .srce-icon-item:nth-child(5) {
        flex: 0 0 calc(50% - 10px);
    }
}
