/* ==========================================================================
   SULTAN CLEANING - MODERN LIGHT PALETTE THEME
   Brand Colors:
   Primary (Light Marine Blue):   #287DA8
   Secondary (Turquoise):          #29C6D1
   Accent Blue:                    #258DB8
   CTA (Green - Booking/Contact):  #35B85A
   Background:                     #FFFFFF
   Background Light:               #EAF8FC
   Background Soft:                #D4F2F7
   Text:                           #243746
   Text Muted:                     #64748B
   Border:                         #D8EAF1
   Footer:                         #174E6B
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap");

:root {
  /* Main Colors */
  --primary: #287DA8;
  --secondary: #29C6D1;
  --accent-blue: #258DB8;
  --cta: #35B85A;

  /* Background Colors */
  --background: #FFFFFF;
  --background-light: #EAF8FC;
  --background-soft: #D4F2F7;

  /* Text Colors */
  --text: #243746;
  --text-muted: #64748B;

  /* Borders */
  --border: #D8EAF1;

  /* Main Hero Gradient */
  --hero-gradient: linear-gradient(
    120deg,
    #287DA8 0%,
    #258DB8 55%,
    #29C6D1 100%
  );

  /* Light Section Gradient */
  --section-gradient: linear-gradient(
    120deg,
    #FFFFFF 0%,
    #EAF8FC 55%,
    #D4F2F7 100%
  );

  /* Compatibility Aliases */
  --primary-color: var(--primary);
  --primary-hover: #1e668a;
  --secondary-color: var(--secondary);
  --secondary-hover: #1fb1bc;
  --accent-color: var(--cta);
  --bg-light: var(--background-light);
  --bg-soft: var(--background-soft);
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --border-color: var(--border);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw;
}

