/**
 * Hotel Vivanta Child Theme - Custom Styles (Restructured)
 *
 * Organization: Desktop → Tablet → Mobile → Small → Extra Small
 * Each breakpoint is self-contained to prevent style conflicts
 * No "base" styles that bleed across breakpoints
 *
 * Breakpoints:
 * - Desktop: 992px and up
 * - Tablet: 768px - 991px
 * - Mobile: ≤767px
 * - Small Mobile: ≤480px
 * - Extra Small: ≤360px
 */

/* ============================================
   CSS VARIABLES (from Customizer)
   ============================================ */
:root {
    --logo-width: 200px;
    --logo-height: auto;
    --btn-bg-color: #cca59e;
    --btn-text-color: #ffffff;
    --btn-hover-bg: #b8918a;
    --btn-hover-text: #ffffff;
    --btn-font-size: 14px;
    --btn-padding: 12px 30px;
    --btn-border-radius: 0;
    --btn-letter-spacing: 2px;
    --btn-text-transform: uppercase;
}

/* ============================================
   UTILITY CLASSES
   (Screen-size agnostic - body classes, visibility toggles)
   ============================================ */

/* Banner Button Styling */
.hero-section a.btn.btn-default {
    background-color: var(--btn-bg-color, #cca59e) !important;
    color: var(--btn-text-color, #ffffff) !important;
    font-size: var(--btn-font-size, 14px) !important;
    padding: var(--btn-padding, '12px 30px') !important;
    border-radius: var(--btn-border-radius, 0) !important;
    letter-spacing: var(--btn-letter-spacing, 2px) !important;
    text-transform: var(--btn-text-transform, uppercase) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.hero-section a.btn.btn-default:hover {
    background-color: var(--btn-hover-bg, #b8918a) !important;
    color: var(--btn-hover-text, #ffffff) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Hero Section - Fix Button Visibility with Long Text
   ============================================ */

/* Prevent button from being cut off when title is long */
.hero-section {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Ensure content container doesn't overflow */
.hero-section .stuff {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100vh;
    padding: 20px 15px !important;
}

/* Banner Title - Two lines, auto-sizing font */
.hero-section h1 {
    white-space: normal !important;
    overflow: visible !important;
    max-width: 100% !important;
    /* JavaScript will dynamically adjust font size */
    font-size: 80px;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 0 10px !important;
    display: block !important;
}

/* Button always visible */
.hero-section a.btn.btn-default {
    flex-shrink: 0;
    margin-top: 15px !important;
    display: inline-block !important;
}

/* ============================================
   Hero Section - Desktop & Mobile Banner Images
   ============================================ */

/* Desktop banner visible on desktop (≥768px) */
.hero-section .image-desktop {
    display: block;
}

/* Mobile banner hidden on desktop */
.hero-section .image-mobile {
    display: none;
}

/* Mobile banner visible on mobile (≤767px) */
@media (max-width: 767px) {
    .hero-section .image-desktop {
        display: none;
    }

    .hero-section .image-mobile {
        display: block;
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        height: 100% !important;
    }
}

/* Button always visible */
.hero-section a.btn.btn-default {
    flex-shrink: 0;
    margin-top: 15px !important;
    display: inline-block !important;
}

/* Sidebar Visibility - Single Post */
.single-no-sidebar #content .col-md-8,
.single-no-sidebar .vb-section-content .col-md-8 {
    width: 100% !important;
    max-width: 900px;
    margin: 0 auto;
    float: none;
}

.single-no-sidebar #content .col-md-4,
.single-no-sidebar .vb-section-content .col-md-4 {
    display: none !important;
}

/* Sidebar Visibility - Page */
.page-no-sidebar #content .col-md-8,
.page-no-sidebar .vb-section-content .col-md-8 {
    width: 100% !important;
    max-width: 900px;
    margin: 0 auto;
    float: none;
}

.page-no-sidebar #content .col-md-4,
.page-no-sidebar .vb-section-content .col-md-4 {
    display: none !important;
}

/* Sidebar Visibility - Archive/Blog */
.archive-no-sidebar #content .col-md-8,
.archive-no-sidebar .vb-section-content .col-md-8 {
    width: 100% !important;
    max-width: 900px;
    margin: 0 auto;
    float: none;
}

.archive-no-sidebar #content .col-md-4,
.archive-no-sidebar .vb-section-content .col-md-4 {
    display: none !important;
}

/* Footer widgets remain visible */
.single-no-sidebar .footer-sec .col-md-4,
.page-no-sidebar .footer-sec .col-md-4,
.archive-no-sidebar .footer-sec .col-md-4 {
    display: block !important;
    width: 33.3333%;
    float: left;
}

/* Comments Visibility */
.hide-comments #comments,
.hide-comments .comments-area,
.hide-comments .comment-respond {
    display: none !important;
}

.hide-comment-form .comment-respond,
.hide-comment-form #respond,
.hide-comment-form .comment-form {
    display: none !important;
}

.hide-comments .comment-navigation,
.hide-comment-form .comment-navigation {
    display: none !important;
}

/* ============================================
   DESKTOP STYLES (992px and up)
   ============================================ */
@media (min-width: 992px) {

    /* Header Container */
    header#masthead .container .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        position: relative;
    }

    /* Site Branding */
    .site-branding {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin-right: auto;
        z-index: 10;
        padding-top: 40px;
        width: 30%;
    }

    .custom-logo-link {
        flex-shrink: 0;
        margin: 0 20px 0 0;
    }

    .custom-logo-link img,
    .site-branding .custom-logo {
        max-width: var(--logo-width, 200px);
        height: var(--logo-height, auto);
        width: auto;
        display: block;
    }

    /* Logo wrap - Desktop LEFT alignment */
    .site-branding .logo-wrap {
        flex: 1;
        text-align: left !important;
        margin: 0;
        min-width: 0;
    }

    .site-branding .site-title,
    .site-branding .site-description {
        text-align: left !important;
        margin: 0;
        white-space: nowrap;
    }

    .site-branding .site-title a {
        white-space: nowrap;
        display: block;
    }

    .site-branding .site-title {
        margin-bottom: 5px;
    }

    /* Homepage white text */
    .home .site-branding .site-title a,
    .home .site-branding .site-description {
        color: #fff;
    }

    /* Navbar */
    .collapse.navbar-collapse {
        flex: 0 1 auto;
        position: relative;
        z-index: 5;
        display: block !important;
        height: auto !important;
    }

    nav#site-navigation ul,
    .navbar-nav,
    #menu-main {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    nav#site-navigation ul li,
    .navbar-nav>li,
    #menu-main>li {
        float: none;
        display: inline-block;
        margin: 5px 12px;
    }

    nav#site-navigation ul li a,
    .navbar-nav>li>a,
    #menu-main>li>a {
        position: relative;
        white-space: nowrap;
        display: block;
    }

    .navbar-nav .dropdown-menu {
        text-align: left;
    }

    .dropdown-menu li {
        display: block;
        width: 100%;
    }

    /* Dropdown Menu Styling */
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .navbar-nav>li:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 12px 20px;
        display: block;
        color: #333 !important;
    }

    .dropdown-menu a:hover {
        background: #f5f5f5;
    }

    /* Search/Social Container - Top Right */
    .search-wrap {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 100;
        display: flex !important;
        align-items: center;
    }

    .search-wrap .header-social {
        display: flex !important;
        align-items: center;
        gap: 5px;
    }

    .search-wrap .header-social .social-icon,
    .search-wrap .header-social .header-phone {
        display: inline-block !important;
        margin-right: 15px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .search-wrap .header-social .social-icon a,
    .search-wrap .header-social .header-phone a {
        font-size: 16px;
    }

    /* Hide search button */
    .search-wrap button#btn-search {
        display: none !important;
    }

    /* Homepage white text for navbar */
    .home.page-template-template-home nav#site-navigation ul li a,
    .home.page-template-template-home .navbar-nav>li>a {
        color: #fff;
    }

    .home.page-template-template-home nav#site-navigation ul li a:hover,
    .home.page-template-template-home .navbar-nav>li>a:hover {
        color: rgba(255, 255, 255, 0.8);
    }

    .home.page-template-template-home .search-wrap .header-social .social-icon a,
    .home.page-template-template-home .search-wrap .header-social .header-phone a {
        color: #fff;
    }

    /* Hide mobile toggle */
    .navbar-toggle {
        display: none !important;
    }

    /* Footer widgets */
    .single-no-sidebar .footer-sec .col-md-4,
    .page-no-sidebar .footer-sec .col-md-4,
    .archive-no-sidebar .footer-sec .col-md-4 {
        width: 33.3333%;
    }
}

/* ============================================
   TABLET STYLES (768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {

    /* Header */
    header#masthead .container .row {
        flex-wrap: wrap;
    }

    header#masthead {
        padding: 15px 0;
        position: relative;
        z-index: 999;
    }

    /* Site Branding - Centered */
    .site-branding {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        padding-top: 60px !important;
        display: block;
    }

    .custom-logo-link {
        margin: 0 auto;
    }

    .custom-logo-link img,
    .site-branding .custom-logo {
        max-width: 150px;
    }

    /* Logo wrap - Tablet CENTER alignment */
    .site-branding .logo-wrap {
        width: 100%;
        text-align: center !important;
    }

    .site-branding .site-title,
    .site-branding .site-description {
        white-space: normal !important;
        text-align: center !important;
    }

    /* Search Wrap - Full width container */
    .search-wrap {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        padding: 0 30px;
    }

    /* Social Icons - Left side, Vertical */
    .search-wrap .header-social {
        position: absolute !important;
        left: 30px;
        top: 25px;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px;
    }

    .search-wrap .header-social .social-icon,
    .search-wrap .header-social .header-phone {
        margin-right: 0 !important;
        margin-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .search-wrap .header-social .social-icon:last-child,
    .search-wrap .header-social .header-phone:last-child {
        margin-bottom: 0;
    }

    .search-wrap .header-social .social-icon a,
    .search-wrap .header-social .header-phone a {
        font-size: 14px;
    }

    /* Menu Toggle - Right side */
    .navbar-toggle {
        display: block;
        position: absolute !important;
        top: 25px;
        right: 30px;
        z-index: 100;
    }

    /* Navbar Collapse */
    .navbar-collapse {
        width: 100%;
        background: #fff;
        float: left;
    }

    /* Sidebar adjustments */
    .single-no-sidebar #content .col-md-8,
    .page-no-sidebar #content .col-md-8,
    .archive-no-sidebar #content .col-md-8 {
        max-width: 100%;
        padding: 0 15px;
    }

    .single-no-sidebar .footer-sec .col-md-4,
    .page-no-sidebar .footer-sec .col-md-4,
    .archive-no-sidebar .footer-sec .col-md-4 {
        width: 100%;
    }
}

