/**
 * Raga Residency - Custom Styles
 * Primary color: #ed1c24 (Red)
 * Secondary color: #2e3192 / #2a2a6a (Navy Blue)
 * Fonts: Domine, Stardos Stencil, Source Sans Pro, Bitter
 */

:root {
    --primary-color: #ed1c24;
    --primary-hover: #c4131a;
    --secondary-color: #2e3192;
    --dark-blue: #2a2a6a;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --font-heading: 'Domine', serif;
    --font-alt-heading: 'Stardos Stencil', cursive;
    --font-body: 'Source Sans Pro', sans-serif;
    --font-alt: 'Bitter', serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Headings & Typography */
h1, h2, h3, h4, h5, h6, .heading {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6, .heading {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.sec-title {
    color: var(--secondary-color) !important;
    font-size: 32px;
    margin-bottom: 40px;
}

.loc-title {
    color: var(--secondary-color) !important;
    font-size: 26px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--dark-blue);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-red {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-red:hover, .btn-red:focus {
    background-color: var(--dark-blue);
    color: #fff;
}

/* Header & Navigation */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.topbar {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 5px 0;
    font-size: 14px;
}

.topbar a {
    color: #fff;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.header-top li i {
    color: #fff;
}

.header-main {
    padding: 15px 0;
}

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

.logo-container img {
    max-width: 200px;
    height: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    padding: 10px 0;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--primary-color);
}

.bkbtn {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.bkbtn:hover {
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-blue);
    cursor: pointer;
}

/* Sticky Header */
.site-header {
    width: 100%;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    animation: slideDown 0.3s ease-in-out forwards;
}

.site-header.sticky .topbar {
    display: none;
}

@keyframes slideDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 550px;
    width: 100%;
    overflow: hidden;
}

.hero-slider .slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(49, 49, 49, 0.1), rgba(49, 49, 49, 0.3));
    z-index: 2;
    pointer-events: none; /* allow clicks to fall through */
}

/* Internal Layouts for Sliders */
.slider-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 800px;
    background: rgba(42, 42, 106, 0.75);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.slider-ui input[type="date"] {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
}

.slider-ui .btn-book {
    padding: 12px 30px;
    font-size: 18px;
}

/* Custom 3-Image Slider */
.simple-slider {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
}

.simple-slider .slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.simple-slider .slide.active {
    opacity: 1;
}

/* Sections Global spacing */
section {
    padding: 60px 0;
}

/* About Preview */
.about-preview {
    background-color: #f6f6f6;
}

.content-col {
    width: 60%;
    padding-right: 40px;
}

.content-col p {
    margin-bottom: 10px;
    font-size: 16px;
    text-align: justify;
}

.bold-text {
    font-weight: bold;
    font-size: 20px !important;
    margin-bottom: 10px 0 !important;
    text-align: center !important;
}

.video-col {
    width: 40%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 400px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Rooms Preview */
.rooms-preview {
    background-color: #f6f6f6;
    padding: 60px 0;
}

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

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

.room-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-img {
    position: relative;
    height: 332px;
    overflow: hidden;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.room-img img:nth-child(2) {
    animation: fadeSlide 4s infinite alternate ease-in-out;
}

@keyframes fadeSlide {
    0%, 35% {
        opacity: 0;
    }
    65%, 100% {
        opacity: 1;
    }
}

.room-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-info h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

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

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.amenity-item img {
    width: 20px;
    height: 20px;
}

.room-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.room-actions .btn-read {
    background-color: var(--primary-color);
}

.room-actions .btn-read:hover {
    background-color: var(--dark-blue);
}

.room-actions .btn-book {
    background-color: var(--dark-blue);
}

.room-actions .btn-book:hover {
    background-color: var(--primary-color);
}

/* Facilities */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
}

.facility-item {
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
}

.facility-item img {
    padding: 30px;
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 5px;
    transition: transform 0.3s;
}

.facility-item:hover img {
    transform: scale(1.1);
}

/* Gallery */

.gallery-preview {
    background-color: #f6f6f6;
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 265px;
    object-fit: cover;
    border: 3px solid #eee;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
}

.modal-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation-name: zoom;
    animation-duration: 0.3s;
    object-fit: contain;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.prev-modal, .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    z-index: 2001;
}

.next-modal {
    right: 20px;
}

.prev-modal {
    left: 20px;
}

.prev-modal:hover, .next-modal:hover {
    background-color: var(--primary-color);
}

/* CTA Book Now */
.booknow-cta {
    background-color: var(--primary-hover);
    padding: 40px 0;
}

.booknow-cta h3 {
    color: var(--bg-light);
    font-weight: 400;
}

/* Footer Menu */
.footer-menu {
    background-color: #a3070c;
    padding: 20px 0;
}

.footer-menu .nav-menu {
    justify-content: center;
}

.footer-menu .nav-menu li a {
    color: #fff;
    text-transform: capitalize;
    font-weight: 200;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #8a050a;
    color: #ccc;
    padding: 15px 0;
    font-size: 14px;
}

.footer-bottom a {
    color: #fff;
}

.footer-bottom a:hover {
    color: #c2b0b0;
}

/* Contact Page Specific */
.contact-info-col, 
.contact-form-col {
    width: calc(50% - 15px);
}

/* Location's Tourism Importance */
.location-preview {
    background-color: #fff;
    padding: 60px 0;
}

.location-image-wrapper {
    margin: 30px 0;
}

.location-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--dark-blue);
    font-family: var(--font-heading);
}

.location-info p {
    font-size: 18px;
    color: #444;
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
}

/* Attractions Grid */
.attractions-preview {
    background-color: #fff;
    padding: 10px 0;
}

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

.attraction-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.attraction-card:hover {
    transform: translateY(-5px);
}

.attraction-img {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

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

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

.attraction-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.attraction-info h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-blue);
    font-family: var(--font-heading);
}

.attraction-info .distance {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.attraction-info p:last-child {
    font-size: 15px;
    color: #555;
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .content-col, .video-col,
    .contact-info-col, .contact-form-col {
        width: 100%;
        padding: 0;
    }
    
    .video-col {
        margin-top: 30px;
    }

    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .bkbtn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .simple-slider {
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        height: 300px;
    }

    .rooms-grid, .gallery-grid, .rooms-grid.grid-2, .attractions-grid {
        grid-template-columns: 1fr;
    }

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

    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .booknow-cta .flex-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .contact-section .flex-row {
        flex-direction: column;
        gap: 20px !important;
    }
    
    .contact-info-col,
    .contact-form-col {
        width: 100% !important;
        padding: 0;
        margin: 0;
    }
    
    .contact-info-col {
        order: 1;
    }
    
    .contact-form-col {
        order: 2;
    }
    
    .booknow-cta h3 {
        text-align: center !important;
    }

    .footer-menu .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        display: flex;
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .slider-ui {
        flex-direction: column;
        width: 90%;
        padding: 15px;
        gap: 10px;
    }

    .slider-ui input[type="date"], .slider-ui .btn-book {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .flex-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.contact-info {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px;
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
}
.contact-info h3 {
    color: #fff;
}
.contact-info a {
    color: #fff;
    text-decoration: underline;
}
.contact-form {
    text-align: left;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
}