/* General Website */
body {
    background: var(--background);
    color: var(--text);
    font-family: "Tajawal", sans-serif;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Prevent any horizontal overflow */
section,
header,
footer,
main,
.top-bar,
.main-navbar,
.hero,
.hero-wrapper {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

@supports not (overflow-x: clip) {
    section,
    header,
    footer,
    main,
    .top-bar,
    .main-navbar,
    .hero,
    .hero-wrapper {
        overflow-x: hidden;
    }
}

.max-w-700 {
    max-width: 700px;
    width: 100%;
}

/* Main Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.fw-heading {
    font-family: "Cairo", "Tajawal", sans-serif;
    font-weight: 800;
    color: var(--primary);
}

p,
.lead {
    color: var(--text);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-muted) !important;
}

/* Header */
header {
    background-color: var(--background);
}

.top-bar {
    background-color: var(--primary);
    color: #FFFFFF;
}

.main-navbar {
    backdrop-filter: blur(12px);
    background-color: var(--background) !important;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 700;
    color: var(--text) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--background-light);
}

.nav-link.active {
    color: var(--primary) !important;
    background-color: var(--background-soft);
}

/* Preserve Original Logo */
.site-logo img,
.navbar-brand img,
footer .site-logo img {
    width: auto;
    max-width: 180px;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    filter: none !important;
    display: inline-block;
}

/* ==========================================================================
   HERO SECTION (MAIN INTERFACE GRADIENT ONLY)
   ========================================================================== */
.hero,
.hero-wrapper {
    background: var(--hero-gradient);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Hero Headings */
.hero h1,
.hero h2,
.hero h3,
.hero-wrapper h1,
.hero-wrapper h2,
.hero-wrapper h3,
.hero .fw-heading,
.hero-wrapper .fw-heading {
    color: #FFFFFF !important;
}

.hero h1 span,
.hero-wrapper h1 span {
    color: #FFFFFF;
}

.hero h1 .text-brand-primary,
.hero-wrapper h1 .text-brand-primary {
    color: #FFFFFF !important;
}

.hero h1 .text-brand-secondary,
.hero-wrapper h1 .text-brand-secondary {
    color: #EAF8FC !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero p,
.hero .lead,
.hero-wrapper p,
.hero-wrapper .lead {
    color: rgba(255, 255, 255, 0.94) !important;
}

.hero-img-box img {
    border-radius: 28px;
    border: 5px solid #FFFFFF;
    box-shadow: 0 20px 45px rgba(24, 82, 112, 0.22);
    height: 440px;
    width: 100%;
    object-fit: cover;
}

.btn-hero-call {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 12px 26px;
    font-weight: 700;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-hero-call:hover {
    background: #FFFFFF;
    color: var(--primary) !important;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   SERVICES SECTION (LIGHT SECTION GRADIENT)
   ========================================================================== */
.services {
    background: var(--section-gradient);
}

/* Service Cards */
.service-card,
.service-clean-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(40, 125, 168, 0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover,
.service-clean-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
    box-shadow: 0 14px 35px rgba(40, 125, 168, 0.12);
}

/* Icons */
.service-icon,
.service-clean-icon {
    color: var(--secondary);
    font-size: 2.4rem;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon,
.service-clean-card:hover .service-clean-icon {
    transform: scale(1.12);
    color: var(--accent-blue);
}

.service-clean-title {
    font-family: "Cairo", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-clean-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.service-clean-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.service-clean-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.service-clean-card:hover .service-clean-link {
    color: var(--secondary);
}

.service-clean-card:hover .service-clean-link i {
    transform: translateX(-4px);
}

/* ==========================================================================
   OTHER SECTIONS (WHITE & LIGHT SKY BACKGROUNDS)
   ========================================================================== */
.about,
.why-us,
.before-after,
.reviews,
.blog {
    background: #FFFFFF;
}

.section-light,
.bg-brand-light {
    background-color: var(--background-light) !important;
}

.bg-brand-soft {
    background-color: var(--background-soft) !important;
}

.custom-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(40, 125, 168, 0.07);
    transition: all 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 14px 35px rgba(40, 125, 168, 0.12);
}

.card-icon-bubble {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--background-light);
    color: var(--secondary);
}

.card-icon-bubble i {
    color: var(--secondary);
}

/* Inner Page Header Banners (Light, fresh & modern) */
.page-banner,
.page-header-banner {
    background: var(--section-gradient);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-banner h1,
.page-header-banner h1 {
    color: var(--primary) !important;
}

.page-banner p,
.page-header-banner p {
    color: var(--text) !important;
}

.page-banner .breadcrumb-item a,
.page-header-banner .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.page-banner .breadcrumb-item.active,
.page-header-banner .breadcrumb-item.active {
    color: var(--secondary);
    font-weight: 700;
}

/* Quote & Booking Section */
.quote-section {
    background: var(--section-gradient);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quote-section h2 {
    color: var(--primary);
}

.quote-section p {
    color: var(--text);
}

.quote-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(40, 125, 168, 0.09);
}

/* ==========================================================================
   BUTTONS (GREEN #35B85A FOR BOOKING & CONTACT ONLY)
   ========================================================================== */
/* Primary Buttons: Booking & Contact Only */
.btn-primary,
.btn-brand-whatsapp,
.btn-booking,
.btn-contact {
    background: var(--cta) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(53, 184, 90, 0.28);
    text-decoration: none;
}

.btn-primary:hover,
.btn-brand-whatsapp:hover,
.btn-booking:hover,
.btn-contact:hover {
    background: #278D43 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 141, 67, 0.38);
}

/* General Brand Button: Navigation & Secondary actions */
.btn-brand-primary {
    background: var(--primary);
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(40, 125, 168, 0.2);
    text-decoration: none;
}

.btn-brand-primary:hover {
    background: #1e668a !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 102, 138, 0.3);
}

.btn-brand-secondary {
    background: var(--secondary);
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(41, 198, 209, 0.25);
    text-decoration: none;
}

.btn-brand-secondary:hover {
    background: #1fb1bc !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-outline-brand {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 10px;
    background: transparent;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-outline-brand:hover {
    background-color: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   UTILITY COLOR CLASSES
   ========================================================================== */
.bg-brand-primary {
    background-color: var(--primary) !important;
    color: #FFFFFF;
}

.bg-brand-secondary {
    background-color: var(--secondary) !important;
    color: #FFFFFF;
}

.bg-brand-accent {
    background-color: var(--cta) !important;
    color: #FFFFFF;
}

.text-brand-primary {
    color: var(--primary) !important;
}

.text-brand-secondary {
    color: var(--secondary) !important;
}

.text-brand-accent {
    color: var(--cta) !important;
}

.border-brand {
    border-color: var(--border) !important;
}

/* Form Inputs */
.form-control,
.form-select {
    border: 1px solid var(--border);
    color: var(--text);
    background-color: #FFFFFF;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(41, 198, 209, 0.2);
    color: var(--text);
}

/* ==========================================================================
   BEFORE & AFTER INTERACTIVE SLIDER
   ========================================================================== */
.ba-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(40, 125, 168, 0.12);
    aspect-ratio: 16 / 9;
    background: #000;
    user-select: none;
}

.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-before img,
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before {
    width: 50%;
    overflow: hidden;
    z-index: 2;
    border-left: 3px solid #fff;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.ba-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

/* ==========================================================================
   BLOG CARDS
   ========================================================================== */
.blog-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(40, 125, 168, 0.12);
    border-color: var(--secondary);
}

.blog-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

.blog-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--primary);
    color: #FFFFFF;
}

.blog-title {
    font-family: "Cairo", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.5;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
    color: var(--secondary);
}

/* ==========================================================================
   GALLERY / PORTFOLIO STYLES
   ========================================================================== */
.gallery-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-7px);
    border-color: var(--secondary);
    box-shadow: 0 16px 36px rgba(40, 125, 168, 0.12);
}

.gallery-img-box {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-box img {
    transform: scale(1.08);
}

.gallery-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--primary);
    color: #FFFFFF;
}

.gallery-tag-pill {
    background: var(--background-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #FFFFFF;
}

.accordion-button {
    font-weight: 700;
    color: var(--primary);
    background: #FFFFFF;
}

.accordion-button:not(.collapsed) {
    background-color: var(--background-soft);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--secondary);
    box-shadow: none;
}

/* Swiper Controls */
.swiper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.swiper-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 125, 168, 0.25);
}

