@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;700&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
    --primary-color: #6B4F4B; /* Muted, earthy brown */
    --secondary-color: #A57C65; /* Lighter, warm wood tone */
    --accent-color: #2E7D32; /* Deeper, forest green */
    --text-color: #333;
    --bg-color: #FDFBF7; /* Warm, off-white */
    --card-bg: #FFFFFF;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    color: var(--text-color);
}

h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
}

/* Ensure dropdown appears over other content */
.sticky-top .dropdown-menu {
    z-index: 1050;
}


#heroCarousel .hero-slide {
    min-height: 360px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* Needed for the pseudo-element overlay */
}

#heroCarousel .hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

#heroCarousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

#heroCarousel .carousel-caption h1 {
    color: white;
    font-size: 3.5rem;
}

/* Slow down the carousel fade transition */
#heroCarousel.carousel-fade .carousel-item {
    transition-duration: 1.2s;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    display: none;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #1B5E20; /* Darker green on hover */
    border-color: #1B5E20;
}

/* Apply card styling to sections for visual separation */
#booking {
    background-color: var(--card-bg);
    padding: 60px 40px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Style sections with a light background for an alternating pattern */
#contact {
     padding: 60px 0;
     background-color: #f8f9fa;
}

#accommodations {
    padding: 100px 0 60px 0;
}

.accommodation-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-separator {
    width: 400px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 60px auto;
    opacity: 0.5;
}

.history-photo {
    width: 188px;
    height: 188px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#our-cabins .card-img-top {
    height: 180px;
    object-fit: cover;
}

#attractions {
    position: relative;
    padding: 100px 0;
    background: url('../images/Mammoth2.jpeg') no-repeat center center;
    background-size: cover;
    color: #fff;
    border-radius: .5rem;
    overflow: hidden;
}

#attractions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

#attractions .container {
    position: relative;
}

#attractions h2, #attractions .lead {
    color: #fff;
}

#attractions-c {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.iframe-placeholder {
    border: 2px dashed #ccc;
    height: 400px;
    background-color: #f9f9f9;
}

.cabin-gallery .thumbnail-list img {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cabin-gallery .thumbnail-list img:hover, .cabin-gallery .thumbnail-list img.active-thumb {
    opacity: 1;
    border: 2px solid var(--accent-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
}

/* VARIATION 1: Hover Effect Cards */
.card-hover-effect {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-hover-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.card-hover-effect:hover .card-hover-image {
    filter: blur(3px);
    transform: scale(1.05);
}

.card-hover-effect:hover .card-hover-overlay {
    opacity: 1;
}

.card-hover-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.card-hover-effect:hover .card-hover-content {
    transform: translateY(0);
}

.card-hover-content h5 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-hover-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-hover-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-hover-buttons .btn {
    min-width: 120px;
}

/* VARIATION 2: Accordion Style Layout */
.cabin-toggle-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cabin-toggle-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: white;
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.cabin-toggle-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.cabin-toggle-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cabin-display-area {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cabin-display-item {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.cabin-display-item.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cabin-display-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.cabin-display-details {
    padding: 20px 25px;
}

.cabin-display-details h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.cabin-display-details p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cabin-display-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.cabin-display-details ul li {
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
    color: var(--text-color);
    font-size: 0.9rem;
}

.cabin-display-details ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
}

.cabin-display-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cabin-display-buttons .btn {
    min-width: 140px;
    padding: 8px 16px;
}

/* Responsive adjustments for Variation 2 */
@media (max-width: 991px) {
    #our-cabins-variation-2 .col-lg-5 {
        margin-bottom: 40px;
    }

    .cabin-display-image {
        height: 250px;
    }
}

/* Reviews Carousel Section */
#reviewsCarousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.review-card {
    padding: 40px 50px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-stars {
    color: #FFD700;
    font-size: 2.5rem;
    margin-bottom: 25px;
    letter-spacing: 8px;
}

.review-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0;
}

#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
    display: none;
}

#reviewsCarousel .carousel-indicators {
    bottom: -40px;
}

#reviewsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: none;
    margin: 0 5px;
}

#reviewsCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
}

