/* ==========================================================
   MEDITHIAN SAFE RESPONSIVE THEME
   This file is intentionally scoped to body.md-site.
   It improves presentation without changing PHP, AJAX IDs,
   Bootstrap behaviour, database loops, or dynamic markup.
   ========================================================== */

:root {
    --md-green-950: #063b2d;
    --md-green-900: #075440;
    --md-green-800: #087455;
    --md-green-700: #099266;
    --md-green-600: #0aaa72;
    --md-green-100: #dff8ec;
    --md-green-50: #f0fbf6;
    --md-coral-600: #ed5f55;
    --md-coral-500: #ff7368;
    --md-coral-100: #ffebe8;
    --md-blue-700: #145b87;
    --md-ink: #10241d;
    --md-text: #334b42;
    --md-muted: #6c7f78;
    --md-line: #dce8e3;
    --md-line-strong: #c7d9d1;
    --md-page: #f5f9f7;
    --md-card: #ffffff;
    --md-card-soft: #eef7f3;
    --md-shadow-xs: 0 2px 8px rgba(7, 69, 49, .05);
    --md-shadow-sm: 0 8px 24px rgba(7, 69, 49, .08);
    --md-shadow-md: 0 18px 48px rgba(7, 69, 49, .12);
    --md-shadow-lg: 0 28px 75px rgba(7, 69, 49, .16);
    --md-radius-sm: 10px;
    --md-radius: 17px;
    --md-radius-lg: 26px;
    --md-pill: 999px;
    --md-container: 1240px;
    --md-font-body: "DM Sans", "Poppins", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --md-font-display: "DM Serif Display", "Noto Serif", Georgia, serif;
    --md-ease: 220ms ease;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.md-site {
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at 5% 1%, rgba(10, 170, 114, .07), transparent 25rem),
        radial-gradient(circle at 96% 15%, rgba(255, 115, 104, .06), transparent 23rem),
        var(--md-page) !important;
    color: var(--md-text) !important;
    font-family: var(--md-font-body) !important;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.md-site *,
body.md-site *::before,
body.md-site *::after {
    box-sizing: border-box;
}

body.md-site img,
body.md-site svg,
body.md-site video,
body.md-site canvas,
body.md-site iframe {
    max-width: 100%;
}

body.md-site img {
    height: auto;
}

body.md-site a {
    color: var(--md-green-800);
    text-underline-offset: 3px;
}

body.md-site a:hover {
    color: var(--md-green-600);
}

body.md-site h1,
body.md-site h2,
body.md-site h3,
body.md-site h4,
body.md-site h5,
body.md-site h6 {
    color: var(--md-ink);
    font-family: var(--md-font-display) !important;
    letter-spacing: -.022em;
    line-height: 1.16;
}

body.md-site p:last-child {
    margin-bottom: 0;
}

body.md-site ::selection {
    background: rgba(10, 170, 114, .22);
    color: var(--md-green-950);
}

body.md-site .container,
body.md-site .container-sm,
body.md-site .container-md,
body.md-site .container-lg,
body.md-site .container-xl,
body.md-site .container-xxl {
    width: min(calc(100% - 32px), var(--md-container)) !important;
    max-width: var(--md-container) !important;
    margin-inline: auto !important;
}

body.md-site main {
    min-height: 45vh;
}

body.md-site section {
    max-width: 100%;
}

/* ---------- Header and navigation ---------- */
body.md-site .topbar-emergency {
    position: relative;
    z-index: 1042;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 6px 0 !important;
    background: var(--md-green-950) !important;
    color: rgba(255, 255, 255, .94) !important;
    font-size: 12.5px !important;
    letter-spacing: .01em;
}

body.md-site .topbar-emergency a,
body.md-site .topbar-emergency span {
    color: inherit !important;
}

body.md-site .pulse-dot {
    background: #78efad !important;
    box-shadow: 0 0 0 0 rgba(120, 239, 173, .55);
}

body.md-site .top-header {
    position: relative;
    z-index: 1041;
    padding: 7px 0 !important;
    background: linear-gradient(90deg, var(--md-coral-600), var(--md-coral-500)) !important;
    border: 0 !important;
    color: #fff !important;
}

body.md-site .top-header .container {
    min-height: 34px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
}

body.md-site .marquee-container {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

body.md-site .lab-marquee {
    color: #fff !important;
    font-family: var(--md-font-body) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .015em;
}

body.md-site .topbar-emergency-tag {
    flex: 0 0 auto;
    color: #fff !important;
    font-size: 12px !important;
    white-space: nowrap;
}

body.md-site .header-icons {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
}

body.md-site .header-icons .cart-icon,
body.md-site .login-btn,
body.md-site .header-user-btn {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, .38) !important;
    border-radius: var(--md-pill) !important;
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: var(--md-font-body) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    backdrop-filter: blur(8px);
    transition: transform var(--md-ease), background var(--md-ease), border-color var(--md-ease) !important;
}

body.md-site .header-icons .cart-icon {
    width: 40px !important;
    padding: 0 !important;
}

body.md-site .header-icons .cart-icon:hover,
body.md-site .login-btn:hover,
body.md-site .header-user-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .7) !important;
    background: rgba(255, 255, 255, .25) !important;
    color: #fff !important;
}

