/*
 * Shared Cloubook vendor-site refinement.
 * Keeps the configured vendor palette and unifies the public navigation and listings.
 */

body.cloubook-site-page {
    --site-navy: var(--bs-secondary, #17245f);
    --site-accent: var(--bs-primary, #b2298f);
    --site-ink: #171b2a;
    --site-muted: #667085;
    --site-line: #e8eaf0;
    --site-surface: #ffffff;
    --site-canvas: #f7f8fb;
    background: var(--site-canvas);
    color: var(--site-ink);
}

.cloubook-site-page .top-header {
    display: none;
}

.cloubook-site-page header {
    position: relative;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(23, 27, 42, 0.07);
}

.cloubook-site-page header .iq-navbar {
    min-height: 82px;
    background: transparent !important;
}

.cloubook-site-page header .navbar-inner {
    width: min(calc(100% - 40px), 1800px);
    max-width: 1800px;
    margin-inline: auto;
    padding-inline: 0 !important;
}

.cloubook-site-page header .nav-link {
    font-weight: 600;
}

.cloubook-site-page header .btn {
    min-height: 44px;
    padding-inline: 20px;
    border-radius: 12px;
}

.cloubook-site-page header .admin-quick-login-item {
    flex-shrink: 0;
}

.cloubook-site-page header .admin-quick-login {
    gap: 0.45rem;
    color: var(--site-navy);
    white-space: nowrap;
    background: #f7f8fb;
    border: 1px solid #e4e7ef;
}

.cloubook-site-page header .admin-quick-login:hover,
.cloubook-site-page header .admin-quick-login:focus-visible {
    color: #fff;
    background: var(--site-navy);
    border-color: var(--site-navy);
}

.cloubook-site-page header .admin-quick-login i {
    font-size: 1.1rem;
}

.cloubook-site-page header .branch-panel {
    color: var(--site-ink) !important;
    background: #f7f8fb !important;
    border-color: transparent !important;
}

.cloubook-site-page header .branch-panel i,
.cloubook-site-page header .branch-panel span {
    color: inherit;
}

.cloubook-site-page header .dropdown-language-wrapper > .language-current-flag {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 12px;
}

.cloubook-site-page header .dropdown-language-wrapper > .language-current-flag::after {
    display: none;
}

.cloubook-site-page header .dropdown-language-wrapper > .language-current-flag img {
    margin: 0 !important;
}

/* Clean inner-page canvas */
.cloubook-site-page:not(.cloubook-home-page) main {
    background: var(--site-canvas);
}

.cloubook-site-page:not(.cloubook-home-page) .breadcrumb-section {
    padding: 18px 0 0;
    background: transparent;
}

.cloubook-site-page:not(.cloubook-home-page) .breadcrumb-section .gradient {
    display: none;
}

.cloubook-site-page:not(.cloubook-home-page) .breadcrumb-container {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--site-line);
    border-radius: 999px;
}

.cloubook-site-page:not(.cloubook-home-page) .section-spacing-inner-pages,
.cloubook-site-page:not(.cloubook-home-page) .shop-section {
    padding-top: 38px;
    padding-bottom: 72px;
}

.cloubook-site-page:not(.cloubook-home-page) .section-title {
    margin-bottom: 30px;
}

.cloubook-site-page:not(.cloubook-home-page) .section-title .decorator-title {
    display: inline-block;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-decoration: none !important;
}

.cloubook-site-page:not(.cloubook-home-page) .section-title .title {
    color: var(--site-ink);
    font-size: clamp(1.65rem, 2.2vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.cloubook-site-page:not(.cloubook-home-page) .custom-input-group,
.cloubook-site-page:not(.cloubook-home-page) .form-select,
.cloubook-site-page:not(.cloubook-home-page) .select2-selection {
    min-height: 48px;
    background: var(--site-surface) !important;
    border: 1px solid var(--site-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(23, 27, 42, 0.04);
}

.cloubook-site-page:not(.cloubook-home-page) .custom-input-group .input-group-text,
.cloubook-site-page:not(.cloubook-home-page) .custom-input-group .form-control {
    background: transparent;
    border: 0;
}

.cloubook-site-page:not(.cloubook-home-page) .category-card,
.cloubook-site-page:not(.cloubook-home-page) .service-card,
.cloubook-site-page:not(.cloubook-home-page) .product-card,
.cloubook-site-page:not(.cloubook-home-page) .shop-sidebar .widget,
.cloubook-site-page:not(.cloubook-home-page) .select-category-box-wrapper {
    background: var(--site-surface) !important;
    border: 1px solid var(--site-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(23, 27, 42, 0.06);
}

.cloubook-site-page:not(.cloubook-home-page) .select-category-box-wrapper {
    top: 100px;
}

.cloubook-site-page:not(.cloubook-home-page) .select-category-list-tabs .select-catgory-box {
    border-radius: 14px;
}

.cloubook-site-page:not(.cloubook-home-page) .btn-secondary {
    border-radius: 12px;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .cloubook-site-page header .admin-quick-login {
        width: 44px;
        padding-inline: 0;
    }

    .cloubook-site-page header .admin-quick-login-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .cloubook-site-page header .landing-header > div:first-child,
    .cloubook-site-page header .site-nav-menu {
        min-width: 0;
    }

    .cloubook-site-page header .site-nav-menu > .container-fluid {
        display: flex !important;
        width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: flex-start !important;
        gap: 10px;
    }

    .cloubook-site-page header .select-branch {
        flex: 0 1 190px;
        min-width: 0;
    }

    .cloubook-site-page header .branch-panel {
        width: 190px;
        max-width: 190px;
        padding-inline: 12px;
    }

    .cloubook-site-page header .branch-panel > span,
    .cloubook-site-page header .branch-panel .branch-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cloubook-site-page header .iq-nav-menu {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0 !important;
    }

    .cloubook-site-page header .right-panel {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        background: #fff;
    }
}

@media (min-width: 1400px) {
    .cloubook-site-page header .landing-header > div:first-child,
    .cloubook-site-page header .site-nav-menu {
        min-width: 0;
    }

    .cloubook-site-page header .landing-header > div:first-child,
    .cloubook-site-page header .site-nav-menu {
        flex: 1 1 auto;
    }

    .cloubook-site-page header .site-nav-menu > .container-fluid {
        display: flex !important;
        width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: flex-start !important;
        gap: 14px;
    }

    .cloubook-site-page header .select-branch {
        flex: 0 1 220px;
        min-width: 0;
    }

    .cloubook-site-page header .branch-panel {
        width: 220px;
        max-width: 220px;
        padding-inline: 14px;
    }

    .cloubook-site-page header .branch-panel > span,
    .cloubook-site-page header .branch-panel .branch-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cloubook-site-page header .iq-nav-menu {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0 !important;
    }

    .cloubook-site-page header .right-panel {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        background: #fff;
    }
}

@media (max-width: 1199.98px) {
    .cloubook-site-page header .navbar-inner {
        width: min(calc(100% - 32px), 1180px);
    }

    .cloubook-site-page header #navbarSupportedContent > .navbar-nav {
        width: 100%;
        margin: 0 !important;
        padding: 0.5rem 1rem 1rem;
        flex-flow: row wrap;
        gap: 0.5rem;
        box-sizing: border-box;
    }

    .cloubook-site-page header .admin-quick-login-item {
        flex: 1 1 13rem;
        width: auto;
        min-width: 0;
    }

    .cloubook-site-page header .customer-login-item {
        flex: 1 0 100%;
        width: 100%;
    }

    .cloubook-site-page header .admin-quick-login {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 767.98px) {
    .cloubook-site-page header .iq-navbar {
        min-height: 68px;
    }

    .cloubook-site-page:not(.cloubook-home-page) .breadcrumb-section {
        padding-top: 12px;
    }

    .cloubook-site-page:not(.cloubook-home-page) .section-spacing-inner-pages,
    .cloubook-site-page:not(.cloubook-home-page) .shop-section {
        padding-top: 26px;
        padding-bottom: 48px;
    }
}

/* Dark theme: shared public navigation and inner-page surfaces. */
html[data-bs-theme="dark"] body.cloubook-site-page {
    --site-ink: #f5f2f5;
    --site-muted: #b5b0ba;
    --site-line: #34323a;
    --site-surface: #1a1a1d;
    --site-canvas: #141415;
    background: var(--site-canvas);
    color: var(--site-ink);
    color-scheme: dark;
}

html[data-bs-theme="dark"] .cloubook-site-page header {
    background: rgba(13, 13, 13, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .cloubook-site-page header .right-panel {
    background: #0d0d0d !important;
}

html[data-bs-theme="dark"] .cloubook-site-page header .branch-panel {
    color: #f3eff3 !important;
    background: #1a1a1d !important;
    border-color: #34323a !important;
}

html[data-bs-theme="dark"] .cloubook-site-page header .admin-quick-login {
    color: #f3eff3;
    background: #1a1a1d;
    border-color: #34323a;
}

html[data-bs-theme="dark"] .cloubook-site-page header .admin-quick-login:hover,
html[data-bs-theme="dark"] .cloubook-site-page header .admin-quick-login:focus-visible {
    color: #fff;
    background: color-mix(in srgb, var(--site-accent) 24%, #171717);
    border-color: color-mix(in srgb, var(--site-accent) 55%, #34323a);
}

html[data-bs-theme="dark"] .cloubook-site-page header #navbarSupportedContent,
html[data-bs-theme="dark"] .cloubook-site-page header #navbarSupportedContent > .navbar-nav {
    background: #0d0d0d;
}

html[data-bs-theme="dark"] .cloubook-site-page header .dropdown-menu {
    color: var(--site-ink);
    background: var(--site-surface) !important;
    border-color: var(--site-line) !important;
}

html[data-bs-theme="dark"] .cloubook-site-page:not(.cloubook-home-page) main,
html[data-bs-theme="dark"] .cloubook-site-page:not(.cloubook-home-page) .shop-section {
    background: var(--site-canvas);
}

/* Shared Cloubook footer, based on the original public Blog footer. */
.cloubook-public-footer-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cloubook-public-main {
    flex: 1 0 auto;
}

.public-marketplace-footer {
    flex: 0 0 auto;
    margin-top: auto;
    color: #142a46;
}

.cloubook-public-footer__main {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(20, 42, 70, .18);
    background-color: #fbfaff;
    background-image: linear-gradient(rgba(255, 255, 255, .26), rgba(248, 245, 255, .18)),
        var(--cloubook-footer-pattern);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(180px, 240px) minmax(240px, 300px);
    column-gap: clamp(28px, 3vw, 44px);
    row-gap: 32px;
    align-items: start;
    justify-content: start;
    padding: clamp(42px, 4vw, 58px) 0 clamp(46px, 4.5vw, 64px);
}

.footer-links-grid--has-social {
    grid-template-columns: minmax(220px, 280px) minmax(180px, 220px) minmax(240px, 280px) minmax(160px, 210px);
}

.cloubook-public-footer__brand {
    min-width: 0;
}

.cloubook-public-footer__logo {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 18px;
}

.cloubook-public-footer__logo img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 170px;
    object-fit: contain;
}

.cloubook-public-footer__logo-dark {
    display: none !important;
}

.cloubook-public-footer__brand p {
    max-width: 250px;
    margin: 0;
    color: #657186;
    font-size: 1rem;
    line-height: 1.55;
}

.footer-links-grid h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.footer-links-grid ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cloubook-public-footer__quick-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
}

.cloubook-public-footer__quick-links .cloubook-public-footer__quick-columns,
.cloubook-public-footer__legal .cloubook-public-footer__quick-columns {
    grid-template-columns: 1fr;
}

.cloubook-public-footer__legal a {
    white-space: nowrap;
}

.cloubook-public-footer__quick-columns > ul {
    align-content: start;
}

.footer-links-grid a {
    color: #59677c;
    font-size: .98rem;
    line-height: 1.55;
    text-decoration: none;
    transition: color 160ms ease;
}

.cloubook-public-footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
}

.cloubook-public-footer__social i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.footer-links-grid a:hover,
.footer-links-grid a:focus-visible,
.cloubook-public-footer__bottom a:hover,
.cloubook-public-footer__bottom a:focus-visible {
    color: var(--bs-primary, #b42a8a);
}

.footer-links-grid a:focus-visible,
.cloubook-public-footer__logo:focus-visible,
.cloubook-public-footer__bottom a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(var(--bs-primary-rgb), .25);
    outline-offset: 4px;
}

.cloubook-public-footer__bottom {
    background: #19235a;
    color: #fff;
}

.cloubook-public-footer__bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
    min-height: 50px;
    padding: 10px 0;
}

.cloubook-public-footer__bottom p {
    margin: 0;
    color: #fff;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
}

.cloubook-public-footer__bottom p:nth-child(2) {
    text-align: center;
}

.cloubook-public-footer__bottom p:last-child {
    text-align: right;
}

.cloubook-public-footer__bottom a {
    color: #d742a1;
    text-decoration: none;
}

@media (max-width: 1199.98px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 40px;
    }
}

@media (max-width: 767.98px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 36px 0 42px;
    }

    .cloubook-public-footer__quick-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cloubook-public-footer__bottom-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 0;
        text-align: center;
    }

    .cloubook-public-footer__bottom p:nth-child(n) {
        text-align: center;
    }
}

html[data-bs-theme="dark"] .cloubook-public-footer__main {
    border-top-color: rgba(255, 255, 255, .12);
    background-color: #111216;
    background-image: linear-gradient(rgba(17, 18, 22, .91), rgba(17, 18, 22, .88)),
        var(--cloubook-footer-pattern);
}

html[data-bs-theme="dark"] .cloubook-public-footer__logo-light {
    display: none !important;
}

html[data-bs-theme="dark"] .cloubook-public-footer__logo-dark {
    display: block !important;
    filter: brightness(0) invert(1);
}

html[data-bs-theme="dark"] .cloubook-public-footer__brand p,
html[data-bs-theme="dark"] .footer-links-grid a {
    color: #b9c2cf;
}

html[data-bs-theme="dark"] .footer-links-grid h2,
html[data-bs-theme="dark"] .cloubook-public-footer__social a {
    color: #fff;
}