.testimonials-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.testimonials-slider .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 6px;
    background: var(--primary);
    opacity: 1;
}

/* Floating Actions Bar (WhatsApp & Call) */
.floating-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.floating-circle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease;
    position: relative;
    text-decoration: none;
}

.floating-circle-btn:hover {
    transform: scale(1.12);
}

.floating-whatsapp {
    background: var(--cta);
}

.floating-call {
    background: var(--primary);
}

/* Sticky Mobile Bottom Action Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 12px;
    z-index: 1040;
    box-shadow: 0 -6px 20px rgba(40, 125, 168, 0.08);
    margin: 0;
    overflow: hidden;
}

.mobile-bottom-bar .btn {
    font-size: 0.92rem;
    font-weight: 700;
    padding: 11px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(40, 125, 168, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #1e668a 0%, var(--primary) 100%);
    color: #FFFFFF !important;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 28px rgba(40, 125, 168, 0.38);
}

/* ==========================================================================
   FOOTER (ELEGANT DEEP SEA BLUE #174E6B)
   ========================================================================== */
footer {
    background: #174E6B !important;
    color: #FFFFFF !important;
}

footer h5,
footer .fw-heading {
    color: #FFFFFF !important;
}

footer p,
footer a.text-white-50,
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

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

footer i.text-brand-secondary {
    color: var(--secondary) !important;
}

