/* Public theme chrome: scoped IDs keep inherited Citynet styles out of these
   components without changing the reservation app, menus or auth dialogs. */
#header {
    --menu-color: #fff;
    --menu-hover: rgba(255, 255, 255, 0.12);
    --menu-size: 1.08rem;
}

body.mehrad-inner #header,
#header.scrolled {
    --menu-color: #102b4e;
    --menu-hover: #edf3f6;
    background: #fff;
    border-bottom: 1px solid #dbe7ec;
}

/* Reserve the full initial header height, including space below its edge. */
body.mehrad-inner { padding-top: 0; }
body.mehrad-inner #content { padding-top: calc(var(--header-height) + 40px); }

#header .nav-menu > a,
#header .nav-menu > li > a,
#header .nav-menu > ul > li > a {
    color: var(--menu-color);
    background: transparent;
    border: 0;
    font-size: var(--menu-size);
    text-shadow: none;
}

#header .nav-menu > a:hover,
#header .nav-menu > li > a:hover,
#header .nav-menu > ul > li > a:hover {
    color: var(--menu-color);
    background: var(--menu-hover);
}

#header .nav-menu > a.active,
#header .nav-menu > li:is(.current-menu-item, .current_page_item) > a,
#header .nav-menu > ul > li:is(.current-menu-item, .current_page_item) > a {
    font-size: calc(var(--menu-size) + 0.12rem);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

#header .header-phone-link {
    color: var(--menu-color);
    background: transparent;
    backdrop-filter: none;
    text-decoration: none;
}

#header .header-phone-link i { color: inherit !important; }
#header .header-phone-link:hover,
#header .header-phone-link:focus-visible {
    color: var(--menu-color);
    background: var(--menu-hover);
    transform: none;
}

/* Override only the radius of header controls, never the auth dialog. */
#header #reservation-menu :is(.login, .signUp, .signIn, .panelHeader__button--signIn, .panelHeader__button--signUp, .v-btn) {
    border-radius: var(--radius-full, 9999px) !important;
}

#header .mobile-toggle { color: var(--menu-color); }
body.mehrad-inner #header .logo-image-dark { display: block; }
body.mehrad-inner #header .logo-image-light { display: none; }

body.mehrad-home #content .section-header .badge {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    line-height: 1.5;
    padding: 10px 24px;
    color: #22566e;
    background: #edf3f6;
    border-color: #c2d6de;
    letter-spacing: 0;
}

body.mehrad-home #content .why-us .section-header .badge {
    color: #fff;
    background: #22566e;
    border-color: rgba(255, 255, 255, 0.4);
}

body.mehrad-home #content .hero-badge {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    padding: 10px 20px;
}

#colophon.footer { background: #102b4e; color: #fff; }
#colophon.footer .footer-col h4 { color: #fff; font-size: 1.15rem; }
#colophon.footer .footer-col p { color: #dbe7ec; }
#colophon.footer .footer-links a,
#colophon.footer .footer-links a i,
#colophon.footer .footer-contact li,
#colophon.footer .footer-contact i { color: #fff; }
#colophon.footer .footer-links a:hover { color: #c2d6de; }
#colophon.footer .footer-links li { list-style: none; }

#colophon .footer-platforms,
#colophon .social-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

#colophon .footer-platforms { margin: 16px 0; }
#colophon .footer-platforms a,
#colophon .social-links a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    gap: 12px !important;
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 6px 8px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    border-radius: 10px;
    transform: none;
    box-shadow: none;
}

#colophon .social-links a span { overflow-wrap: anywhere; text-align: right; }
#colophon .platform-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(237, 243, 246, 0.12);
    border: 1px solid rgba(194, 214, 222, 0.35);
    border-radius: 10px;
}

#colophon .platform-mark img,
#colophon .platform-mark svg {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}