body.md-site .cart-badge {
    top: -7px !important;
    right: -7px !important;
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0 5px !important;
    border: 2px solid #fff;
    border-radius: var(--md-pill) !important;
    background: var(--md-green-800) !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

body.md-site .header-dropdown-menu,
body.md-site .dropdown-menu {
    padding: 8px !important;
    border: 1px solid var(--md-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: var(--md-shadow-md) !important;
}

body.md-site .dropdown-item {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    color: var(--md-text) !important;
    font-weight: 650;
}

body.md-site .dropdown-item:hover {
    background: var(--md-green-50) !important;
    color: var(--md-green-800) !important;
}

body.md-site .navbar {
    position: sticky !important;
    top: 0;
    z-index: 1039 !important;
    min-height: 76px;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(199, 217, 209, .8) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 8px 30px rgba(7, 69, 49, .08) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: min-height var(--md-ease), box-shadow var(--md-ease) !important;
}

body.md-site.md-scrolled .navbar {
    min-height: 66px;
    box-shadow: 0 12px 34px rgba(7, 69, 49, .13) !important;
}

body.md-site .navbar > .container {
    display: flex;
    align-items: center;
}

body.md-site .navbar-brand {
    min-width: 190px;
    display: inline-flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 0 !important;
    margin-right: 18px !important;
    color: var(--md-ink) !important;
    text-decoration: none !important;
}

body.md-site .brand-icon-wrap {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px;
    display: grid !important;
    place-items: center !important;
    border-radius: 15px !important;
    background: linear-gradient(145deg, var(--md-green-600), var(--md-green-800)) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(9, 146, 102, .25) !important;
}

body.md-site .brand-icon-wrap i {
    color: #fff !important;
}

body.md-site .brand-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
    line-height: 1.05 !important;
}

body.md-site .brand-text .brand-name {
    color: var(--md-ink) !important;
    font-family: var(--md-font-display) !important;
    font-size: 26px !important;
    font-weight: 400 !important;
}

body.md-site .brand-text .brand-sub {
    margin-top: 4px;
    color: var(--md-muted) !important;
    font-family: var(--md-font-body) !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: .13em;
    text-transform: uppercase;
}

body.md-site .navbar-nav {
    align-items: center;
    gap: 2px !important;
}

body.md-site .navbar-nav .nav-link {
    min-height: 42px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    color: #3a5047 !important;
    font-family: var(--md-font-body) !important;
    font-size: 13.5px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: color var(--md-ease), background var(--md-ease), transform var(--md-ease) !important;
}

body.md-site .navbar-nav .nav-link:hover,
body.md-site .navbar-nav .nav-link.active {
    background: var(--md-green-100) !important;
    color: var(--md-green-900) !important;
    transform: translateY(-1px);
}

body.md-site .navbar-nav .nav-emergency-btn {
    margin-left: 6px;
    padding-inline: 16px !important;
    border: 1px solid var(--md-coral-500) !important;
    border-radius: var(--md-pill) !important;
    background: linear-gradient(135deg, var(--md-coral-500), var(--md-coral-600)) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(237, 95, 85, .22) !important;
}

body.md-site .navbar-nav .nav-emergency-btn:hover {
    background: var(--md-coral-600) !important;
    color: #fff !important;
}

body.md-site .navbar-toggler {
    width: 46px;
    height: 44px;
    padding: 0 !important;
    border: 1px solid var(--md-line-strong) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: var(--md-shadow-xs) !important;
}

body.md-site .navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(10, 170, 114, .14) !important;
}

