@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

.g-4, .gx-4, .gy-4 {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}

.g-4 > [class*="col-"] {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-bottom: 30px;
}

.gx-5 {
    margin-right: -3rem;
    margin-left: -3rem;
}

.gx-5 > [class*="col-"] {
    padding-right: 3rem;
    padding-left: 3rem;
}

:root {
    --bg-dark-1: #712137;
    --bg-dark-1-rgb: 113, 33, 55;
    --primary-color: #712137;
    --primary-color-rgb: 113, 33, 55;
    --secondary-color: #BD8E68;
    --secondary-color-rgb: 189, 142, 104;
    --bg-light: #fdf5f6;
}

body, h1, h2, h3, h4, h5, h6, .btn, .form-control, p, span, div {
    font-family: 'Outfit', sans-serif;
}

/* Essential Utility Classes */
.fs-12 {
    font-size: 12px;
}

.fs-16 {
    font-size: 16px;
}

.fs-20 {
    font-size: 20px;
}

.fs-36 {
    font-size: 36px;
}

.fs-48 {
    font-size: 48px;
}

.fs-72 {
    font-size: 72px;
}

.w-40px {
    width: 40px;
}

.w-80px {
    width: 80px;
}

.w-150px {
    width: 150px;
}

.h-100px {
    height: 100px;
}

.op-4 {
    opacity: 0.4;
}

.op-5 {
    opacity: 0.5;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.abs-middle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.bottom-0 {
    bottom: 0;
}

.top-0 {
    top: 0;
}

.start-0 {
    left: 0;
}

.end-0 {
    right: 0;
}

.navbar-custom {
    z-index: 999;
}

.bg-blur {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

/* Modern Border Radius Integration */
.rounded-1 {
    border-radius: 10px;
}

.rounded-3 {
    border-radius: 20px;
}

.btn-main, .btn-outline, .btn-float {
    border-radius: 30px;
}

.form-control, select, textarea {
    border-radius: 8px;
}

.de-image-hover, .relative.overflow-hidden {
    border-radius: 15px;
}

/* General Layout */
/* Essential Styles */
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

#wrapper {
    width: 100%;
    position: relative;
}

#fixed-sidebar {
    position: fixed;
    width: 350px;
    right: 0;
    top: 0;
    height: 100vh;
    background-color: #5a182a;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 0l6 6-6 6L0 6z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: repeat;
    z-index: 1001;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-left: none;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.sidebar-form-section {
    padding: 30px 25px;
}

.sidebar-contact-block {
    padding: 20px 25px;
    width: 90%;
    background-color: #1d2735;
    position: relative;
    box-sizing: border-box;
    margin-top: auto;
    border-radius: 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    left: 5%;
    margin-top: 0px;
    margin-bottom: 10px;
}

#main-content {
    width: calc(100% - 350px);
    margin-right: 350px;
    position: relative;
    background: #fff;
    padding: 0 60px;
    padding-top: 120px;
    padding-bottom: 0px;
    box-sizing: border-box;
    border-radius: 20px 0 0 20px;
}

header {
    position: fixed;
    width: calc(100% - 350px);
    left: 0;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: solid 1px #eee;
    transition: all .3s;
    box-sizing: border-box;
}

header .container {
    max-width: 100%;
    padding: 0 100px;
}

/* Floating Action Buttons */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-float {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    transition: all 0.3s ease;
    border-radius: 30px;
}

.btn-float:hover {
    transform: translateY(-5px);
}

.btn-info-mobile {
    background: linear-gradient(135deg, #712137 0%, #a13d56 100%);
    border: 2px solid #BD8E68;
    display: none;
    width: auto;
    border-radius: 30px;
    padding: 0 20px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mobile-wa-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1005;
    display: none;
    align-items: center;
    background: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
}

/* Rule 2: Menu becomes toggle below 1300px */
@media (max-width: 1300px) {
    #mainmenu, .header-phone {
        display: none;
    }

    #custom-menu-btn {
        display: flex;
        margin-left: 20px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: #712137;
        border-radius: 8px;
        z-index: 1001;
    }

    #custom-menu-btn:before {
        content: "\f0c9";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 20px;
        color: #fff;
    }

    /* Prevent theme JS from breaking header height */
    header, header.header-light, header.header-mobile {
        height: auto;
        min-height: 70px;
        padding-bottom: 10px;
    }
}