#colophon .footer-platforms a:hover,
#colophon .footer-platforms a:focus-visible,
#colophon .social-links a:hover,
#colophon .social-links a:focus-visible { color: #fff; background: #22566e; }
#colophon :is(.footer-platforms, .social-links) a:is(:hover, :focus-visible) .platform-mark {
    color: #fff;
    background: #22566e;
    border-color: #c2d6de;
}
#colophon .footer-bottom { color: #c2d6de; }

#colophon .footer-licenses {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

#colophon .footer-licenses img {
    height: 85px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

body.mehrad-home #content .cta-buttons .btn {
    background: #fff;
    color: #102b4e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: auto;
    min-height: 52px;
    padding: 14px 28px;
    line-height: 1;
    font-size: 1.15rem;
    border: 1px solid #c2d6de;
    border-radius: var(--radius-full, 9999px);
    box-shadow: 0 4px 12px rgba(16, 43, 78, 0.16);
}

body.mehrad-home #content .cta-buttons .btn i,
body.mehrad-home #content .cta-buttons .btn span {
    position: static;
    margin: 0;
    line-height: 1;
    transform: none;
}

body.mehrad-home #content .cta-buttons .btn:hover {
    background: #edf3f6;
    color: #102b4e;
    border-color: #c2d6de;
}

body.mehrad-home #content #services { background: #fff; }
body.mehrad-home #content #services .service-card { background: #fff; }
body.mehrad-home #content #services .service-icon,
body.mehrad-home #content #services .service-card::before { background: #22566e; }
body.mehrad-home #content #services,
body.mehrad-home #content #services::before,
body.mehrad-home #content #services::after,
body.mehrad-home #content #services .service-card,
body.mehrad-home #content #services .service-card::before,
body.mehrad-home #content #services .service-icon { background-image: none !important; }

#mobileNav {
    background: #102b4e;
    overflow-y: auto;
}
#mobileNav a,
#mobileNav a.special { color: #fff; background: transparent; border-color: #c2d6de; }
#mobileNav a:hover,
#mobileNav a.special:hover { color: #fff; background: #22566e; }

/* Citynet's inherited desktop 80% cap shrinks the homepage search twice. */
body.mehrad-home #content .hero-content { max-width: none; }
body.mehrad-home #content .hero #app.citynet_homepage {
    width: 100% !important;
    max-width: none !important;
    margin-inline: auto;
}

body.mehrad-home #content .hero #app.citynet_homepage .main-homepage-class > .v-card {
    min-height: var(--mehrad-search-height, 0px);
}

@media (max-width: 1200px) { #header { --menu-size: 0.95rem; } }
@media (max-width: 768px) {
    body.mehrad-home #content .section-header .badge { padding: 8px 18px; }
    #header .header-inner { gap: 8px; }
    #header .header-actions { gap: 6px; min-width: 0; }
    #header .logo { max-width: 110px; flex-shrink: 0; }
    #header .logo img { max-height: 36px; }
    #header .header-phone-link { display: none; }
    #header #reservation-menu { min-width: 0; }
    #header #reservation-menu .panelHeader :is(.login, .signUp, .signIn, .panelHeader__button--signIn, .panelHeader__button--signUp) {
        background: transparent !important;
        color: var(--menu-color) !important;
        border: 1px solid currentColor !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        min-width: 0 !important;
        height: 38px;
        padding: 6px 10px !important;
        margin: 0 !important;
        white-space: nowrap;
    }
    #header #reservation-menu .panelHeader :is(.login, .signUp, .signIn, .panelHeader__button--signIn, .panelHeader__button--signUp):hover {
        background: var(--menu-hover) !important;
    }
    #header #reservation-menu .panelHeader :is(.login, .signUp, .signIn, .panelHeader__button--signIn, .panelHeader__button--signUp) :is(span, i) {
        color: inherit !important;
    }
}

@media print {
    #header, #colophon { display: none; }
    body.mehrad-inner #content { padding-top: 0; }
}