body.md-site .navbar-toggler-icon {
    filter: none !important;
}

/* ---------- Hero areas ---------- */
body.md-site .hero,
body.md-site .product-hero,
body.md-site .page-hero,
body.md-site .inner-hero,
body.md-site .about-hero,
body.md-site .contact-hero,
body.md-site .labs-hero,
body.md-site .packages-hero,
body.md-site .surgery-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden !important;
}

body.md-site .hero {
    min-height: min(670px, calc(100vh - 110px));
    display: flex;
    align-items: center;
    padding-block: clamp(62px, 8vw, 108px) !important;
    background-color: var(--md-green-950) !important;
}

body.md-site .hero::after,
body.md-site .product-hero::after,
body.md-site .page-hero::after,
body.md-site .inner-hero::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    z-index: -1;
    width: 430px;
    height: 430px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}

body.md-site .hero-content,
body.md-site .hero .container {
    z-index: 3;
}

body.md-site .hero h1 {
    max-width: 760px;
    margin-bottom: 20px !important;
    color: #fff !important;
    font-size: clamp(42px, 5.4vw, 72px) !important;
    font-weight: 400 !important;
    line-height: 1.03 !important;
    text-wrap: balance;
}

body.md-site .hero h1 span {
    color: #8af2bc !important;
}

body.md-site .hero .lead,
body.md-site .hero p.lead {
    max-width: 680px;
    margin-bottom: 28px !important;
    color: rgba(255, 255, 255, .86) !important;
    font-size: clamp(16px, 1.8vw, 20px) !important;
    line-height: 1.65 !important;
}

body.md-site .hero-badge,
body.md-site .eyebrow,
body.md-site .sec-label,
body.md-site .section-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-height: 31px;
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--md-pill) !important;
    background: rgba(255, 255, 255, .11) !important;
    color: #fff !important;
    font-family: var(--md-font-body) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

body.md-site .hero-cta-group {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
}

body.md-site .btn,
body.md-site button,
body.md-site input[type="submit"],
body.md-site input[type="button"] {
    font-family: var(--md-font-body) !important;
}

body.md-site .btn,
body.md-site .btn-primary,
body.md-site .btn-success,
body.md-site .btn-danger,
body.md-site .btn-book,
body.md-site .btn-learn,
body.md-site .btn-search-hero,
body.md-site .btn-hero-primary,
body.md-site .btn-hero-red,
body.md-site .btn-hero-outline,
body.md-site .book-btn,
body.md-site .submit-btn,
body.md-site .cta-btn {
    min-height: 46px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 10px 19px !important;
    border-radius: var(--md-pill) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: transform var(--md-ease), box-shadow var(--md-ease), background-color var(--md-ease), border-color var(--md-ease) !important;
}

body.md-site .btn:hover,
body.md-site .btn-book:hover,
body.md-site .btn-learn:hover,
body.md-site .btn-search-hero:hover,
body.md-site .btn-hero-primary:hover,
body.md-site .btn-hero-red:hover,
body.md-site .btn-hero-outline:hover,
body.md-site .book-btn:hover,
body.md-site .submit-btn:hover,
body.md-site .cta-btn:hover {
    transform: translateY(-2px);
}