/* Adjustment for 1301px - 1400px to fit menu on one line */
@media (min-width: 1301px) and (max-width: 1400px) {
    #logo img {
        max-width: 180px;
    }

    header #mainmenu li {
        margin: 0 5px;
    }

    header #mainmenu li a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    header .container {
        padding: 0 40px;
    }
}

/* Rule 1, 3, 5, 6: Sidebar transformation at 1280px */
/* Mobile Sidebar & Menu Close Button */
.sidebar-close-mob {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    color: #712137;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#fixed-sidebar.visible .sidebar-close-mob,
#mobile-menu-sidebar.visible .sidebar-close-mob {
    display: flex !important;
}

.sidebar-close-mob:hover {
    background: #712137;
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 1280px) {
    #main-content {
        width: 100%;
        margin-right: 0;
        border-radius: 20px 20px 0 0;
        padding: 30px;
        padding-top: 120px;
    }

    header {
        width: 100%;
    }

    header .container {
        padding: 0 30px;
    }

    #fixed-sidebar {
        width: 400px;
        right: -400px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    #fixed-sidebar.visible {
        right: 0;
    }

    /* Rule 6: Floating buttons appear */
    .btn-info-mobile, .mobile-wa-wrapper {
        display: flex;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .float-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .mobile-wa-wrapper {
        bottom: 20px;
        left: 20px;
        max-width: 60%;
    }

    /* Extra refinement for small mobile */
    @media (max-width: 768px) {
        .float-buttons {
            bottom: 30px;
            right: 20px;
        }
        
        .btn-info-mobile {
            height: 50px;
            font-size: 15px;
            box-shadow: 0 5px 15px rgba(113, 33, 55, 0.4);
            border: 1px solid rgba(189, 142, 104, 0.5);
        }
        
        .mobile-wa-wrapper {
            bottom: 30px;
            left: 20px;
            padding: 10px 18px;
            border-radius: 40px;
        }
    }

    #fixed-sidebar, #mobile-menu-sidebar {
        width: 400px;
        right: -400px;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    #fixed-sidebar.visible, #mobile-menu-sidebar.visible {
        right: 0;
    }
}

#mobile-menu-sidebar {
    position: fixed;
    width: 400px;
    right: -400px;
    top: 0;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    padding: 60px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobile-menu-sidebar .sidebar-nav-section ul li {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

#mobile-menu-sidebar.visible .sidebar-nav-section ul li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for menu items */
#mobile-menu-sidebar.visible .sidebar-nav-section ul li:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu-sidebar.visible .sidebar-nav-section ul li:nth-child(2) {
    transition-delay: 0.2s;
}

#mobile-menu-sidebar.visible .sidebar-nav-section ul li:nth-child(3) {
    transition-delay: 0.3s;
}

#mobile-menu-sidebar.visible .sidebar-nav-section ul li:nth-child(4) {
    transition-delay: 0.4s;
}

#mobile-menu-sidebar.visible .sidebar-nav-section ul li:nth-child(5) {
    transition-delay: 0.5s;
}

#mobile-menu-sidebar.visible .sidebar-nav-section ul li:nth-child(6) {
    transition-delay: 0.6s;
}

#mobile-menu-sidebar .sidebar-nav-section ul li a {
    display: flex;
    align-items: center;
    padding: 15px 0;
    font-size: 22px;
    font-weight: 400;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

#mobile-menu-sidebar .sidebar-nav-section ul li a:hover {
    color: #712137 !important;
    padding-left: 10px;
}

#mobile-menu-sidebar .sidebar-nav-section ul li a i {
    width: 30px;
    font-size: 14px;
    color: #BD8E68;
    transition: color 0.3s;
}

#mobile-menu-sidebar .sidebar-nav-section ul li a:hover i {
    color: #712137;
}

.menu-social-links {
    margin-top: auto;
    padding-top: 30px;
}

.menu-social-links a {
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s ease;
}

.menu-social-links a .social-icon-box {
    width: 45px;
    height: 45px;
    background: #fdf5f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #712137;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(113, 33, 55, 0.1);
}

.menu-social-links a:hover .social-icon-box {
    background: #712137;
    color: #fff;
    transform: scale(1.1);
}

.menu-social-links a:hover span {
    color: #712137 !important;
}

.menu-footer-info {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

/* Always hide nav on fixed sidebar */
.sidebar-nav-section {
    display: none;
}

#mobile-menu-sidebar .sidebar-nav-section {
    display: block;
}

/* Always show form on desktop sidebar */
@media (min-width: 1281px) {
    .sidebar-form-section {
        display: block;
    }
}