/* ============================================
   MOBILE STYLES (≤767px)
   ============================================ */
@media (max-width: 767px) {

    /* Header */
    header#masthead {
        padding: 10px 15px;
        min-height: 70px;
        position: relative;
        z-index: 999;
    }

    header#masthead .container .row {
        flex-wrap: wrap;
    }

    /* Site Branding - Centered, stacked */
    .site-branding {
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding-top: 55px !important;
        padding-bottom: 10px !important;
        display: flex;
    }

    .custom-logo-link {
        margin: 0 auto 15px;
    }

    .custom-logo-link img,
    .site-branding .custom-logo {
        max-width: 120px;
        height: auto;
    }

    /* Logo wrap - Mobile CENTER alignment */
    .site-branding .logo-wrap {
        width: 100%;
        text-align: center !important;
    }

    .site-branding .site-title,
    .site-branding .site-description {
        white-space: normal !important;
        text-align: center !important;
        margin: 0;
    }

    .site-branding .site-title {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .site-branding .site-description {
        font-size: 12px;
    }

    /* Homepage white text */
    .home .site-branding .site-title a,
    .home .site-branding .site-description {
        color: #fff;
    }

    /* Search Wrap - Full width container */
    .search-wrap {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        padding: 0 15px;
    }

    /* Social Icons - Left side, Vertical */
    .search-wrap .header-social {
        position: absolute !important;
        left: 15px;
        top: 18px;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px;
    }

    .search-wrap .header-social .social-icon,
    .search-wrap .header-social .header-phone {
        margin-right: 0 !important;
        margin-bottom: 8px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .search-wrap .header-social .social-icon:last-child,
    .search-wrap .header-social .header-phone:last-child {
        margin-bottom: 0;
    }

    .search-wrap .header-social .social-icon a,
    .search-wrap .header-social .header-phone a {
        font-size: 14px;
    }

    /* Hide search button */
    .search-wrap button#btn-search {
        display: none !important;
    }

    /* Menu Toggle - Right side */
    .navbar-toggle {
        display: block;
        position: absolute !important;
        top: 18px;
        right: 15px;
        z-index: 100;
    }

    /* Navbar Collapse */
    .navbar-collapse {
        width: 90%;
        margin: auto;
        float: none;
        background: #fff;
    }

    .navbar-collapse.in {
        overflow: visible !important;
        display: block !important;
    }

    nav#site-navigation ul,
    .navbar-nav,
    #menu-main {
        margin: 0;
        float: none;
        display: block;
    }

    .navbar-nav>li {
        display: block;
        width: 100%;
        float: none;
    }

    nav#site-navigation ul li a {
        color: #565656;
        padding-top: 10px;
    }

    #menu-main .dropdown-menu {
        position: relative;
        left: auto;
        top: auto;
    }

    /* Hero Section - Mobile adjustments */
    .hero-section {
        min-height: 100vh !important;
        height: 100vh !important;
    }

    .home.page-template-template-home .hero-section .stuff {
        padding-top: 120px !important;
        margin-top: 0 !important;
    }

    .home.page-template-template-home .hero-section h1 {
        margin-top: 20px !important;
    }

    .hero-section h1 {
        /* Visibility controlled by Customizer setting: "Show Banner Title on Mobile" */
    }

    .hero-section .stuff {
        max-width: 95%;
        padding: 20px 15px !important;
        text-align: center;
        overflow-y: auto !important;
        max-height: 100vh;
    }

    .hero-section a.btn.btn-default {
        padding: 10px 20px !important;
        font-size: 12px !important;
        margin-top: 15px;
        flex-shrink: 0;
    }

    /* Sidebar adjustments */
    .single-no-sidebar #content .col-md-8,
    .page-no-sidebar #content .col-md-8,
    .archive-no-sidebar #content .col-md-8 {
        max-width: 100%;
        padding: 0 15px;
    }

    .single-no-sidebar .footer-sec .col-md-4,
    .page-no-sidebar .footer-sec .col-md-4,
    .archive-no-sidebar .footer-sec .col-md-4 {
        width: 100%;
    }

    /* Section titles centered */
    .section-title {
        text-align: center;
    }

    /* Footer centered */
    footer#colophon .footer-sec {
        text-align: center;
    }

    /* About section */
    .about-sec .about-section-wrap .section-title {
        margin: auto;
    }

    .about-second-wrap {
        text-align: center;
    }

    /* Explore section */
    .explore-section .section-title {
        margin: auto;
        padding-bottom: 30px;
    }

    .explore-section .intro-section .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .intro-section .controls {
        justify-content: center;
    }

    /* Blog section */
    .blog-wrap {
        margin: 0 20px;
        margin-bottom: 40px;
        text-align: center;
    }
}