footer i.text-brand-accent {
    color: var(--cta) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (STRICT ZERO HORIZONTAL OVERFLOW)
   ========================================================================== */
img,
svg,
video,
iframe {
    max-width: 100% !important;
    height: auto;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    h1,
    .display-3,
    .display-4 {
        font-size: clamp(1.8rem, 4.5vw, 2.4rem) !important;
        line-height: 1.35 !important;
    }

    h2,
    .display-5 {
        font-size: clamp(1.45rem, 3.8vw, 1.95rem) !important;
        line-height: 1.4 !important;
    }

    h3,
    .display-6 {
        font-size: clamp(1.2rem, 3.2vw, 1.55rem) !important;
    }

    .navbar-collapse {
        background: #FFFFFF;
        border-radius: 16px;
        padding: 16px 18px;
        margin-top: 14px;
        border: 1px solid var(--border);
        box-shadow: 0 14px 35px rgba(40, 125, 168, 0.12);
        max-width: 100%;
    }

    .navbar-collapse .nav-item {
        border-bottom: 1px solid rgba(216, 234, 241, 0.5);
    }

    .navbar-collapse .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-collapse .nav-link {
        padding: 10px 12px !important;
        font-size: 1.05rem;
    }

    .navbar-collapse .d-flex {
        margin-top: 14px;
        width: 100%;
    }

    .navbar-collapse .d-flex .btn {
        width: 100%;
        justify-content: center;
        padding: 12px !important;
        font-size: 1.05rem;
    }

    .hero-img-box img {
        height: 300px;
        border-radius: 18px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 78px;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-bar {
        font-size: 0.76rem;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .top-bar .d-flex {
        gap: 8px !important;
    }

    section.py-5 {
        padding-top: 2.2rem !important;
        padding-bottom: 2.2rem !important;
    }

    .hero-wrapper,
    .hero {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-img-box img {
        height: 240px;
        border-radius: 16px;
    }

    .service-clean-card,
    .service-card {
        padding: 22px 16px 18px;
    }

    .custom-card {
        padding: 18px 14px !important;
        border-radius: 16px;
    }

    .blog-img-wrapper,
    .gallery-img-box {
        height: 190px;
    }

    .ba-slider {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .ba-handle-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .floating-bar {
        display: none !important;
    }

    .scroll-top-btn {
        bottom: 84px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    footer.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 420px) {
    .navbar-brand .fw-heading {
        font-size: 1.2rem !important;
    }

    .navbar-brand small {
        font-size: 0.65rem !important;
    }

    .btn-primary,
    .btn-brand-primary,
    .btn-brand-secondary,
    .btn-brand-whatsapp,
    .btn-outline-brand {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .top-bar span {
        font-size: 0.7rem;
    }

    .mobile-bottom-bar .btn {
        font-size: 0.82rem;
        padding: 10px 6px;
    }

    .service-clean-icon,
    .service-icon {
        font-size: 1.9rem;
        height: 40px;
        margin-bottom: 10px;
    }

    .service-clean-title {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   PRELOADER (SOAP BUBBLES & SQUEEGEE ANIMATION)
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, #edf8fc 50%, #d5f1f7 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

/* Preloader floating soap bubbles */
.preloader-bubbles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.p-bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 20%, rgba(41, 198, 209, 0.2) 60%, rgba(40, 125, 168, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8), inset 0 0 16px rgba(41, 198, 209, 0.25), 0 4px 15px rgba(41, 198, 209, 0.2);
    animation: pBubbleFloat 4s infinite linear;
}

.p-bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 20%;
    width: 25%;
    height: 25%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    filter: blur(0.5px);
}

.p-bubble:nth-child(1) { left: 12%; width: 34px; height: 34px; animation-duration: 3.6s; animation-delay: 0s; }
.p-bubble:nth-child(2) { left: 28%; width: 52px; height: 52px; animation-duration: 4.8s; animation-delay: 0.8s; }
.p-bubble:nth-child(3) { left: 45%; width: 26px; height: 26px; animation-duration: 3.2s; animation-delay: 1.5s; }
.p-bubble:nth-child(4) { left: 62%; width: 44px; height: 44px; animation-duration: 4.2s; animation-delay: 0.3s; }
.p-bubble:nth-child(5) { left: 78%; width: 30px; height: 30px; animation-duration: 3.8s; animation-delay: 1.2s; }
.p-bubble:nth-child(6) { left: 8%;  width: 46px; height: 46px; animation-duration: 5s;   animation-delay: 2s; }
.p-bubble:nth-child(7) { left: 70%; width: 22px; height: 22px; animation-duration: 3.5s; animation-delay: 2.2s; }
.p-bubble:nth-child(8) { left: 90%; width: 38px; height: 38px; animation-duration: 4.4s; animation-delay: 0.5s; }

@keyframes pBubbleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.85);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
    }
    85% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(-110vh) translateX(30px) scale(1.1);
        opacity: 0;
    }
}

/* Preloader Card & Delicate Soap Bubbles */
.preloader-card {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    min-width: unset;
    max-width: 90vw;
}

/* Delicate Soap Bubbles Cluster */
.preloader-bubbles-center {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ambient Pulsing Halo around Logo */
.preloader-logo-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 198, 209, 0.38) 0%, rgba(40, 125, 168, 0.12) 55%, transparent 75%);
    animation: logoPulseRing 2.6s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.bubble-main,
.preloader-logo-bubble {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 65% 25%, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(242, 250, 255, 0.92) 35%, 
        rgba(215, 243, 248, 0.78) 72%, 
        rgba(41, 198, 209, 0.45) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        inset 0 0 16px rgba(255, 255, 255, 0.9),
        inset 0 0 28px rgba(41, 198, 209, 0.3),
        0 12px 32px rgba(40, 125, 168, 0.25),
        0 0 35px rgba(41, 198, 209, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bubbleFloatCenter 3s infinite ease-in-out;
    z-index: 2;
    overflow: hidden;
}

.preloader-logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(11, 61, 145, 0.22));
    animation: logoBreathing 2.4s infinite ease-in-out;
    position: relative;
    z-index: 3;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.bubble-shine {
    position: absolute;
    top: 12%;
    right: 18%;
    width: 28%;
    height: 28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 80%, transparent 100%);
    pointer-events: none;
    z-index: 4;
}

.bubble-icon {
    font-size: 1.85rem;
    color: var(--primary);
    filter: drop-shadow(0 2px 5px rgba(40, 125, 168, 0.3));
    animation: iconSparkle 2.5s infinite ease-in-out;
    z-index: 3;
}

/* Satellite Delicate Bubbles */
.bubble-sat {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 65% 25%, 
        rgba(255, 255, 255, 0.92) 0%, 
        rgba(255, 255, 255, 0.3) 25%, 
        rgba(41, 198, 209, 0.3) 65%, 
        rgba(40, 125, 168, 0.35) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.75), 0 4px 15px rgba(41, 198, 209, 0.22);
    z-index: 1;
}

.bubble-sat-1 {
    width: 32px;
    height: 32px;
    top: 2px;
    right: 2px;
    animation: satFloat1 3.5s infinite ease-in-out;
}

