/* --- Custom Styles --- */
:root {
    --primary-color: #121212;
    --secondary-color: #c5a565;
    --text-light: #f8f9fa;
    --text-dark: #343a40;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-secondary);
}

/* --- Navigation Bar --- */
.navbar {
    transition: background-color 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(5px);
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* --- Page Sections --- */
.page-section {
    display: none;
    padding: 100px 0;
}
.page-section.active {
    display: block;
    animation: fadeIn 0.8s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--secondary-color);
}

h2.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
}

.section-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
    color: #aaa;
    font-style: italic;
}

/* --- Hero Slider (Swiper) --- */
.hero-slider {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative; /* Needed for the pseudo-element */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Hides any blur overflow */
}
.slide-overlay {
    width: 100%;
    height: 100%;
    /* You can make the overlay slightly lighter now if you want */
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Move background properties here */
    background-image: inherit; /* Inherits from the inline style */
    background-size: cover;
    background-position: center;

    /* --- THIS IS THE MAGIC --- */
    filter: blur(4px) brightness(0.8); /* Add blur and slightly darken it */

    /* Ensures it's behind the content */
    z-index: -1;

    /* Prevents a weird edge effect from the blur */
    transform: scale(1.1);
}
.hero-slider .slide-content h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-slider .slide-content p {
    font-size: 1.3rem;
    color: #ddd;
    max-width: 600px;
    margin: 1rem auto 0;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--secondary-color);
}
.swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

/* --- Room Slider on Homepage --- */
.room-slider {
    padding-bottom: 50px; /* Space for pagination */
}

/* --- Custom Components --- */
.btn-custom {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    padding: 12px 30px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 12px 30px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}


.info-card, .room-card, .facility-card, .testimonial-card, .attraction-card, .offer-card {
    background-color: #1c1c1c;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.info-card:hover, .room-card:hover, .facility-card:hover, .attraction-card:hover, .offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(197, 165, 101, 0.1);
}
.info-card i, .facility-card i, .attraction-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.room-card img, .offer-card img {
    border-radius: 8px;
    margin-bottom: 20px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* --- Testimonial Section --- */
.testimonial-card {
    text-align: left;
}
.testimonial-card .quote {
    font-style: italic;
    color: #ccc;
}
.testimonial-card .author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}
.testimonial-card .author-info h5 {
    margin: 0;
    color: var(--secondary-color);
}

/* --- Offer Card Specific --- */
.offer-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}
.offer-card .price small {
    font-size: 0.9rem;
    color: #ccc;
}

/* --- Forms --- */
.form-control {
    background-color: #222;
    border: 1px solid #444;
    color: var(--text-light);
    border-radius: 5px;
}
.form-control:focus {
    background-color: #222;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(197, 165, 101, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: #888;
    opacity: 1;
}

/* --- Rooms Page Modal --- */
#room-details-modal .modal-content {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}
#room-details-modal .modal-header, #room-details-modal .modal-footer {
    border-color: #333;
}

/* --- Parallax Section --- */
.parallax-section {
    background-image: url('https://placehold.co/1920x800/111/c5a565?text=Kronstay');
    padding: 150px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}
.parallax-content h2 {
    font-size: 3rem;
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.parallax-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 2rem;
}

/* --- Footer --- */
footer {
    background-color: #0d0d0d;
    padding: 50px 0 30px 0;
    text-align: center;
}
footer .footer-contact p {
    margin-bottom: 0.5rem;
    color: #ccc;
}
footer .footer-contact i {
    color: var(--secondary-color);
}
footer .social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}
footer .social-icons a:hover {
    color: var(--secondary-color);
}

/* --- Gallery --- */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}
.gallery-item img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 2rem;
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* --- New Rooms Page Showcase --- */
.room-showcase {
    margin-bottom: 80px;
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}
.room-showcase:last-child {
    margin-bottom: 0;
}
.room-showcase img {
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}
.room-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2rem 3rem;
}
.room-description h3 {
    font-size: 2.5rem;
}
.room-description .room-meta {
    margin: 20px 0;
    font-size: 1.1rem;
    color: #ccc;
    display: flex;
    flex-wrap: wrap;
}
.room-description .room-meta span {
    margin-right: 20px;
    margin-bottom: 5px;
}
.room-description .room-meta i {
    margin-right: 8px;
    color: var(--secondary-color);
}
@media (max-width: 991.98px) {
    .room-description {
        padding: 2rem 1.5rem;
        text-align: center !important;
    }
    .room-description .room-meta {
        justify-content: center !important;
    }
}

/* --- Scroll Animations --- */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: 1s all ease;
}
.reveal.active {
    transform: translateY(0);
    opacity: 1;
}