/* 
=========================================
Mandalika Queen Hostel - Main Stylesheet
=========================================
*/

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --info: #0dcaf0;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --body-bg: #ffffff;
    --body-color: #212529;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* General Styles */
body {
    font-family: var(--font-primary);
    color: var(--body-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
}

.top-bar a:hover {
    color: #fff;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(13, 110, 253, 0.08);
}

.nav-link.btn-primary {
    color: #fff !important;
    background: var(--primary);
}

.nav-link.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(13,110,253,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-actions .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.hero-stats .stat-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-top: 0.3rem;
}

/* Section Styling */
.section-badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Quick Booking Form */
.booking-quick-form {
    position: relative;
    z-index: 3;
}

.booking-quick-form .card {
    margin-top: -50px;
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    line-height: 1.2;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Room Cards */
.room-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.room-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.room-card:hover .room-image {
    transform: scale(1.08);
}

.room-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-capacity-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.75rem;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(13, 110, 253, 0.08);
    color: var(--dark);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.amenity-tag.more {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
}

.room-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Amenity Cards */
.amenity-card {
    background: #fff;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.amenity-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    color: var(--body-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Sticky Filter */
.sticky-filter {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Location Features */
.location-features .d-flex {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 4rem 0 2rem;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0.3rem;
}

.social-links .social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links.contact-info li {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-links.contact-info li i {
    margin-top: 0.2rem;
    color: var(--primary);
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.6rem 1.2rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

/* Booking Detail Card */
.booking-details-card {
    border-radius: 12px;
}

/* Booking Options */
.room-option {
    cursor: pointer;
    transition: all 0.2s;
}

.room-option:hover {
    border-color: var(--primary) !important;
}

.room-option .form-check {
    padding-left: 1.5em;
}

.room-option .form-check-input {
    margin-left: -1.5em;
}

/* Success Animation */
.success-animation {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        margin-top: 0;
    }
    
    .hero-stats .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .about-experience-badge {
        position: static;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .top-bar span {
        display: inline-block;
        margin: 0.2rem 0;
    }
    
    .top-bar .col-md-6.text-end {
        text-align: left !important;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .booking-quick-form .card {
        margin-top: 0;
    }
    
    .hero-stats .stat-item {
        margin-bottom: 0.5rem;
    }
}

/* Additional Utilities */
.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary), #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}

.rounded-4 { border-radius: 16px !important; }
.rounded-5 { border-radius: 24px !important; }

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Gallery page */
.gallery-section .nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}
