/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-dark: #343a40;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition-base: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    padding: 1rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    background-color: #1a1a1a;
}

.hero-image {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
	z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
	margin-top: 110px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    width: calc(100% - 2rem);
    margin: 1rem auto;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	z-index: 3;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    position: relative; /* Add this */
    z-index: 4; /* Add this */
}

.search-button {
    height: 58px;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative; /* Add this */
    z-index: 4; /* Add this */
}

.search-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

/* Form Elements */
.form-floating {
    position: relative;
    z-index: 3;
}

.form-floating > label {
    padding-left: 1rem;
    color: #6c757d;
    z-index: 4;
}

.form-control {
    border-radius: 0.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Carousel */
.carousel {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 500px;
    position: relative;
	background-color: #1a1a1a;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none; /* Remove any default filters */
    image-rendering: -webkit-optimize-contrast; /* Improve image sharpness on webkit browsers */
    image-rendering: crisp-edges; /* Improve image sharpness on other browsers */
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0.9) 100%);
    padding: 3rem 2rem 2rem;
    text-align: left; /* Align text to left */
}

.carousel-caption h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-caption .location-info,
.carousel-caption .price-info {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1rem;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    margin-bottom: 1rem;
    z-index: 2;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    opacity: 0.5;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-base);
    background: white;
    box-shadow: var(--box-shadow);
}

.lodge-card {
    height: 100%;
}

.card-img-wrapper {
    position: relative;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Lodge Info */
.lodge-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.lodge-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Price Tag */
.price-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Facilities */
.facilities-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.facility-badge {
    background-color: var(--light-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Location & Price Info in Carousel */
.location-info,
.price-info {
    margin-bottom: 0.5rem;
    color: white;
}

.location-info i {
    margin-right: 0.25rem;
}

/* Section Title */
.section-title {
	padding-top: 25px;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons in Carousel */
.btn-mobile {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-shadow: none;
}

.btn-mobile:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-image {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .search-box {
        margin: 1rem;
        padding: 1rem !important;
    }
	
	.search-button {
        height: 48px;
        margin-top: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-item {
        height: 400px;
    }

	.section-title {
        padding-top: 25px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-caption {
        padding: 1rem;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    }
    
    .carousel-caption h3 {
        font-size: 1.75rem;
    }
    
    .location-info,
    .price-info {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .facility-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

	.carousel-caption .location-info,
    .carousel-caption .price-info {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 32px;
        height: 32px;
        margin: 0 0.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 1.5rem 1rem 1rem;
    }

    .carousel-caption h3 {
        font-size: 1.25rem;
    }

    .carousel-caption .location-info,
    .carousel-caption .price-info {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Search Button Styles */
.search-box .btn-primary {
    height: calc(3.5rem + 2px); /* Match the height of floating labels */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.search-box .form-floating {
    margin-bottom: 0;
}

/* Make sure the button matches form-control height */
@media (max-width: 767px) {
    .search-box .btn-primary {
        height: 3rem;
        margin-top: 0;
    }
}

/* Make inputs and button consistent height */
.search-box .form-control,
.search-box .form-select {
    height: calc(3.5rem + 2px);
}

/* Fix for floating labels */
.search-box .form-floating > .form-control,
.search-box .form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

/* Review Modal Styles */
.rating-buttons .btn-group {
    gap: 5px;
}

.rating-buttons .btn {
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
}

.rating-buttons .btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.rating-buttons label.btn-outline-warning:hover {
    background-color: rgba(255, 193, 7, 0.1);
    color: #000;
}

.rating-buttons label.btn-outline-warning.active {
    background-color: #ffc107;
    color: #000;
}

/* Review Modal Structure */
.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Review Badge Styles */
.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Review Button Styles */
.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

/* Form Validation Styles */
.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Lodge Calendar Specific Styles */
.lodge-calendar {
    background-color: #fff;
    padding: 2rem 0;
}

/* Room Card Specific Styles */
.room-card {
    margin-bottom: 1.5rem;
}

.room-card .rounded-start {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.room-card .card-title {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.room-card .badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.room-card .guest-capacity {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.room-card .availability-status {
    font-weight: 500;
}

.room-card .availability-status.available {
    color: var(--success-color);
}

.room-card .availability-status.unavailable {
    color: var(--danger-color);
}

/* Date Selector Specific Styles */
.date-selector .form-control {
    font-size: 1rem;
    height: 3.5rem;
}

.date-selector .btn-primary {
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lodge Header Section */
.lodge-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.lodge-header .star-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lodge-header .reviews-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.lodge-header .reviews-link:hover {
    text-decoration: underline;
}

/* Room Image Styles */
.room-image-container {
    height: 100%;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.room-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image-container img {
    transform: scale(1.05);
}

/* Responsiveness for Room Cards */
@media (max-width: 768px) {
    .room-card .rounded-start {
        border-radius: 1rem 1rem 0 0;
        height: 200px;
    }

    .room-card .row {
        flex-direction: column;
    }

    .room-card .col-md-4 {
        width: 100%;
    }

    .room-card .col-md-8 {
        width: 100%;
    }

    .lodge-header {
        text-align: center;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .lodge-header .star-rating {
        justify-content: center;
    }
}

/* Alert Styling for No Rooms */
.alert-info {
    background-color: rgba(var(--info-color), 0.1);
    border: none;
    border-radius: 1rem;
    padding: 1.5rem;
}

.alert-info i {
    color: var(--info-color);
    font-size: 1.2rem;
}

/* Mobile Navigation */
.mobile-nav {
    padding: 0.75rem 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
}

.mobile-nav .row {
    margin: 0;
}

.mobile-nav .col {
    padding: 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.25rem;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Body Padding for Mobile Nav */
@media (max-width: 991px) {
    body {
        padding-bottom: 72px; /* Adjust based on your mobile nav height */
    }
}

/* Hide Mobile Nav on Desktop */
@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .nav-link span {
        display: none;
    }
}