.bubble-sat-2 {
    width: 24px;
    height: 24px;
    bottom: 8px;
    left: 4px;
    animation: satFloat2 4s infinite ease-in-out;
}

.bubble-sat-3 {
    width: 18px;
    height: 18px;
    top: 18px;
    left: 0px;
    animation: satFloat3 3.2s infinite ease-in-out;
}

@keyframes bubbleFloatCenter {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) scale(1.03, 0.97) rotate(2deg);
    }
    66% {
        transform: translateY(4px) scale(0.97, 1.03) rotate(-2deg);
    }
}

@keyframes satFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6px, -10px) scale(1.1); }
}

@keyframes satFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6px, 8px) scale(1.08); }
}

@keyframes satFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4px, -6px) scale(0.92); }
}

@keyframes iconSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    50% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

@keyframes logoBreathing {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 10px rgba(11, 61, 145, 0.22));
    }
    50% {
        transform: scale(1.09);
        filter: drop-shadow(0 6px 16px rgba(41, 198, 209, 0.45));
    }
}

@keyframes logoPulseRing {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.22);
        opacity: 0.85;
    }
}

.preloader-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 198, 209, 0.35) 0%, rgba(40, 125, 168, 0) 70%);
    animation: preloaderPulse 2s infinite ease-in-out;
}

.preloader-bubble-main {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(234, 248, 252, 0.8) 100%);
    border: 2px solid rgba(41, 198, 209, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(40, 125, 168, 0.18), inset 0 0 15px rgba(255, 255, 255, 0.9);
    overflow: hidden;
    animation: bubbleWobble 3s infinite ease-in-out;
}

.preloader-bubble-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.85) 50%,
        transparent 70%
    );
    transform: rotate(25deg);
    animation: squeegeeShimmer 2.2s infinite ease-in-out;
}

.preloader-bubble-main i {
    font-size: 2.1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.preloader-sparkle {
    position: absolute;
    color: #ffd028;
    filter: drop-shadow(0 2px 4px rgba(255, 208, 40, 0.4));
    animation: sparkleTwinkle 1.8s infinite ease-in-out;
    z-index: 4;
}

.preloader-sparkle-1 {
    top: 4px;
    right: 4px;
    font-size: 1.15rem;
    animation-delay: 0.2s;
}

.preloader-sparkle-2 {
    bottom: 6px;
    left: 6px;
    font-size: 0.95rem;
    animation-delay: 0.8s;
}

.preloader-sparkle-3 {
    top: -4px;
    left: 24px;
    font-size: 0.9rem;
    color: var(--secondary);
    animation-delay: 0.5s;
}

.preloader-title {
    font-family: "Cairo", sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.preloader-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 500;
}

.preloader-bar {
    width: 140px;
    height: 5px;
    background: rgba(40, 125, 168, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 50%, var(--cta) 100%);
    border-radius: 10px;
    animation: preloaderTrack 1.6s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.85; }
}

@keyframes bubbleWobble {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.04, 0.96) rotate(3deg); }
    66% { transform: scale(0.96, 1.04) rotate(-3deg); }
}

@keyframes squeegeeShimmer {
    0% { transform: translateX(-150%) rotate(25deg); }
    50%, 100% { transform: translateX(150%) rotate(25deg); }
}

@keyframes sparkleTwinkle {
    0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.4; }
    50% { transform: scale(1.25) rotate(45deg); opacity: 1; }
}

@keyframes preloaderTrack {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(50%); }
    100% { transform: translateX(250%); }
}


/* ==========================================================================
   HERO FLOATING SOAP BUBBLES
   ========================================================================== */
.hero,
.hero-wrapper,
.hero-ad-section {
    position: relative;
    overflow: hidden;
}

.hero-bubbles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-bubbles .bubble {
    position: absolute;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 68% 28%,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.38) 20%,
        rgba(41, 198, 209, 0.22) 50%,
        rgba(40, 125, 168, 0.16) 75%,
        rgba(41, 198, 209, 0.38) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.7),
        inset 0 0 22px rgba(41, 198, 209, 0.22),
        0 4px 18px rgba(41, 198, 209, 0.18);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    animation: heroBubbleFloat linear infinite;
    will-change: transform, opacity;
}

/* Subtle reflection glint on each bubble */
.hero-bubbles .bubble::after {
    content: '';
    position: absolute;
    top: 16%;
    right: 22%;
    width: 26%;
    height: 26%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 80%);
    transform: rotate(-30deg);
}