/* ============================================
   SMALL MOBILE STYLES (≤480px)
   ============================================ */
@media (max-width: 480px) {

    /* Header */
    header#masthead {
        padding: 8px 10px;
    }

    .site-branding {
        padding-top: 50px !important;
    }

    .custom-logo-link img,
    .site-branding .custom-logo {
        max-width: 100px;
    }

    .site-branding .site-title {
        font-size: 16px;
    }

    .site-branding .site-description {
        font-size: 11px;
    }

    /* Search wrap padding adjustment */
    .search-wrap {
        padding: 0 10px !important;
    }

    /* Social icons positioning */
    .search-wrap .header-social {
        left: 10px;
        top: 15px;
        gap: 5px;
    }

    /* Menu toggle */
    .navbar-toggle {
        right: 10px;
        top: 15px;
    }

    /* Hero Section */
    .hero-section {
        min-height: 100vh !important;
        height: 100vh !important;
    }

    .home.page-template-template-home .hero-section .stuff {
        padding-top: 120px !important;
    }

    .hero-section h1 {
        /* Visibility controlled by Customizer setting: "Show Banner Title on Mobile" */
    }

    .hero-section .stuff {
        max-width: 100%;
        overflow-y: auto !important;
    }

    /* Section titles */
    .section-title h2 {
        line-height: 51px;
        font-size: 34px;
    }

    /* CTA Section */
    .cta-sec .cta-title {
        font-size: 33px;
        line-height: 53px;
    }

    .cta-sec .cta-content {
        padding: 20px;
    }

    /* Controls centered */
    .controls {
        margin: 0;
        text-align: center;
        justify-content: center;
    }

    /* Slide title wrap */
    .slide__title-wrap {
        position: relative;
        text-align: center;
        margin-top: 165px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        left: auto;
    }

    /* Slider items */
    .slider-item.active .show-mobile {
        display: block;
        margin: 1rem 0;
        text-align: center;
        min-width: 0;
    }

    .intro .title {
        display: inline-block;
        font-size: 3rem;
        text-align: center;
    }

    /* Custom slideshow */
    .custom-slideshow .custom-slide {
        height: 500px;
    }

    .custom-slideshow .custom-slide:before {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        content: "";
        position: absolute;
    }

    span.slide__title-inner a {
        color: #fff;
        font-size: 34px;
        line-height: 25px;
    }

    /* Blog section */
    .blog-wrap {
        margin: 0 20px;
        margin-bottom: 40px;
    }

    /* Hide social icon search on very small */
    header#masthead {
        padding: 18px 20px;
    }

    .header-social .social-icon a,
    .header-social .header-phone a {
        color: #000;
        font-size: 15px;
    }

    button#btn-search {
        margin-right: 15px;
    }
}

/* ============================================
   EXTRA SMALL MOBILE STYLES (≤360px)
   ============================================ */
@media (max-width: 360px) {

    /* Site branding */
    .site-branding .site-title {
        font-size: 14px;
    }

    /* Hero Section */
    .hero-section h1 {
        /* Visibility controlled by Customizer setting: "Show Banner Title on Mobile" */
    }

    .hero-section .stuff {
        overflow-y: auto !important;
    }

    .home.page-template-template-home .hero-section .stuff {
        padding-top: 120px !important;
    }

    /* Social icons */
    .search-wrap .header-social {
        left: 10px;
        top: 15px;
        gap: 5px;
    }

    /* Menu toggle */
    .navbar-toggle {
        right: 8px;
        top: 15px;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 28px;
    }

    /* Explore section */
    .explore-section .section-title {
        max-width: none;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
}
/* ============================================
   About Section - Read More Link
   ============================================ */

.about-read-more {
    margin-top: 20px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color, #d4a574);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.read-more-link:hover {
    color: var(--secondary-color, #c9956c);
    transform: translateX(5px);
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(3px);
}
