﻿
/* Absolute overlay positioning configurations */
body .ui-autocomplete {
    background: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1) !important;
    max-height: 290px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 99999999 !important; /* Force layout above all maps and sliders */
    padding: 6px 0 !important;
    font-family: inherit !important;
    margin-top: 5px !important;
}

body .ui-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .ui-menu-item {
    padding: 0 !important;
    margin: 0 !important;
}

    /* Padded list options forced to align starting from the left */
    body .ui-menu-item .ui-menu-item-wrapper {
        padding: 12px 20px !important;
        color: #333333 !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        text-align: left !important; /* Always start from the left */
        transition: all 0.2s ease-in-out;
        border: none !important;
        background: transparent !important;
        display: block !important;
        cursor: pointer;
    }

        /* Elegant hover state with a subtle nudge effect */
        body .ui-menu-item .ui-menu-item-wrapper.ui-state-active,
        body .ui-menu-item .ui-menu-item-wrapper:hover {
            background-color: #f4f7fc !important;
            color: #4255A4 !important;
            font-weight: 600 !important;
            padding-left: 25px !important; /* Slight nudge on select highlights */
            border: none !important;
        }


/* List view style */
.listing-item-container.init-list-items .listing-item {
    width: 100%;
    margin-bottom: 20px;
}

.listing-item.list-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

    .listing-item.list-layout .geodir-category-img {
        width: 30%;
    }

    .listing-item.list-layout .geodir-category-content {
        width: 70%;
    }

@media (max-width: 768px) {
    .listing-item.list-layout .geodir-category-img,
    .listing-item.list-layout .geodir-category-content {
        width: 100%;
    }
}


.ajax-preloader {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
}

.ajax-preloader .spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff5a5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ajax-preloader p {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* List view styles */
.listing-item-container.init-list-items .listing-item {
    width: 100% !important;
    margin-bottom: 20px;
}

.listing-item.list-layout {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

    .listing-item.list-layout .geodir-category-img {
        width: 30%;
        padding-right: 15px;
    }

    .listing-item.list-layout .geodir-category-content {
        width: 70%;
    }

@@media (max-width: 768px) {
    .listing-item.list-layout .geodir-category-img,
    .listing-item.list-layout .geodir-category-content {
        width: 100%;
    }
}

    /* Responsive images - force card image to fit properly */

   
    .geodir-category-img-wrap img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    .geodir-category-img-wrap:hover img {
        transform: scale(1.03);
    }

    .listing-avatar img {
       
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* List view adjustments */
    .listing-item.list-layout .geodir-category-img-wrap img {
        height: 180px;
    }

    @media (max-width: 768px) {
        .geodir-category-img-wrap img {
            height: 180px;
        }
        .listing-item.list-layout .geodir-category-img-wrap img {
            height: 140px;
        }
    }





/* Provider subscription/change-plan additions
   These styles are intentionally kept in design.css as requested. */
.provider-current-subscription,
.provider-subscription-strip,
.provider-rule-box {
    border: 1px solid #dce9de;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(35, 93, 47, .07);
}

.provider-current-subscription small,
.provider-subscription-strip small {
    display: block;
    color: #5f6f63;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    margin-bottom: 4px;
}

.provider-current-subscription strong,
.provider-subscription-strip strong {
    color: #2f8d46;
    font-weight: 850;
}

.provider-rule-box {
    background: #f7fbf8;
    color: #425447;
    text-align: left;
}

.provider-rule-box ul {
    padding-left: 20px;
}

.provider-rule-box li {
    margin-bottom: 5px;
}

.provider-plan-option-card {
    border: 1px solid #dce9de !important;
    transition: all .2s ease;
}

.provider-plan-option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(35, 93, 47, .12) !important;
}

.provider-plan-current {
    border: 2px solid #f7941d !important;
    background: #fffaf3;
}

.provider-plan-disabled {
    opacity: .72;
    cursor: not-allowed !important;
    background: #f8f9fa;
}

.provider-plan-title {
    color: #2f8d46;
}

.provider-plan-price {
    color: #f7941d;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.provider-plan-price span {
    font-size: 13px;
    color: #5f6f63;
    font-weight: 700;
}

.provider-plan-rule {
    border-radius: 14px;
    padding: 12px;
    font-weight: 650;
    font-size: 13px;
    text-align: left;
}

.provider-plan-rule.allowed {
    background: #e8f8ef;
    color: #146c43;
}

.provider-plan-rule.blocked {
    background: #fff3cd;
    color: #946200;
}

.provider-plan-calculation {
    border-top: 1px dashed #dce9de;
    padding-top: 12px;
    text-align: left;
}

.provider-plan-calculation div {
    display: flex;
    justify-content: space-between;
    color: #5f6f63;
    font-size: 13px;
    margin-bottom: 5px;
}

.provider-plan-calculation strong {
    color: #2f8d46;
}


/* Provider Subscription Change Page */
.provider-change-plan-page {
    overflow: hidden;
}

.subscription-details-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #1d5f31 0%, #2f8d46 55%, #f7941d 130%);
    color: #fff;
    padding: 26px;
    box-shadow: 0 22px 60px rgba(35, 93, 47, .18);
}

.subscription-details-hero:before,
.subscription-details-hero:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}