/* Bubble staggered positions, sizes, animations & delays */
.hero-bubbles .bubble-1  { left: 5%;  width: 48px; height: 48px; animation-duration: 14s; animation-delay: 0s; }
.hero-bubbles .bubble-2  { left: 15%; width: 28px; height: 28px; animation-duration: 11s; animation-delay: 2s; }
.hero-bubbles .bubble-3  { left: 26%; width: 62px; height: 62px; animation-duration: 18s; animation-delay: 4.5s; }
.hero-bubbles .bubble-4  { left: 38%; width: 36px; height: 36px; animation-duration: 13s; animation-delay: 1s; }
.hero-bubbles .bubble-5  { left: 50%; width: 52px; height: 52px; animation-duration: 16s; animation-delay: 3s; }
.hero-bubbles .bubble-6  { left: 63%; width: 32px; height: 32px; animation-duration: 12s; animation-delay: 6s; }
.hero-bubbles .bubble-7  { left: 73%; width: 68px; height: 68px; animation-duration: 19s; animation-delay: 1.5s; }
.hero-bubbles .bubble-8  { left: 83%; width: 42px; height: 42px; animation-duration: 15s; animation-delay: 5s; }
.hero-bubbles .bubble-9  { left: 93%; width: 24px; height: 24px; animation-duration: 10s; animation-delay: 2.8s; }
.hero-bubbles .bubble-10 { left: 20%; width: 40px; height: 40px; animation-duration: 17s; animation-delay: 7.5s; }
.hero-bubbles .bubble-11 { left: 56%; width: 58px; height: 58px; animation-duration: 20s; animation-delay: 8s; }
.hero-bubbles .bubble-12 { left: 87%; width: 34px; height: 34px; animation-duration: 14s; animation-delay: 9s; }

@keyframes heroBubbleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.65;
    }
    50% {
        transform: translateY(-50vh) translateX(25px) scale(1);
        opacity: 0.75;
    }
    75% {
        transform: translateY(-80vh) translateX(-20px) scale(1.04);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-120vh) translateX(15px) scale(1.1);
        opacity: 0;
    }
}

/* ==========================================================================
   AOS (ANIMATE ON SCROLL) ENHANCEMENTS & OVERFLOW GUARDS
   ========================================================================== */
html, body {
    overflow-x: hidden !important;
}

[data-aos] {
    pointer-events: auto;
}

/* Smoothness for AOS animations */
[data-aos][data-aos][data-aos-easing="ease-out-cubic"],
body[data-aos-easing="ease-out-cubic"] [data-aos] {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ==========================================================================
   INTERACTIVE LIVING ROOM TOUR (HOTSPOTS)
   ========================================================================== */
.interactive-tour-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F4FBFE 50%, #FFFFFF 100%);
}

.interactive-stage {
    position: relative;
    border-radius: 26px;
    background: #0C2B3D;
    border: 2px solid rgba(41, 198, 209, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: visible;
}

.interactive-stage-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(40, 125, 168, 0.15) !important;
}

.interactive-stage-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0c2b3d;
}

.interactive-bg-img {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    transition: filter 0.4s ease;
    filter: brightness(0.97) contrast(1.02);
}

.hotspots-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: none;
}

/* Individual Hotspot */
.room-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 30;
    outline: none;
    pointer-events: auto;
}

.hotspot-trigger {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    animation: hotspotHoverFloat 3.5s infinite ease-in-out;
}

/* Outer Pulsing Ping Wave */
.hotspot-ping {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: rgba(41, 198, 209, 0.45);
    border: 2px solid #29C6D1;
    animation: hotspotRipple 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    pointer-events: none;
}

/* Center Core Dot */
.hotspot-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(40, 125, 168, 0.45);
    border: 2.5px solid #FFFFFF;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.room-hotspot:hover .hotspot-dot,
.room-hotspot:focus .hotspot-dot,
.room-hotspot.active .hotspot-dot {
    transform: scale(1.22);
    background: linear-gradient(135deg, var(--cta) 0%, var(--secondary) 100%);
    box-shadow: 0 6px 22px rgba(53, 184, 90, 0.55);
}

/* Tooltip / Popover Card */
.hotspot-popover {
    position: absolute;
    width: 275px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(40, 125, 168, 0.18);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 16px 40px rgba(12, 43, 61, 0.22), 0 2px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 35;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.28s ease;
}

/* Popover Directional Positioning */
.hotspot-popover.popover-top {
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 10px) scale(0.92);
}

.hotspot-popover.popover-bottom {
    top: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, -10px) scale(0.92);
}

.hotspot-popover.popover-left {
    top: 50%;
    right: calc(100% + 14px);
    transform: translate(10px, -50%) scale(0.92);
}

.hotspot-popover.popover-right {
    top: 50%;
    left: calc(100% + 14px);
    transform: translate(-10px, -50%) scale(0.92);
}

/* Legacy Popover Disabled (Replaced by Clean Popup Modal) */
.hotspot-popover {
    display: none !important;
}