body.md-site .btn-primary,
body.md-site .btn-success,
body.md-site .btn-book,
body.md-site .btn-search-hero,
body.md-site .btn-hero-primary,
body.md-site .book-btn,
body.md-site .submit-btn,
body.md-site .cta-btn {
    border-color: var(--md-green-700) !important;
    background: linear-gradient(135deg, var(--md-green-600), var(--md-green-800)) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(9, 146, 102, .22) !important;
}

body.md-site .btn-danger,
body.md-site .btn-hero-red {
    border-color: var(--md-coral-600) !important;
    background: linear-gradient(135deg, var(--md-coral-500), var(--md-coral-600)) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(237, 95, 85, .22) !important;
}

body.md-site .btn-outline-primary,
body.md-site .btn-outline-success,
body.md-site .btn-learn,
body.md-site .btn-hero-outline {
    border: 1.5px solid var(--md-green-700) !important;
    background: #fff !important;
    color: var(--md-green-800) !important;
    box-shadow: none !important;
}

body.md-site .hero .btn-hero-outline {
    border-color: rgba(255, 255, 255, .62) !important;
    background: rgba(255, 255, 255, .10) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
}

body.md-site .hero-stats {
    max-width: 690px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    margin-top: 34px !important;
    padding: 16px 14px !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--md-radius) !important;
    background: rgba(4, 55, 40, .34) !important;
    backdrop-filter: blur(14px);
}

body.md-site .hero-stat {
    min-width: 0;
    padding: 4px 14px !important;
    text-align: left !important;
}

body.md-site .hero-stat .num {
    color: #fff !important;
    font-family: var(--md-font-display) !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    line-height: 1 !important;
}

body.md-site .hero-stat .label {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: .03em;
}

body.md-site .hero-divider {
    width: 1px !important;
    height: auto !important;
    align-self: stretch;
    background: rgba(255, 255, 255, .16) !important;
}

body.md-site .hero-search-card,
body.md-site .search-card,
body.md-site .filter-card {
    padding: clamp(21px, 3vw, 30px) !important;
    border: 1px solid rgba(255, 255, 255, .65) !important;
    border-radius: var(--md-radius-lg) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: var(--md-shadow-lg) !important;
    backdrop-filter: blur(18px);
}

body.md-site .hero-search-card h5,
body.md-site .search-card h5 {
    margin-bottom: 18px !important;
    font-size: 24px !important;
}

/* ---------- Sections and headings ---------- */
body.md-site .section-header,
body.md-site .section-title,
body.md-site .sec-title {
    position: relative;
}

body.md-site .section-header {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: clamp(30px, 5vw, 52px) !important;
}

body.md-site .section-title,
body.md-site .sec-title,
body.md-site .section-header h2 {
    color: var(--md-ink) !important;
    font-size: clamp(30px, 4.1vw, 48px) !important;
    font-weight: 400 !important;
    text-wrap: balance;
}

body.md-site .section-header p,
body.md-site .sec-sub,
body.md-site .section-subtitle {
    color: var(--md-muted) !important;
    font-size: 16px !important;
}

body.md-site .section-line {
    width: 72px !important;
    height: 4px !important;
    margin-top: 14px !important;
    border-radius: var(--md-pill) !important;
    background: linear-gradient(90deg, var(--md-green-600), var(--md-coral-500)) !important;
}

body.md-site .bg-light,
body.md-site section.bg-light {
    background: var(--md-green-50) !important;
}

/* ---------- Cards ---------- */
body.md-site .card,
body.md-site .feature-card,
body.md-site .service-card,
body.md-site .lab-card,
body.md-site .package-card,
body.md-site .stats-card,
body.md-site .testimonial-card,
body.md-site .why-card,
body.md-site .cat-card,
body.md-site .dept-card,
body.md-site .contact-card,
body.md-site .profile-card,
body.md-site .summary-card,
body.md-site .booking-card,
body.md-site .info-card,
body.md-site .value-card,
body.md-site .test-item {
    border: 1px solid var(--md-line) !important;
    border-radius: var(--md-radius) !important;
    background: var(--md-card) !important;
    box-shadow: var(--md-shadow-sm) !important;
}

