/* Rom & Fasiliteter - Page Styles */

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-deep-fjord);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.page-loader-content {
    text-align: center;
}

.page-loader-logo {
    width: 350px;
    height: auto;
    opacity: 0;
    transform: scale(1.3);
    animation: loaderFadeIn 1.2s ease-out forwards;
}

@keyframes loaderFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.3);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section - Fullscreen with Parallax */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 45, 65, 0.4) 0%,
        rgba(8, 45, 65, 0.3) 50%,
        rgba(8, 45, 65, 0.5) 100%
    );
    z-index: 2;
}

.hero-image {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    animation: heroImageZoom 20s ease-out forwards;
}

@keyframes heroImageZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@supports (-webkit-touch-callout: none) {
    .hero-image {
        background-attachment: scroll;
        inset: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: 0 2rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-title span {
    display: block;
    font-size: 0.5em;
    letter-spacing: 0.25em;
    margin-top: 0.5rem;
    font-weight: 300;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--color-white);
    margin: 2rem auto;
    opacity: 0.6;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-white);
}

.hero-scroll-text {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-white), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.4;
    }
}

/* Rooms Section */
.rooms-section {
    position: relative;
    padding: 6rem 8%;
    background: var(--color-cream);
}

/* Vertical Text */
.vertical-text {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.vertical-text span {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(8, 45, 65, 0.07);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Rooms Content (Left) */
.rooms-content {
    max-width: 480px;
    margin: 0 auto;
}

.rooms-content .section-label {
    margin-bottom: 1rem;
}

.rooms-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-deep-fjord);
    margin-bottom: 2rem;
}

.rooms-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.rooms-highlight {
    font-size: 1.1rem !important;
    color: var(--color-deep-fjord) !important;
    font-weight: 400;
}

.rooms-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-left: 3px solid var(--color-deep-fjord);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-deep-fjord);
}

.price-details {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.rooms-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--color-deep-fjord);
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s var(--transition-smooth);
}

.rooms-btn:hover {
    background: #0a3a54;
    transform: translateY(-2px);
}

/* Features (Right) */
.rooms-features {
    background: var(--color-white);
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    margin-left: 2rem;
    align-self: start;
}

.features-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.features-line {
    width: 40px;
    height: 1px;
    background: var(--color-deep-fjord);
}

.features-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-deep-fjord);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-deep-fjord);
    flex-shrink: 0;
}

.feature-item span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-black);
}

/* Room Details Section */
.room-details-section {
    padding: 4rem 8%;
    background: var(--color-white);
}

.room-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.room-detail-card {
    padding: 2.5rem;
    background: var(--color-cream);
    text-align: center;
    transition: transform 0.3s var(--transition-smooth);
}

.room-detail-card:hover {
    transform: translateY(-5px);
}

.room-detail-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
}

.room-detail-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-deep-fjord);
}

.room-detail-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-deep-fjord);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.room-detail-size {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-deep-fjord);
    margin-bottom: 1rem;
}

.room-detail-card p:last-child {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Gallery Section */
.gallery-section {
    position: relative;
    padding: 4rem 0 6rem;
    overflow: hidden;
    background: var(--color-cream);
}

.gallery-header {
    padding: 0 8%;
    margin-bottom: 3rem;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-deep-fjord);
    margin-top: 1rem;
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding-left: 8%;
}

.gallery-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    flex-shrink: 0;
    width: 50vw;
    max-width: 700px;
    height: 60vh;
    max-height: 500px;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide:hover .gallery-image {
    transform: scale(1.03);
}

.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(8, 45, 65, 0.8), transparent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition-smooth);
}

.gallery-slide.active .gallery-slide-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Navigation */
.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-deep-fjord);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.gallery-btn:hover {
    background: var(--color-deep-fjord);
}

.gallery-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-deep-fjord);
    transition: stroke 0.3s var(--transition-smooth);
}

.gallery-btn:hover svg {
    stroke: var(--color-white);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-counter {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-deep-fjord);
    min-width: 80px;
    text-align: center;
}

.gallery-current {
    font-weight: 600;
}

.gallery-total {
    font-weight: 300;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .rooms-section {
        padding: 5rem 5%;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
    }

    .rooms-content {
        max-width: 100%;
    }

    .rooms-features {
        margin-left: 0;
    }

    .vertical-text {
        display: none;
    }

    .room-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-carousel-wrapper {
        padding-left: 5%;
    }

    .gallery-slide {
        width: 80vw;
    }
}

@media (max-width: 768px) {
    .hero-image {
        background-attachment: scroll;
    }

    .rooms-section {
        padding: 4rem 5%;
    }

    .rooms-features {
        padding: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .room-details-section {
        padding: 3rem 5%;
    }

    .room-detail-card {
        padding: 2rem;
    }

    .gallery-section {
        padding: 3rem 0 4rem;
    }

    .gallery-slide {
        width: 85vw;
        height: 45vh;
    }

    .gallery-nav {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .gallery-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .rooms-title {
        font-size: 1.8rem;
    }

    .rooms-btn {
        width: 100%;
        text-align: center;
    }

    .rooms-price {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .gallery-slide {
        width: 90vw;
        height: 35vh;
    }
}