/* Responsive adjustments for Reviews */
@media (max-width: 768px) {
    #reviewsCarousel {
        padding: 20px 10px;
    }

    .review-card {
        padding: 30px 25px;
        min-height: 280px;
    }

    .review-text {
        font-size: 1rem;
    }
}

/* Deal Alert Modal */
.deal-modal {
    border-radius: 15px;
    border: 3px solid var(--accent-color);
}

.deal-modal .modal-header {
    padding: 1rem 1rem 0 1rem;
}

.deal-modal .btn-close {
    font-size: 1.5rem;
}

.deal-icon {
    font-size: 4rem;
}

.deal-modal h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.deal-modal h4 {
    font-size: 1.8rem;
}

/* Deal Banner */
.deal-banner {
    color: white;
    padding: 12px 0;
    position: relative;
    z-index: 1040;
}

/* Banner Color Styles */
.deal-banner-green {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
}

.deal-banner-blue {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
}

.deal-banner-orange {
    background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
}

.deal-banner-red {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
}

.deal-banner-purple {
    background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%);
}

.deal-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.deal-banner-icon {
    font-size: 1.5rem;
}

.deal-banner-text {
    font-size: 1rem;
    line-height: 1.5;
}

.deal-banner-text strong {
    font-weight: 700;
}

.deal-banner-link {
    color: white;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 10px;
}

.deal-banner-link:hover {
    color: #FFD700;
}

.deal-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-weight: 300;
}

.deal-banner-close:hover {
    opacity: 0.8;
}

/* Responsive adjustments for Deal Banner */
@media (max-width: 768px) {
    .deal-banner-text {
        font-size: 0.9rem;
    }

    .deal-banner-icon {
        font-size: 1.2rem;
    }

    .deal-banner-content {
        gap: 10px;
    }
}

/* Promotional Banner (Firebase Dynamic) */
.promotional-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1B5E20 100%);
    color: white;
    position: relative;
    z-index: 1040;
}

.promotional-banner h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.promotional-banner p {
    margin-bottom: 0;
}

.promotional-banner .btn-close-white {
    opacity: 0.8;
}

.promotional-banner .btn-close-white:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .promotional-banner h3 {
        font-size: 1.2rem;
    }

    .promotional-banner p {
        font-size: 0.9rem;
    }
}

/* Client Booking Calendar */
.client-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.client-calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

.client-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background-color: white;
    font-weight: 600;
}

.client-calendar-day:hover:not(.disabled):not(.unavailable) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.client-calendar-day.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.client-calendar-day.other-month {
    opacity: 0.3;
}

.client-calendar-day.available {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
    color: #28a745;
}

.client-calendar-day.requested {
    border-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.client-calendar-day.awaitingPayment {
    border-color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

.client-calendar-day.unavailable {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    cursor: not-allowed;
}

.client-calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 79, 75, 0.3);
}

.client-calendar-day.in-range {
    background-color: rgba(107, 79, 75, 0.15);
    border-color: var(--primary-color);
}

/* Check-in day - diagonal split showing half selected */
.client-calendar-day.check-in-day {
    background: linear-gradient(to top left,
        rgba(107, 79, 75, 0.15) 0%,
        rgba(107, 79, 75, 0.15) 48%,
        rgba(255, 255, 255, 0.7) 48%,
        rgba(255, 255, 255, 0.7) 52%,
        transparent 52%
    );
    border-color: var(--primary-color);
    position: relative;
}

.client-calendar-day.check-in-day::after {
    content: '→';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Check-out day - diagonal split showing half selected */
.client-calendar-day.check-out-day {
    background: linear-gradient(to bottom right,
        rgba(107, 79, 75, 0.15) 0%,
        rgba(107, 79, 75, 0.15) 48%,
        rgba(255, 255, 255, 0.7) 48%,
        rgba(255, 255, 255, 0.7) 52%,
        transparent 52%
    );
    border-color: var(--primary-color);
    position: relative;
}

.client-calendar-day.check-out-day::before {
    content: '←';
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .client-calendar-day {
        font-size: 0.85rem;
    }
}