body.md-site .feature-card,
body.md-site .service-card,
body.md-site .lab-card,
body.md-site .package-card,
body.md-site .stats-card,
body.md-site .testimonial-card,
body.md-site .why-card,
body.md-site .cat-card,
body.md-site .dept-card,
body.md-site .contact-card,
body.md-site .value-card {
    height: 100%;
    overflow: hidden;
    transition: transform var(--md-ease), box-shadow var(--md-ease), border-color var(--md-ease) !important;
}

body.md-site .feature-card:hover,
body.md-site .service-card:hover,
body.md-site .lab-card:hover,
body.md-site .package-card:hover,
body.md-site .stats-card:hover,
body.md-site .testimonial-card:hover,
body.md-site .why-card:hover,
body.md-site .cat-card:hover,
body.md-site .dept-card:hover,
body.md-site .contact-card:hover,
body.md-site .value-card:hover {
    transform: translateY(-6px) !important;
    border-color: var(--md-line-strong) !important;
    box-shadow: var(--md-shadow-md) !important;
}

body.md-site .card-header {
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--md-line) !important;
    border-radius: var(--md-radius) var(--md-radius) 0 0 !important;
    background: linear-gradient(135deg, var(--md-green-50), #fff) !important;
    color: var(--md-ink) !important;
    font-weight: 800 !important;
}

body.md-site .card-body {
    padding: clamp(18px, 3vw, 26px) !important;
}

body.md-site .feature-icon,
body.md-site .icon-wrap,
body.md-site .cat-icon,
body.md-site .why-icon,
body.md-site .qs-icon,
body.md-site .check-icon,
body.md-site .ci-icon {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto;
    border-radius: 15px !important;
    background: var(--md-green-100) !important;
    color: var(--md-green-800) !important;
}

body.md-site .price-pill,
body.md-site .package-price,
body.md-site .price-badge,
body.md-site .duration-tag,
body.md-site .discount-badge,
body.md-site .filter-pill,
body.md-site .filter-stat-pill,
body.md-site .badge {
    border-radius: var(--md-pill) !important;
    font-family: var(--md-font-body) !important;
    font-weight: 800 !important;
}

body.md-site .price-pill,
body.md-site .package-price,
body.md-site .price-badge {
    color: var(--md-green-900) !important;
}

/* ---------- Forms ---------- */
body.md-site .form-control,
body.md-site .form-select,
body.md-site input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body.md-site textarea,
body.md-site select {
    min-height: 48px;
    max-width: 100%;
    padding: 10px 14px !important;
    border: 1px solid var(--md-line-strong) !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    color: var(--md-ink) !important;
    font-family: var(--md-font-body) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color var(--md-ease), box-shadow var(--md-ease), background var(--md-ease) !important;
}

body.md-site textarea.form-control,
body.md-site textarea {
    min-height: 120px;
    resize: vertical;
}

body.md-site .form-control:focus,
body.md-site .form-select:focus,
body.md-site input:focus,
body.md-site textarea:focus,
body.md-site select:focus {
    border-color: var(--md-green-600) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 4px rgba(10, 170, 114, .13) !important;
}

body.md-site .form-label,
body.md-site label {
    color: var(--md-ink);
    font-family: var(--md-font-body) !important;
    font-size: 13px;
    font-weight: 750;
}

body.md-site .input-group > .form-control,
body.md-site .input-group > .form-select {
    border-radius: 12px !important;
}

body.md-site .input-group-text {
    border-color: var(--md-line-strong) !important;
    background: var(--md-green-50) !important;
    color: var(--md-green-800) !important;
}

body.md-site .suggest-box,
body.md-site #suggestBox {
    z-index: 1060 !important;
    overflow-y: auto !important;
    max-height: 280px !important;
    margin-top: 7px;
    border: 1px solid var(--md-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: var(--md-shadow-md) !important;
}

body.md-site .suggest-item {
    padding: 11px 13px !important;
    border-bottom: 1px solid var(--md-line) !important;
    color: var(--md-text) !important;
}

