/*
Theme Name: Nun Boutique Hotel
Theme URI: https://nunhotels.com/themes/nun-boutique-hotel
Author: Rasid
Author URI: https://nunhotels.com
Description: Professional boutique hotel theme with Nun Slider integration, native booking system (no plugin dependency), and modern design. Perfect for hotels, pensions, and hospitality businesses.
Version: 4.5.73
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nun-boutique-hotel
Tags: hotel, booking, responsive, bootstrap, slider
*/

/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
    --primary-color: #2c5f7f;
    --secondary-color: #d4a574;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: var(--header-bg, #ffffff);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-info a {
    color: #ffffff;
    margin-right: 20px;
}

.header-info a:hover {
    color: var(--secondary-color);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-navigation {
    padding: 0;
    background-color: var(--header-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ── Bootstrap navbar overrides ─────────────────── */
.main-navigation .navbar {
    padding: 0;                                     /* Reset Bootstrap default — controlled via Customizer */
    background-color: var(--header-bg, #ffffff) !important;
}

/* Main menu items */
.main-navigation .navbar-nav .nav-item .nav-link {
    font-weight: 500;
    position: relative;
    transition: color .2s ease;
}

/* Underline indicator */
.main-navigation .navbar-nav > .nav-item > .nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 1rem;
    background: var(--secondary-color);
    transition: width .25s ease;
}
.main-navigation .navbar-nav > .nav-item > .nav-link:hover::after,
.main-navigation .navbar-nav > .nav-item.current-menu-item > .nav-link::after {
    width: calc(100% - 2rem);
}
/* Dropdown toggle caret is Bootstrap's own — remove our pseudo-element for dropdown items */
.main-navigation .navbar-nav .dropdown-item::after { display: none; }

/* Dropdown sub-menu */
.main-navigation .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-radius: 8px;
    padding: .5rem 0;
    min-width: 200px;
}
.main-navigation .navbar-nav .dropdown-item {
    font-size: .92rem;
    transition: background .15s ease, color .15s ease;
}

/* Toggler */
.main-navigation .navbar-toggler {
    border-color: var(--header-nav-color, #1a1a1a);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 992px) {
    .main-navigation .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    }
    .main-navigation .navbar-nav .dropdown:hover > .dropdown-menu,
    .main-navigation .navbar-nav .dropdown:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.main-navigation .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,26,26,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Use a dedicated caret element for submenu items (avoid ::after collisions with hover underline) */
.main-navigation .dropdown-toggle::after,
.site-header .dropdown-toggle::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
}

.main-navigation .navbar-nav > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
}

.main-navigation .nun-menu-caret {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.35rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.85;
    flex: 0 0 auto;
}

/* Legacy .nav-menu compatibility */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu li a:hover:after,
.nav-menu li.current-menu-item a:after {
    width: 100%;
}

.book-now-btn {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
}

.book-now-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/images/hero-bg.jpg') center/cover;
    color: #ffffff;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ============================================
   BOOKING WIDGET
   ============================================ */

.booking-widget {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-search {
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ============================================
   ROOMS SECTION
   ============================================ */

.rooms-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.room-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

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

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

.room-price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.room-content {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.room-features {
    list-style: none;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.room-features li {
    color: var(--text-light);
    font-size: 0.9rem;
}

.room-features li:before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 5px;
}

.btn-view-room {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-view-room:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

/* ============================================
   AMENITIES & FEATURES
   ============================================ */

.amenities-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.amenity-item {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.amenity-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.amenity-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.amenity-item p {
    color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--text-dark);
    color: #ffffff;
    padding: 3rem 0 1rem;
}


/* Ensure Font Awesome icons render in footer even if footer typography overrides font-family */
.site-footer .fa-solid,
.site-footer i.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}
.site-footer .fa-regular,
.site-footer i.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}
.site-footer .fa-brands,
.site-footer i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Column 4 – Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .5rem;
    font-size: .9rem;
    line-height: 1.5;
}
.footer-contact-list li i {
    flex-shrink: 0;
    margin-top: .15rem;
    opacity: .75;
}
.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    padding: .6rem 1.25rem;
    background: var(--secondary-color, #d4a574);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    cursor: pointer;
    line-height: 1;
}
.footer-contact-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Inline SVG icons fallback for Font Awesome */
.nun-fa-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.125em;
    margin-right: 0.35rem;
}

.nun-fa-svg svg {
    display: block;
}
.footer-contact-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff !important;
}
.footer-copyright { font-size: .85rem; opacity: .8; }
.footer-divider   { opacity: .5; }

/* Footer menus */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: left;
    color: #cccccc;
}

.footer-copyright {
    text-align: left;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================
   ADVANCED SLIDER
   ============================================ */


/* Social Media */
.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social a {
    color: #ffffff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: var(--secondary-color);
}

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

.footer-widget .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-widget .social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    padding: 80px 0;
}

.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

/* ============================================
   INNER PAGES SIDEBAR
   ============================================ */

.nun-sidebar {
    position: sticky;
    top: 1.5rem;
}

.sidebar-widget-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark, #333);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color, #d4a574);
}

.sidebar-block {
    background: #fff;
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-color, #e0e0e0);
}

.sidebar-recent-posts li {
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    padding-bottom: 0.5rem;
}
.sidebar-recent-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-recent-posts a {
    color: var(--text-dark, #333);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}
.sidebar-recent-posts a:hover {
    color: var(--secondary-color, #d4a574);
}

.sidebar-categories a {
    color: var(--text-dark, #333);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.2rem 0;
}
.sidebar-categories a:hover {
    color: var(--secondary-color, #d4a574);
}

.sidebar-tags a.badge {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-dark, #333) !important;
    transition: var(--transition, all 0.3s ease);
}
.sidebar-tags a.badge:hover {
    background: var(--secondary-color, #d4a574) !important;
    color: #fff !important;
    border-color: var(--secondary-color, #d4a574) !important;
}

.nun-sidebar-booking .header-book-btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 4px;
}

/* Widget area mode */
.nun-sidebar .widget {
    background: #fff;
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-color, #e0e0e0);
    margin-bottom: 1.25rem;
}
.nun-sidebar .widget-title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color, #d4a574);
}

/* ============================================
   ROOM GALLERY – LIGHTBOX GRID
   ============================================ */

.nun-room-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

/* First image spans 2 columns (hero thumbnail) */
.nun-room-gallery-grid .nun-gallery-link:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.nun-gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
    aspect-ratio: 4/3;
    text-decoration: none;
}

.nun-gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.nun-gallery-link:hover img {
    transform: scale(1.06);
}

.nun-gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
}

.nun-gallery-link:hover .nun-gallery-zoom {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

/* GLightbox custom overrides */
.glightbox-container .gslide-description {
    background: rgba(0, 0, 0, 0.7);
}

.nun-amenity-icon {
    display: inline-block;
    vertical-align: -0.125em;
    color: #28a745;
    flex-shrink: 0;
}

/* ============================================
   ROOM CARDS – Unified Design (v4)
   ============================================ */

.nun-room-card:not(.nun-room-unavailable):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14) !important;
}
.nun-room-card:not(.nun-room-unavailable):hover .nun-room-img {
    transform: scale(1.04);
}