/* Interactive Hotspot Popup Modal */
#interactiveHotspotModal .modal-content {
    border-radius: 24px !important;
    box-shadow: 0 24px 64px rgba(11, 61, 145, 0.22);
    border: 1px solid rgba(41, 198, 209, 0.2) !important;
}

#interactiveHotspotModal .btn-close {
    width: 34px;
    height: 34px;
    transition: transform 0.25s ease, background-color 0.2s ease;
}

#interactiveHotspotModal .btn-close:hover {
    transform: rotate(90deg);
    background-color: #fee2e2 !important;
}

.room-hotspot .hotspot-trigger {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-hotspot .hotspot-trigger:hover {
    transform: scale(1.15);
}

/* Hotspot Floating Dynamic Label Tag */
.hotspot-label-tag {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 61, 145, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.room-hotspot:hover .hotspot-label-tag {
    transform: translateX(-50%) scale(1.08);
    background: var(--cta);
}

/* Stage Bottom Dock Bar */
.interactive-stage-dock {
    background: #ffffff;
    border-top: 1px solid rgba(40, 125, 168, 0.12);
}

.hotspot-chip-trigger {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.82rem;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.hotspot-chip-trigger:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.2);
}

.hotspot-chip-trigger:hover i {
    color: #ffffff !important;
}

.hint-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cta);
    display: inline-block;
    box-shadow: 0 0 10px var(--cta);
    animation: preloaderPulse 1.8s infinite ease-in-out;
}