body.md-site .suggest-item:hover {
    background: var(--md-green-50) !important;
}

/* ---------- Tables and dynamic results ---------- */
body.md-site .md-table-scroll,
body.md-site .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: #fff;
    box-shadow: var(--md-shadow-xs);
    -webkit-overflow-scrolling: touch;
}

body.md-site .md-table-scroll > table,
body.md-site .table-responsive > table {
    margin-bottom: 0 !important;
    border: 0 !important;
}

body.md-site table {
    width: 100%;
    color: var(--md-text) !important;
    vertical-align: middle !important;
}

body.md-site table thead th {
    padding: 13px 15px !important;
    border-color: var(--md-line) !important;
    background: var(--md-green-50) !important;
    color: var(--md-green-950) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.md-site table tbody td {
    padding: 13px 15px !important;
    border-color: var(--md-line) !important;
}

body.md-site table tbody tr:hover > * {
    background: #f8fcfa !important;
}

body.md-site #resultArea,
body.md-site #searchResults,
body.md-site .search-results,
body.md-site .results-area {
    min-width: 0;
}

body.md-site .alert {
    border: 1px solid var(--md-line) !important;
    border-radius: 13px !important;
    box-shadow: var(--md-shadow-xs);
}

/* ---------- Accordion, modal and tabs ---------- */
body.md-site .accordion-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--md-line) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: var(--md-shadow-xs);
}

body.md-site .accordion-button {
    min-height: 60px;
    padding: 16px 19px !important;
    background: #fff !important;
    color: var(--md-ink) !important;
    font-family: var(--md-font-body) !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

body.md-site .accordion-button:not(.collapsed) {
    background: var(--md-green-50) !important;
    color: var(--md-green-900) !important;
}

body.md-site .accordion-body {
    padding: 18px 20px !important;
    color: var(--md-text);
}

body.md-site .modal-content {
    overflow: hidden;
    border: 1px solid var(--md-line) !important;
    border-radius: var(--md-radius-lg) !important;
    box-shadow: var(--md-shadow-lg) !important;
}

body.md-site .modal-header,
body.md-site .modal-footer {
    border-color: var(--md-line) !important;
    background: #fff !important;
}

body.md-site .modal-body {
    background: #fff !important;
}

body.md-site .nav-tabs {
    gap: 7px;
    border-bottom-color: var(--md-line) !important;
}

body.md-site .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    color: var(--md-muted) !important;
    font-weight: 750 !important;
}

body.md-site .nav-tabs .nav-link.active {
    background: var(--md-green-100) !important;
    color: var(--md-green-900) !important;
}

/* ---------- Account, checkout, cart and profile ---------- */
body.md-site .checkout-container,
body.md-site .cart-container,
body.md-site .profile-container,
body.md-site .account-container,
body.md-site .login-container,
body.md-site .form-container,
body.md-site .content-wrapper {
    max-width: min(100% - 32px, var(--md-container)) !important;
    margin-inline: auto !important;
}

body.md-site .summary-row,
body.md-site .cart-item,
body.md-site .order-item,
body.md-site .profile-section,
body.md-site .booking-summary {
    border-color: var(--md-line) !important;
}

body.md-site .profile-sidebar,
body.md-site .checkout-card,
body.md-site .order-summary,
body.md-site .login-box,
body.md-site .signup-box,
body.md-site .auth-card {
    border: 1px solid var(--md-line) !important;
    border-radius: var(--md-radius-lg) !important;
    background: #fff !important;
    box-shadow: var(--md-shadow-md) !important;
}

/* ---------- Footer ---------- */
body.md-site .footer-main,
body.md-site footer.footer,
body.md-site footer {
    position: relative;
    overflow: hidden;
}

body.md-site .footer-main {
    padding: clamp(58px, 7vw, 86px) 0 24px !important;
    background:
        radial-gradient(circle at 12% 0, rgba(10, 170, 114, .22), transparent 26rem),
        linear-gradient(145deg, #052e24, var(--md-green-950)) !important;
    color: rgba(255, 255, 255, .72) !important;
}

body.md-site .footer-main::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--md-green-600), var(--md-coral-500));
}