.subscription-details-hero:before {
    width: 150px;
    height: 150px;
    right: -45px;
    top: -50px;
}

.subscription-details-hero:after {
    width: 110px;
    height: 110px;
    left: -35px;
    bottom: -45px;
}

.subscription-details-main,
.subscription-details-grid {
    position: relative;
    z-index: 2;
}

.subscription-badge {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.17);
    border: 1px solid rgba(255,255,255,.24);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.subscription-details-main h3 {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
    margin: 0;
    color: #fff;
}

.subscription-details-main p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.82);
}

.subscription-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.subscription-detail-tile {
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    padding: 16px;
    backdrop-filter: blur(10px);
}

.subscription-detail-tile span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.subscription-detail-tile strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.subscription-rules-accordion .accordion-item {
    border: 1px solid #dce9de;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(35,93,47,.08);
}

.subscription-rules-accordion .accordion-button {
    background: #fff;
    color: #2f8d46;
    font-weight: 900;
    padding: 18px 22px;
    box-shadow: none;
}

.subscription-rules-accordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(135deg, #2f8d46 0%, #1d5f31 100%);
}

.subscription-rules-accordion .accordion-button:focus {
    box-shadow: none;
}

.rule-mini-card {
    height: 100%;
    border-radius: 18px;
    background: #f8fcf9;
    border: 1px solid #e3efe5;
    padding: 18px;
}

.rule-mini-card strong {
    display: block;
    color: #2f8d46;
    font-size: 15px;
    margin-bottom: 8px;
}

.rule-mini-card p {
    margin: 0;
    color: #5f6f63;
    font-size: 13px;
    line-height: 1.65;
}

.billing-cycle-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dce9de;
    box-shadow: 0 15px 40px rgba(35,93,47,.08);
}

.billing-cycle-switch span {
    font-size: 13px;
    font-weight: 800;
    color: #5f6f63;
    padding-left: 10px;
}

.billing-cycle-switch a {
    display: inline-flex;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 20px;
    color: #2f8d46 !important;
    font-weight: 900;
    transition: all .2s ease;
}

.billing-cycle-switch a.active,
.billing-cycle-switch a:hover {
    background: #f7941d;
    color: #fff !important;
}

.provider-price-card {
    display: block;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #edf1f2;
    box-shadow: 0 22px 60px rgba(35, 93, 47, .08);
    cursor: pointer;
    transition: all .22s ease;
}

.provider-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(35, 93, 47, .14);
}

.provider-price-card input[type="radio"] {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 6;
    width: 19px;
    height: 19px;
}

.provider-price-card input[type="radio"]:checked {
    accent-color: #f7941d;
}

.provider-price-card.plan-disabled {
    opacity: .68;
    cursor: not-allowed;
}