@keyframes hotspotRipple {
    0% {
        transform: scale(0.75);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes hotspotHoverFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Responsive adjustments for Mobile */
@media (max-width: 767.98px) {
    .hotspot-trigger {
        width: 36px;
        height: 36px;
    }
    .hotspot-dot {
        width: 26px;
        height: 26px;
        font-size: 0.72rem;
    }
    .hotspot-popover {
        width: 220px;
        padding: 12px 14px;
    }
    .hotspot-popover.popover-top,
    .hotspot-popover.popover-bottom {
        left: 50%;
        transform: translate(-50%, 0) scale(1) !important;
    }
    .hotspot-popover.popover-left {
        right: 0;
        top: calc(100% + 8px);
        transform: translate(0, 0) scale(1) !important;
    }
    .hotspot-popover.popover-right {
        left: 0;
        top: calc(100% + 8px);
        transform: translate(0, 0) scale(1) !important;
    }
    .interactive-stage-hint {
        padding: 8px 12px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   INTERACTIVE SVG FLOOR PLAN (خريطة المنزل التفاعلية)
   ========================================================================== */
#interactive-floorplan {
    position: relative;
    background: linear-gradient(180deg, #F9FDFF 0%, #EBF7FB 50%, #F5FBFE 100%);
}

.floorplan-ambient-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.45;
}

.floorplan-ambient-glow.glow-1 {
    width: 420px;
    height: 420px;
    top: -60px;
    right: -80px;
    background: radial-gradient(circle, rgba(41, 198, 209, 0.35) 0%, transparent 70%);
}

.floorplan-ambient-glow.glow-2 {
    width: 380px;
    height: 380px;
    bottom: -60px;
    left: -60px;
    background: radial-gradient(circle, rgba(40, 125, 168, 0.3) 0%, transparent 70%);
}

/* Room Navigation Pills */
.floorplan-pills-bar {
    max-width: 900px;
    margin: 0 auto;
}

.floorplan-nav-pill {
    background: #ffffff;
    color: var(--text);
    border: 1.5px solid rgba(40, 125, 168, 0.18);
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(40, 125, 168, 0.05);
}

.floorplan-nav-pill i {
    color: var(--secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.floorplan-nav-pill:hover {
    border-color: var(--secondary);
    background: rgba(41, 198, 209, 0.08);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 198, 209, 0.15);
}

.floorplan-nav-pill.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 60%, var(--secondary) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(40, 125, 168, 0.28);
    transform: translateY(-2px);
}

.floorplan-nav-pill.active i {
    color: #ffffff;
}

/* Blueprint Card Frame */
.blueprint-card {
    background: #ffffff;
    border: 1px solid rgba(40, 125, 168, 0.16);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(24, 78, 107, 0.08) !important;
}

.blueprint-toolbar {
    background: #fdfefe;
    border-bottom: 1px solid rgba(40, 125, 168, 0.1);
}

.toolbar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.toolbar-dot.dot-red { background: #ff5f56; }
.toolbar-dot.dot-yellow { background: #ffbd2e; }
.toolbar-dot.dot-green { background: #27c93f; }

.blueprint-code {
    font-family: monospace;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

/* Blueprint SVG Styles */
.blueprint-svg-container {
    background: #fbfdfe;
    position: relative;
    overflow: hidden;
}

.blueprint-svg {
    display: block;
    user-select: none;
    -webkit-user-select: none;
}

.floorplan-room {
    cursor: pointer;
    outline: none;
}

.floorplan-room .room-zone {
    transition: fill 0.35s ease, stroke 0.35s ease, stroke-width 0.35s ease, filter 0.35s ease;
}

.floorplan-room .room-beacon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Room Beacon Radar Ripple */
.floorplan-room .beacon-pulse {
    animation: beaconPulseAnim 2.2s infinite ease-out;
    transform-origin: center;
}

@keyframes beaconPulseAnim {
    0% {
        r: 14;
        opacity: 0.6;
    }
    100% {
        r: 32;
        opacity: 0;
    }
}

/* Hover State */
.floorplan-room:hover .room-zone,
.floorplan-room:focus-visible .room-zone {
    stroke: var(--secondary) !important;
    stroke-width: 3.5px !important;
    fill: #e8f8fb !important;
    filter: drop-shadow(0 0 10px rgba(41, 198, 209, 0.45));
}

.floorplan-room:hover .room-beacon {
    transform: scale(1.08);
}

.floorplan-room:hover .beacon-dot {
    fill: var(--secondary) !important;
}

/* Active State */
.floorplan-room.active .room-zone {
    stroke: var(--primary) !important;
    stroke-width: 4px !important;
    fill: #daf2f7 !important;
    filter: drop-shadow(0 0 14px rgba(40, 125, 168, 0.55));
}

.floorplan-room.active .beacon-dot {
    fill: var(--cta) !important;
}

.floorplan-room.active .room-beacon text {
    fill: #ffffff;
}

/* Dynamic Floating Tooltip */
.floorplan-dynamic-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(15, 38, 54, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(41, 198, 209, 0.45);
    border-radius: 14px;
    padding: 12px 16px;
    width: 250px;
    box-shadow: 0 14px 30px rgba(10, 30, 44, 0.35);
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.floorplan-dynamic-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-icon {
    width: 28px;
    height: 28px;
    background: rgba(41, 198, 209, 0.2);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tooltip-title {
    font-size: 0.92rem;
    color: #ffffff;
}

.tooltip-list li {
    font-size: 0.78rem;
    color: #e0edf5;
    margin-bottom: 3px;
    line-height: 1.45;
}

.tooltip-hint {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 5px;
    font-size: 0.72rem;
    color: #a0c4d8 !important;
}

/* Blueprint Footer */
.blueprint-footer {
    border-top: 1px solid rgba(40, 125, 168, 0.1);
}

/* Room Inspector Card */
.room-inspector-card {
    background: #ffffff;
    border: 1px solid rgba(40, 125, 168, 0.16);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(24, 78, 107, 0.08) !important;
    transition: all 0.3s ease;
}

.inspector-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(40, 125, 168, 0.12) 0%, rgba(41, 198, 209, 0.18) 100%);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(41, 198, 209, 0.3);
}

.inspector-task-list li {
    font-size: 0.86rem;
    color: var(--text);
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.inspector-task-list li i {
    margin-top: 3px;
    font-size: 0.82rem;
}

.inspector-specs-box {
    background: #f3f9fc;
    border: 1px solid rgba(40, 125, 168, 0.12);
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .floorplan-pills-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }
    .floorplan-nav-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .floorplan-dynamic-tooltip {
        display: none !important; /* Mobile uses Inspector card directly */
    }
}

/* ==========================================================================
   ERROR PAGES (404 & 403)
   ========================================================================== */
.error-page-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 70px 0 90px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5FBFE 50%, #EAF8FC 100%);
    overflow: hidden;
}

.error-visual-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.error-big-number {
    font-size: clamp(6.5rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 45%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 15px 25px rgba(40, 125, 168, 0.18));
}

.error-big-number.error-403 {
    background: linear-gradient(135deg, #e03e3e 0%, #e67e22 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 25px rgba(224, 62, 62, 0.18));
}

.error-floating-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(40, 125, 168, 0.22);
    border: 2px solid rgba(41, 198, 209, 0.4);
    animation: errorFloatAnim 3.5s ease-in-out infinite;
    font-size: 2.2rem;
    color: var(--primary);
}

.error-floating-icon.icon-403 {
    border-color: rgba(230, 126, 34, 0.4);
    box-shadow: 0 12px 30px rgba(224, 62, 62, 0.22);
    color: #e03e3e;
}

@keyframes errorFloatAnim {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

.error-quick-card {
    background: #ffffff;
    border: 1px solid rgba(40, 125, 168, 0.12);
    border-radius: 16px;
    padding: 20px 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.error-quick-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 12px 25px rgba(40, 125, 168, 0.12);
}