body.md-site .footer-main .row {
    row-gap: 36px;
}

body.md-site .footer-main h5,
body.md-site .brand-name-footer {
    color: #fff !important;
}

body.md-site .brand-name-footer {
    font-family: var(--md-font-display) !important;
    font-size: 28px !important;
}

body.md-site .footer-main p,
body.md-site .footer-main .ci-text,
body.md-site .footer-main .footer-bottom-text {
    color: rgba(255, 255, 255, .68) !important;
}

body.md-site .footer-main a {
    color: rgba(255, 255, 255, .72) !important;
    text-decoration: none !important;
}

body.md-site .footer-main a:hover {
    color: #fff !important;
}

body.md-site .footer-links {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

body.md-site .footer-links li + li {
    margin-top: 10px;
}

body.md-site .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: transform var(--md-ease), color var(--md-ease);
}

body.md-site .footer-links a:hover {
    transform: translateX(4px);
}

body.md-site .footer-links i {
    color: #77e6a9 !important;
    font-size: 10px;
}

body.md-site .footer-emergency-box {
    margin: 20px 0 !important;
    padding: 15px 17px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .06) !important;
}

body.md-site .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

body.md-site .social-btn {
    width: 39px;
    height: 39px;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .07) !important;
}

body.md-site .social-btn:hover {
    background: var(--md-green-700) !important;
    transform: translateY(-2px);
}

body.md-site .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

body.md-site .footer-contact-item .ci-icon {
    width: 38px !important;
    height: 38px !important;
    background: rgba(119, 230, 169, .12) !important;
    color: #77e6a9 !important;
}

body.md-site .footer-contact-item strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

body.md-site .footer-divider {
    margin: 42px 0 22px !important;
    border-color: rgba(255, 255, 255, .13) !important;
    opacity: 1 !important;
}

body.md-site .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}

/* ---------- Safe utility enhancements ---------- */
body.md-site .fixed-contact {
    right: 18px !important;
    bottom: 22px !important;
    z-index: 1025 !important;
}

body.md-site .fixed-contact img {
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 14px !important;
    box-shadow: var(--md-shadow-md);
}

body.md-site .md-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1028;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--md-green-600), var(--md-green-800));
    color: #fff;
    box-shadow: var(--md-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--md-ease), visibility var(--md-ease), transform var(--md-ease);
}

body.md-site .md-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.md-site .md-back-to-top:hover {
    transform: translateY(-2px);
}

body.md-site .md-image-error {
    min-height: 120px;
    object-fit: contain !important;
    padding: 18px;
    background: var(--md-green-50);
}

body.md-site .swiper,
body.md-site .swiper-container,
body.md-site .slick-slider,
body.md-site .owl-carousel {
    max-width: 100%;
    overflow: hidden;
}

/* Never hide dynamic content for animation. */
body.md-site .fade-up,
body.md-site [data-reveal] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    body.md-site .navbar-nav .nav-link {
        padding-inline: 8px !important;
        font-size: 12.5px !important;
    }

    body.md-site .navbar-brand {
        min-width: 170px;
        margin-right: 10px !important;
    }

    body.md-site .brand-text .brand-name {
        font-size: 23px !important;
    }
}