.provider-price-head {
    position: relative;
    min-height: 210px;
    padding: 28px 22px 46px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.provider-price-head:before,
.provider-price-head:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.provider-price-head:before {
    width: 34px;
    height: 34px;
    left: 58px;
    top: 66px;
}

.provider-price-head:after {
    width: 42px;
    height: 42px;
    right: 74px;
    top: 54px;
}

.provider-price-head .provider-plan-pill,
.provider-price-head .provider-price-value,
.provider-price-head .provider-price-cycle,
.provider-current-ribbon {
    position: relative;
    z-index: 2;
}

.provider-plan-pill {
    display: inline-flex;
    justify-content: center;
    min-width: 190px;
    max-width: 90%;
    padding: 10px 18px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.provider-price-value {
    margin-top: 18px;
    font-size: 56px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .02em;
}

.provider-price-value span {
    font-size: 18px;
    position: relative;
    top: -24px;
    margin-right: 5px;
    font-weight: 600;
}

.provider-price-cycle {
    margin-top: 6px;
    font-weight: 800;
    font-size: 12px;
    color: rgba(255,255,255,.88);
    text-transform: capitalize;
}

.provider-price-head:after {
    box-shadow: -160px 105px 0 42px rgba(255,255,255,.22),
                -30px 117px 0 56px rgba(255,255,255,.20),
                150px 112px 0 45px rgba(255,255,255,.18);
}

.plan-purple .provider-price-head {
    background: linear-gradient(135deg, #9350d7 0%, #d59bc2 100%);
}

.plan-blue .provider-price-head {
    background: linear-gradient(135deg, #007a3d 0%, #0aa45a 100%);
}

.plan-green .provider-price-head {
    background: linear-gradient(135deg, #42d990 0%, #62c7ad 100%);
}

.provider-current-ribbon {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.28);
    font-size: 11px;
    font-weight: 900;
}

.provider-price-body {
    padding: 22px;
}

.provider-plan-status {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 16px;
    padding: 14px;
    font-weight: 700;
    line-height: 1.55;
    font-size: 12px;
    margin-bottom: 16px;
}

.provider-plan-status.allowed {
    background: #eefaf1;
    color: #1b7b37;
}

.provider-plan-status.blocked {
    background: #fff2f2;
    color: #b42318;
}

.provider-calculation-box {
    border: 1px solid #e5eef0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.provider-calculation-box div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f4;
    color: #5f6f63;
    font-size: 12px;
}

.provider-calculation-box div:last-child {
    border-bottom: 0;
}

.provider-calculation-box span {
    font-weight: 700;
}

.provider-calculation-box strong {
    color: #2f8d46;
    font-weight: 950;
}

.provider-calculation-box .amount-due {
    background: #fff8ef;
}

.provider-calculation-box .amount-due strong {
    color: #f7941d;
    font-size: 17px;
}

.provider-plan-small-note {
    margin-top: 14px;
    color: #7b8b80;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .subscription-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .subscription-details-grid {
        grid-template-columns: 1fr;
    }

    .billing-cycle-switch {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 20px;
    }
}

/* ========================================================================== 
   Cross-browser header and responsive navigation
   Keeps one navigation structure for desktop, Edge/Chrome and mobile.
   ========================================================================== */
.main-header {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 70px;
    padding: 0 24px;
}

.main-header::before {
    pointer-events: none;
}

.logo-holder {
    position: relative;
    top: auto;
    float: none;
    flex: 0 0 82px;
    width: 82px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.logo-holder img {
    display: block;
    width: auto;
    height: auto;
    max-width: 78px;
    max-height: 60px;
    object-fit: contain;
}

.nav-holder {
    position: relative;
    top: auto;
    right: auto;
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.nav-holder nav {
    float: none;
    width: 100%;
}

.nav-holder nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-holder nav > ul > li {
    float: none;
    flex: 0 0 auto;
    height: auto;
    margin: 0;
}

.nav-holder nav > ul > li > a {
    float: none;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 70px;
    padding: 0 8px;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-holder nav li a i {
    flex: 0 0 auto;
    padding-left: 0;
}

.nav-holder nav li a:hover i {
    transform: none;
}

.nav-holder nav li a:hover .menu-arrow {
    transform: rotateX(180deg);
}

.header-actions {
    position: relative;
    z-index: 22;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 22px;
    margin-left: auto;
    white-space: nowrap;
}

.header-actions .show-reg-form,
.header-actions .cart-btn,
.header-actions .add-list,
.header-actions .nav-button-wrap {
    position: relative;
    top: auto;
    right: auto;
    float: none;
    margin: 0;
}

.header-actions .show-reg-form {
    font-size: 12px;
}

.header-actions .show-reg-form::before {
    left: -14px;
}

.header-actions .show-reg-form a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}

.header-actions .show-reg-form i {
    margin: 0;
}

.header-actions .cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 40px;
}

.header-actions .add-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: auto;
}

.header-actions .nav-button-wrap {
    border: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}

.header-actions .nav-button-wrap .nav-button {
    display: block;
}

@media only screen and (max-width: 1320px) and (min-width: 1181px) {
    .main-header {
        gap: 12px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .nav-holder nav > ul > li > a {
        gap: 5px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 12px;
    }

    .header-actions {
        gap: 16px;
    }

    .header-actions .add-list {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media only screen and (max-width: 1180px) {
    .main-header {
        gap: 12px;
        padding: 0 18px;
    }

    .logo-holder {
        top: auto;
        flex-basis: 82px;
        height: 64px;
    }

    .header-actions {
        gap: 18px;
    }

    .header-actions .nav-button-wrap {
        display: flex;
        width: 38px;
        height: 38px;
        margin: 0;
    }

    .main-menu,
    .main-menu.nav-holder {
        position: fixed;
        top: 70px;
        right: 0;
        left: auto;
        z-index: 1001;
        display: block;
        flex: none;
        width: min(340px, calc(100vw - 28px));
        max-height: calc(100vh - 70px);
        margin: 0;
        padding: 12px 0 18px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #fff;
        border: 0;
        border-radius: 0 0 0 10px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
        opacity: 0;
        visibility: hidden;
        transform: translateX(105%);
        transition: transform .25s ease, opacity .2s ease, visibility .2s ease;
        -webkit-overflow-scrolling: touch;
    }

    .main-menu.vismobmenu {
        right: 0;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .main-menu nav {
        display: block;
        float: none;
        width: 100%;
    }

    .main-menu nav > ul,
    .main-menu nav ul {
        display: block !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-menu nav > ul > li,
    .main-menu nav li {
        display: block;
        float: none;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0 12px;
        overflow: visible;
        border-bottom: 1px solid #eef1f4;
    }

    .main-menu nav > ul > li:last-child {
        border-bottom: 0;
    }

    .main-menu nav > ul > li > a,
    .main-menu nav li a {
        display: flex;
        float: none;
        width: 100%;
        min-height: 48px;
        padding: 12px 8px;
        color: #334155;
        font-size: 13px;
        line-height: 24px;
        text-align: left;
        white-space: normal;
    }

    .main-menu nav li a i:first-child {
        width: 20px;
        text-align: center;
    }

    .main-menu nav li a .menu-arrow {
        margin-left: auto;
    }

    .main-menu nav li a:hover,
    .main-menu nav li a.act-link {
        color: #044821;
        background: #f3faf5;
    }

    body.mad-mobile-nav-open {
        overflow-x: hidden;
    }
}

@media only screen and (max-width: 768px) {
    .header-actions .add-list {
        display: none;
    }
}

@media only screen and (max-width: 520px) {
    .main-header {
        padding: 0 12px;
    }

    .logo-holder {
        flex-basis: 68px;
        width: 68px;
    }

    .logo-holder img {
        max-width: 66px;
        max-height: 56px;
    }

    .header-actions {
        gap: 13px;
    }

    .header-actions .show-reg-form::before {
        display: none;
    }

    .header-actions .show-reg-form {
        margin: 0;
    }
}

@media only screen and (max-width: 390px) {
    .header-actions .signin-text {
        display: none;
    }

    .header-actions .show-reg-form a {
        width: 30px;
        height: 38px;
        justify-content: center;
    }

    .header-actions .show-reg-form i {
        display: inline-block;
        font-size: 16px;
    }
}
