/* --- Shared Property Page Styles --- */
/* This stylesheet is used by all property pages (Ugla, Alpinveien, Galtö Södra, Torgelsholmen) */

/* --- Override global styles for property pages --- */
body {
    background-color: #fff;
    color: #000;
}

.site-header {
    position: relative;
    background-color: #fff;
    color: #000;
}

.site-header a {
    color: #000;
}

.burger-line {
    background-color: #000;
}

.button {
    border-color: #243551;
    color: #243551;
}

.button:hover {
    background-color: #243551;
    color: #fff;
}

.mobile-nav-overlay {
    background-color: #fff;
}

.mobile-nav-overlay nav .button {
    border-color: #243551;
    color: #243551;
}

.mobile-nav-overlay nav .button:hover {
    background-color: #243551;
    color: #fff;
}

/* --- Property Hero Section --- */
.hero-section {
    background-size: cover;
    background-position: center;
    min-height: unset;
    height: 550px;
    max-height: 550px;
    margin-left: 50px;
    margin-right: 50px;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: calc((2.5 - 1) * 1.2vw + 1rem);
    color: #fff;
    font-weight: 300;
}

/* --- Intro Section --- */
.intro-section {
    padding: 10vmax var(--site-padding);
    text-align: center;
}

.large-text {
    font-size: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.large-text strong {
    font-weight: 700;
}

/* --- Image Collage Section --- */
.image-collage-section {
    padding: 0 var(--site-padding);
    margin-bottom: 10vmax;
}

.image-collage-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-template-rows: repeat(49, 2.15vw);
    gap: 11px;
    max-width: 1800px;
    margin: 0 auto;
}

.image-collage-grid div {
    overflow: hidden;
}

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

.collage-img-1 {
    grid-area: 1 / 2 / 16 / 16;
}

.collage-img-2 {
    grid-area: 18 / 10 / 33 / 24;
}

.collage-img-3 {
    grid-area: 35 / 2 / 50 / 16;
}

/* --- Carousel Section --- */
.carousel-section {
    background-color: #fff;
    color: #000;
    padding: 10vmax 0;
}

.carousel-container {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 0 2vw;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
    position: relative;
}

@media (min-width: 1800px) {
    .carousel-track {
        padding: 0 calc((100% - 1800px) / 2 + 2vw);
    }
}

.carousel-slide img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.carousel-caption {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(36, 53, 81, 0.7);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.carousel-button:hover {
    background-color: #243551;
}

.carousel-button svg {
    width: 30px;
    height: 20px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}

.carousel-button.prev {
    left: 1vw;
}

.carousel-button.next {
    right: 1vw;
}

/* --- Full Width Image Section --- */
.full-width-image-section {
    width: 100%;
    line-height: 0;
}

.full-width-image-section img {
    width: 100%;
}

/* --- Facilities Section --- */
.facilities-section {
    padding: 10vmax var(--site-padding);
    background-color: #fff;
    color: #000;
}

.facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    max-width: 1800px;
    margin: 0 auto;
    align-items: start;
}

.facilities-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
}

.facilities-description ul {
    list-style: none;
    margin: 1rem 0;
}

.facilities-description p, .facilities-description li {
    margin-bottom: 1rem;
}

.facilities-description a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 10vmax var(--site-padding);
    background-color: #fff;
    color: #000;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
}

.cta-content .button {
    width: 300px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #243551;
    color: #243551;
    background-color: transparent;
    transition: background-color 0.2s, color 0.2s;
}

.cta-content .button:hover {
    background-color: #243551;
    color: #fff;
}

.cta-section hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    max-width: 1800px;
    margin: 0 auto;
}

/* --- Pagination Section --- */
.page-pagination {
    padding: 3vw var(--site-padding);
    background-color: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
}

.pagination-text {
    text-align: right;
    margin-right: 1.5rem;
}

.pagination-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
}

.pagination-arrow {
    width: 18px;
    height: 32px;
}

.pagination-arrow polyline {
    stroke-width: 2;
}

.pagination-prev .pagination-text {
    text-align: left;
    margin-left: 1.5rem;
    margin-right: 0;
}

.pagination-prev .pagination-arrow {
    order: -1;
}

.pagination-next {
    justify-content: flex-end;
}

/* --- Footer overrides for property pages --- */
.site-footer {
    background-color: #000;
    color: #fff;
}

.site-footer a {
    color: #fff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-section {
        margin-left: 35px;
        margin-right: 35px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding-bottom: 80px;
    }
    
    .carousel-button {
        top: auto;
        bottom: 10px;
        transform: none;
        background-color: #243551;
    }
    
    .carousel-button.prev {
        left: calc(50% - 70px);
    }
    
    .carousel-button.next {
        right: calc(50% - 70px);
    }

    .hero-section {
        height: 360px;
        max-height: 360px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .large-text {
        font-size: 1.2rem;
    }

    .image-collage-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .collage-img-1,
    .collage-img-2,
    .collage-img-3 {
        grid-area: unset;
        width: 85%;
        height: 200px;
        overflow: hidden;
    }
    
    .image-collage-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .collage-img-1 {
        align-self: flex-start;
    }
    
    .collage-img-2 {
        align-self: flex-end;
    }
    
    .collage-img-3 {
        align-self: flex-start;
    }

    .carousel-slide {
        flex: 0 0 calc(100% - 20px);
    }
    
    .carousel-track {
        padding: 0 10vw;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-title {
        margin-bottom: 2rem;
    }

    .cta-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cta-content .button {
        width: 200px;
        height: 58px;
    }
}