/* Rule 4: Full-width drawer below 991px */
@media (max-width: 991px) {
    #fixed-sidebar {
        width: 100%;
        right: -100%;
    }

    #main-content section, #main-content footer {
        padding: 40px 0;
    }
}

/* Fix cramped layout for facilities section below 1450px due to sidebar */
@media (max-width: 1450px) {
    #section-facilities .col-xl-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    #section-facilities .px-4.py-4 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Fix amenities section below 1376px - Icons above text */
@media (max-width: 1376px) {
    section.bg-color-op-5 i.abs {
        position: relative;
        display: block;
        margin-bottom: 15px;
        left: auto;
        top: auto;
        padding-top: 0;
    }

    section.bg-color-op-5 .ps-100 {
        padding-left: 0;
    }

    section.bg-color-op-5 .relative {
        text-align: left;
    }
}

header #mainmenu li a {
    color: #333333;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 14px;
    transition: color .3s;
}

header #mainmenu li a:hover {
    color: #712137;
}

/* Updated Section Styling with Gaps and Radius */
#main-content section, #subheader {
    width: 100%;
    max-width: 100%;
    padding: 90px 20px;
    box-sizing: border-box;
    position: relative;
    clear: both;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
}

#main-content footer {
    width: 100%;
    max-width: 100%;
    padding: 90px 20px;
    box-sizing: border-box;
    position: relative;
    clear: both;
    margin-bottom: 0px;
}

#subheader {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}

/* Theme Color Restoration */
footer, .section-dark, .bg-dark, .bg-dark-1, section.bg-dark, section.bg-dark-1 {
    background-color: #712137;
    color: #ffffff;
}

.btn-main {
    background-color: #712137;
    color: #fff;
    transition: .3s;
}

.btn-main:hover {
    background-color: #BD8E68;
}

.bg-color-op-5 {
    background-color: rgba(113, 33, 55, .1);
}

section.bg-color-op-5 {
    background-color: #fdf5f6;
    overflow: hidden;
    width: 100%;
}

.gradient-edge-bottom {
    background: linear-gradient(0deg, rgb(37, 9, 9) 0%, rgba(113, 33, 55, 0) 100%);
}

.de-marquee-list-1 {
    background-color: transparent;
    white-space: nowrap;
}

/* Utility Section Overrides */
#main-content section.p-0 {
    padding: 0 !important;
}

#main-content section.no-top {
    padding-top: 0 !important;
}

#main-content section.no-margin {
    margin-bottom: 0 !important;
}

.sidebar-title {
    font-weight: 700;
    color: #BD8E68;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.sidebar-form .form-control {
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    height: auto;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #BD8E68;
    box-shadow: none;
}

.sidebar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
}

.sidebar-form option {
    background: #5a182a;
    color: #fff;
}

.sidebar-form .btn-main {
    width: 100%;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
    background-color: #BD8E68;
    border-color: #BD8E68;
    color: #fff;
}

#fixed-sidebar p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.kvkk-wrapper label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 0;
}

.kvkk-wrapper input[type="checkbox"] {
    accent-color: #712137;
}

/* Typing Indicator Animation */
.dot {
    width: 4px;
    height: 4px;
    background: #1a8e46;
    border-radius: 50%;
    margin: 0 1px;
    display: inline-block;
    animation: dot-blink 1.4s infinite ease-in-out both;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-blink {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(0.7);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.sidebar-form-section {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}



.header-phone {
    font-weight: 700;
    color: #712137;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone i {
    background: #712137;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.sidebar-close-mob {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #712137;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10001;
    cursor: pointer;
}

.wa-rep-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a8e46;
    margin-right: 12px;
}

.wa-text-box {
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-size: 11px;
    color: #666;
    line-height: 1;
    margin-bottom: 2px;
}

.wa-msg {
    color: #1a8e46;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.wa-typing-dots {
    display: flex;
    margin-left: 5px;
}

.wa-dot {
    width: 4px;
    height: 4px;
    background: #1a8e46;
    border-radius: 50%;
    margin: 0 1px;
    animation: wa-typing 1.4s infinite;
}

.wa-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.wa-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wa-typing {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

/* Radius for colored sections */
footer, .section-dark, .bg-dark, .bg-dark-1, section.bg-dark, section.bg-dark-1, section.bg-color-op-5 {
    
    overflow: hidden;
}

@media (min-width: 993px) {
    .sidebar-close-mob {
        display: none;
    }
}

/* Removal of unwanted ripple animation element */
.ripple-wave-active, .ripple-wave, .ripple-wave.active, [class*="ripple-wave"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