@media (max-width: 991.98px) {
    body.md-site .container,
    body.md-site .container-sm,
    body.md-site .container-md,
    body.md-site .container-lg,
    body.md-site .container-xl,
    body.md-site .container-xxl {
        width: min(calc(100% - 26px), var(--md-container)) !important;
    }

    body.md-site .topbar-emergency .container > div:first-child {
        display: none !important;
    }

    body.md-site .topbar-emergency .container {
        justify-content: center !important;
    }

    body.md-site .topbar-emergency-tag {
        display: none !important;
    }

    body.md-site .navbar {
        min-height: 70px;
    }

    body.md-site .navbar-collapse {
        position: absolute;
        top: calc(100% + 8px);
        right: 13px;
        left: 13px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 12px !important;
        border: 1px solid var(--md-line) !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: var(--md-shadow-lg) !important;
    }

    body.md-site .navbar-collapse:not(.show):not(.collapsing) {
        display: none !important;
    }

    body.md-site .navbar-nav {
        align-items: stretch !important;
        gap: 4px !important;
    }

    body.md-site .navbar-nav .nav-link {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start !important;
        padding: 10px 13px !important;
        font-size: 14px !important;
    }

    body.md-site .navbar-nav .nav-emergency-btn {
        justify-content: center !important;
        margin: 5px 0 0 !important;
    }

    body.md-site .hero {
        min-height: auto;
        padding-block: 66px !important;
    }

    body.md-site .hero h1,
    body.md-site .hero .lead {
        max-width: none;
    }

    body.md-site .hero-search-card {
        max-width: 620px;
        margin: 10px auto 0;
    }
}

@media (max-width: 767.98px) {
    body.md-site {
        font-size: 15px;
    }

    body.md-site .top-header .container {
        gap: 9px !important;
    }

    body.md-site .marquee-container {
        display: none !important;
    }

    body.md-site .header-icons {
        width: 100%;
        justify-content: flex-end !important;
    }

    body.md-site .login-btn,
    body.md-site .header-user-btn {
        max-width: min(72vw, 250px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.md-site .brand-text .brand-sub {
        display: none !important;
    }

    body.md-site .navbar-brand {
        min-width: 0;
    }

    body.md-site .hero {
        padding-block: 52px !important;
    }

    body.md-site .hero h1 {
        font-size: clamp(36px, 10vw, 52px) !important;
    }

    body.md-site .hero-cta-group > * {
        flex: 1 1 190px;
    }

    body.md-site .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    body.md-site .hero-divider {
        display: none !important;
    }

    body.md-site .hero-stat {
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: 12px;
    }

    body.md-site .section-title,
    body.md-site .sec-title,
    body.md-site .section-header h2 {
        font-size: clamp(28px, 8vw, 39px) !important;
    }

    body.md-site .card-body {
        padding: 18px !important;
    }

    body.md-site .footer-main {
        padding-top: 54px !important;
    }

    body.md-site .footer-bottom-links {
        width: 100%;
    }

    body.md-site .md-back-to-top {
        right: 13px;
        bottom: 13px;
        width: 43px;
        height: 43px;
    }
}

@media (max-width: 575.98px) {
    body.md-site .container,
    body.md-site .container-sm,
    body.md-site .container-md,
    body.md-site .container-lg,
    body.md-site .container-xl,
    body.md-site .container-xxl {
        width: calc(100% - 22px) !important;
    }

    body.md-site .topbar-emergency {
        font-size: 11.5px !important;
    }

    body.md-site .topbar-emergency .d-flex {
        gap: 8px !important;
    }

    body.md-site .topbar-emergency a.d-none.d-sm-inline {
        display: none !important;
    }

    body.md-site .header-icons .cart-icon {
        width: 37px !important;
        min-height: 36px !important;
    }

    body.md-site .login-btn,
    body.md-site .header-user-btn {
        min-height: 36px !important;
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }

    body.md-site .brand-icon-wrap {
        width: 41px !important;
        height: 41px !important;
        flex-basis: 41px;
        border-radius: 13px !important;
    }

    body.md-site .brand-text .brand-name {
        font-size: 21px !important;
    }

    body.md-site .navbar-toggler {
        width: 42px;
        height: 41px;
    }

    body.md-site .hero-cta-group > *,
    body.md-site .btn.w-100 {
        width: 100%;
        flex-basis: 100%;
    }

    body.md-site .hero-stats {
        padding: 10px !important;
    }

    body.md-site .hero-search-card,
    body.md-site .search-card,
    body.md-site .filter-card {
        padding: 18px !important;
        border-radius: 20px !important;
    }

    body.md-site .modal-dialog {
        margin: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.md-site *,
    body.md-site *::before,
    body.md-site *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
