/* 
  Hotel Dayal - Design System
  Colors: Navy Blue, Gold, Off-White
*/

:root {
    --primary: #1a365d;
    --primary-dark: #102a43;
    --secondary: #e9c46a;
    --secondary-light: #f4d35e;
    --accent: #2c5282;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-main);
}

nav ul li a:hover {
    color: var(--secondary);
}

.btn-book {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-book:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding: 40px 0;
}

.hero-banner {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: var(--white);
    max-width: 500px;
}

.hero-content h1,
.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Booking Bar */
.booking-bar {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.booking-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.booking-field select, .booking-field input {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: inherit;
    background: #f8fafc;
}

.btn-search {
    background: var(--secondary);
    color: var(--primary);
    padding: 0 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    align-self: flex-end;
    height: 48px;
}

.btn-search:hover {
    background: var(--secondary-light);
}

/* Amenities */
.amenities {
    padding: 60px 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.amenity-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Featured Cards */
.featured {
    padding: 40px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover img {
    transform: scale(1.1);
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(26, 54, 93, 0.9));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feature-overlay h3 {
    font-size: 1.5rem;
}

.feature-overlay span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Reviews */
.reviews {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    white-space: nowrap;
}

.header-line {
    height: 1px;
    background: #e2e8f0;
    flex: 1;
}

/* Carousel Styles */
.reviews-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: 0 -20px; /* Counteract container padding for full width on mobile */
}

.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
}

.review-card {
    min-width: calc(50% - 15px); /* Show 2 cards on desktop */
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .review-card {
        min-width: 100%;
        flex: 0 0 100%;
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-whatsapp { background-color: #25D366; }
.float-call { background-color: #075E54; }

/* Large Footer */
.footer-large {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--secondary);
}


.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col p {
    opacity: 0.9;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-col p i {
    color: var(--secondary);
    margin-top: 4px; /* Align icon with first line of text */
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Home About Card Section */
.about-card-section {
    padding: 100px 0;
}

.about-card {
    background: #eef7f2; /* Light mint tint like J P Farm */
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.location-map {
    padding: 80px 0;
}

.map-wrapper {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.map-wrapper iframe {
    display: block;
}

.about-card h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.about-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-main {
    background: var(--primary);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.btn-main:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 13px 40px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.1);
}

@media (max-width: 576px) {
    .about-btns {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .btn-main, .btn-outline {
        width: 100%;
    }
}

/* Enhanced Reviews */
.rating-badge {
    background: #f0fdf4;
    padding: 15px 30px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 20px auto 40px;
}

.rating-badge i {
    color: #fbbf24;
    font-size: 1.8rem;
}

.rating-badge .score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.rating-badge .count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Split Layout */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    padding: 60px 0;
}

.contact-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-content: start;
}

.info-box i {
    background: #ecfdf5;
    color: #10b981;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-box p {
    color: #059669;
    font-weight: 500;
}

.map-card {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    box-shadow: var(--shadow);
}


/* --- Responsive Overrides --- */

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.6rem;
    }

    nav ul {
        gap: 15px;
    }

    .hero-content h1, .hero-content h2 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-card h2 {
        font-size: 2.2rem;
    }

    .about-card {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-top: 50px;
        z-index: 999;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-banner {
        height: 350px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        text-align: center;
    }

    .hero-content h1, .hero-content h2 {
        font-size: 2.1rem;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .booking-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: -20px;
        padding: 15px;
    }

    .booking-field select, .booking-field input {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn-search {
        grid-column: span 2;
        width: 100%;
        height: 44px;
        margin-top: 5px;
        align-self: center;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .amenity-item {
        font-size: 0.9rem;
        gap: 10px;
    }

    .amenity-item i {
        font-size: 1.2rem;
    }

    .featured-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 30px 15px;
    }

    .footer-col:first-child {
        grid-column: span 2;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 30px;
        margin-bottom: 10px;
    }

    .footer-col:first-child h3 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .footer-large {
        padding: 60px 0 30px;
        margin-top: 60px;
        border-top: 4px solid var(--secondary);
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .footer-col h4::after {
        left: 0;
        transform: none;
    }

    .footer-social {
        justify-content: center;
        grid-column: span 2;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 30px;
        margin-top: 20px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .room-item {
        grid-template-columns: 1fr !important;
    }

    .room-item img {
        height: 250px !important;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .map-card {
        min-height: 300px;
    }
    
    .rating-badge {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .featured-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }

    .footer-col {
        padding: 0 !important;
    }

    .footer-links {
        grid-template-columns: 1fr !important;
    }

    .footer-col p {
        font-size: 0.85rem !important;
        word-break: break-word; /* Prevents long emails/addresses from breaking the layout */
    }
    
    .room-hero h1 {
        font-size: 1.8rem !important;
    }
    
    .room-details-grid {
        padding: 20px 0 !important;
    }

    .specs-grid {
        grid-template-columns: 1fr !important;
    }
    
    .section-header h2 {
        font-size: 1.6rem !important;
    }
}

/* Room Detail Pages */
.room-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.room-hero h1 { 
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; 
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.room-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.room-details-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

.room-info h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.spec-item i { 
    color: var(--secondary); 
    font-size: 1.5rem; 
    background: #fdf6e6;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.amenity-li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.amenity-li i {
    color: var(--secondary);
    flex-shrink: 0;
}

.booking-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 120px;
    border-top: 5px solid var(--secondary);
}

.room-sidebar {
    position: relative;
}

/* Room Page Mobile Overrides */
@media (max-width: 992px) {
    .room-hero {
        height: 50vh;
    }
    
    .room-hero h1 {
        font-size: 2.2rem;
        padding: 0 15px;
    }

    .room-details-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 40px 20px !important; /* Fixed padding - was 0 before */
    }

    .room-sidebar {
        order: -1;
    }

    .booking-card {
        position: static !important;
        padding: 30px 20px !important;
    }
}

@media (max-width: 600px) {
    .specs-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .amenities-list {
        grid-template-columns: repeat(2, 1fr) !important; /* Fixed: was 1fr before */
        gap: 20px 10px !important;
    }
    
    .section-header h2 {
        white-space: normal !important; /* Allow wrapping for room titles */
    }
    
    .spec-item {
        padding: 15px !important;
    }
}
