#newindex {
    padding: 24px;
    margin: 10px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
}
#newindex .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
#newindex .section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    padding: 0;
}
#newindex .section-header > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
#newindex .section-header p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}
#newindex .see-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(to right, var(--dark-green) 50%, var(--green) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    padding: 16px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: background-position 0.7s ease;
}
#newindex .see-all-link:hover {
    background-position: left bottom;
}
#newindex .small-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 0 16px 0;
}
#newindex .card-wrapper {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#newindex .card-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
#newindex .card-link {
    display: block;
    text-decoration: none;
}
#newindex .card-image {
    position: relative;
    width: 100%;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    overflow: hidden;
    flex-shrink: 0;
}
#newindex .card-thumb-img,
#newindex .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#newindex .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
}
#newindex .card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
#newindex .card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
#newindex .card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 26px;
    flex-wrap: wrap;
}
#newindex .card-tag {
    font-size: 12px;
    color: #555;
    background: #f0f0f5;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}
#newindex .card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 18px;
    margin-bottom: 6px;
}
#newindex .card-location-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
#newindex .card-location a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: color 0.7s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}
#newindex .card-location a:hover {
    color: var(--light-purple);
}
#newindex .card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
    margin-bottom: 10px;
}
#newindex .card-features {
    display: flex;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #777;
}
#newindex .card-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
#newindex .card-features svg {
    color: #999;
    flex-shrink: 0;
}
#newindex .slider-dots {
    display: none;
}
@media (max-width: 1000px) {
    #newindex {
        padding: 24px !important;
    }
    .section-content-sidebar-grid > .row:has(#newindex) {
        flex-direction: column;
    }
}
@media (max-width: 992px) {
    #newindex .small-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 450px) {
    #newindex {
        padding: 0 !important;
        box-shadow: none !important;
    }
    #newindex .small-cards-wrapper {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 12px;
        padding-bottom: 8px;
        margin: 0 0 16px 0;
    }
    #newindex .card-wrapper {
        flex: 0 0 100%;
        max-width: 100% !important;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        min-height: auto;
    }
    #newindex .small-cards-wrapper {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #newindex .small-cards-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    #newindex .slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }
    #newindex .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        flex-shrink: 0;
    }
    #newindex .slider-dot.active {
        background: var(--primary);
        padding: 5px;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--light-purple) 15%, transparent);
        transform: scale(1.15);
    }
}
.zone-populare-section {
    padding: 24px 0;
}
.zone-populare-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.zone-populare-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.zona-card {
    flex: 0 0 calc((100% - 5 * 16px) / 6);
    max-width: calc((100% - 5 * 16px) / 6);
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}
.zona-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    color: inherit;
}
.zona-card-image {
    width: 100%;
    height: 110px;
    overflow: hidden;
}
.zona-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.zona-card-info {
    padding: 10px 12px 12px;
}
.zona-nume {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}
.zona-numar {
    font-size: 12px;
    color: #888;
}
@media (max-width: 992px) {
    .zona-card {
        flex: 0 0 calc((100% - 2 * 16px) / 3);
        max-width: calc((100% - 2 * 16px) / 3);
    }
}
@media (max-width: 576px) {
    .zona-card {
        flex: 0 0 calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}
#home-search-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 20px;
    box-sizing: border-box;
}
#home-search-hero .header-bg-image {
    position: absolute;
    inset: 0;
    background-image: url(../images/backgrounds/background-homepage.png);
    background-size: cover;
    background-position: center;
    z-index: 0;
}
#home-search-hero .header-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.55), rgba(10, 10, 20, 0.65));
}
#home-search-hero .page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    color: var(--white);
}
#home-search-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin: 0;
    text-shadow: none;
}
#home-search-hero .hero-subtitle {
    font-size: 17px;
    font-weight: 500;
    color: #e8e8ee;
    max-width: 640px;
    margin: 0 auto 32px auto;
    line-height: 1.5;
}
#home-search-hero .header-form-wrapper {
    max-width: 850px;
    width: 850px;
    margin: 0 auto;
}
#home-search-hero .search-bar-row {
    display: flex;
    align-items: center;
    background: var(--white);
    height: auto;
    border-radius: 16px;
    padding: 6px;
    gap: 4px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
#home-search-hero .search-select-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
}
#home-search-hero .search-submit-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(to right, var(--dark-green) 50%, var(--green) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: background-position 0.7s ease;
    margin: 0;
}
#home-search-hero .search-submit-btn:hover {
    background-position: left bottom;
}

#home-search-hero .search-select-wrap .ts-wrapper {
    width: 100%;
    box-sizing: border-box;
}

#home-search-hero .ts-wrapper.single .ts-control {
    width: 100%;
    box-sizing: border-box;
    border: none !important;
    background: transparent !important;
    padding: 10px 32px 10px 20px !important;
    box-shadow: none !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    cursor: pointer;
}

#home-search-hero .ts-wrapper.single .ts-control {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#home-search-hero .ts-wrapper.single .ts-control input {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
}

#home-search-hero .ts-wrapper.single .ts-control::after {
    display: none !important;
}

#home-search-hero .search-select-wrap:not(:has(.ts-wrapper))::after,
#home-search-hero .search-select-wrap:has(.ts-wrapper)::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

#home-search-hero .ts-wrapper.dropdown-active .ts-control {
    background: #faf8fc !important;
}

#home-search-hero .ts-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 12px !important;
    border: 1px solid #ececf0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    margin-top: 0 !important;
    background: var(--white) !important;
    z-index: 9999 !important;
    overflow: hidden;
    max-height: 260px;
}

#home-search-hero .ts-dropdown .ts-dropdown-content {
    max-height: 260px;
    overflow-y: auto;
}

#home-search-hero .ts-dropdown .option {
    padding: 10px 16px !important;
    font-size: 14px;
    color: #1a1a2e;
}

#home-search-hero .ts-dropdown .option mark {
    background: #fceeb5;
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
}

#home-search-hero .ts-dropdown .active {
    background-color: #f5f0fb !important;
    color: var(--primary, #780976) !important;
    font-weight: 600;
}

@media (max-width: 900px) {
    #home-search-hero .header-form-wrapper {
        width: 100%;
    }
}

@media (max-width: 700px) {
    #home-search-hero h1 {
        font-size: 32px;
    }
    #home-search-hero .hero-subtitle {
        font-size: 15px;
    }
    #home-search-hero .search-bar-row {
        flex-wrap: wrap;
        border-radius: 20px;
    }
    #home-search-hero .search-select-wrap {
        flex: 1 1 100%;
        margin-bottom: 6px;
    }
    #home-search-hero .search-submit-btn {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
        margin-top: 6px;
        padding: 14px 0;
    }
}

#home-search-hero .ts-dropdown .no-results {
    padding: 14px 16px;
    font-size: 13px;
    color: #999;
    text-align: center;
    font-style: italic;
}

@media (min-width: 1000px) {
    #header-page #header-top {
        display: none;
    }
}

#header-page .main-menu-subsection {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    border-bottom: 4px solid var(--light);
    margin-top: 0;
}

#header-page .page-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

#header-page .main-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 0;
}

#header-page .main-menu .menu-logo-item {
    display: flex;
    align-items: center;
    margin-right: auto; 
}

#header-page .main-menu .menu-logo-item img.site-logo {
    width: auto;
    display: block;
}

#header-page .main-menu-item > span,
#header-page .main-menu-link-simple {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#header-page .main-menu .main-menu-item>span:after {
    display: none !important;
}

#header-page .menu-chevron {
    width: 12px;
    height: auto; 
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#header-page .main-menu-item:hover > span,
#header-page .main-menu-link-simple:hover {
    color: var(--primary, #780976);
}

#header-page .main-menu-item:hover > span .menu-chevron {
    opacity: 1;
    transform: rotate(180deg);
}

#header-page .main-menu-item {
    position: relative;
    padding: 14px 26px;
}

#header-page .main-menu > .main-menu-item:last-child {
    margin-left: auto; 
    visibility: hidden; 
    pointer-events: none; 
}

#header-page .main-menu-item::after {
    content: '';
    position: absolute;
    top: 100%;       
    left: 0;
    width: 100%;
    height: 20px;    
    background: transparent; 
}

#header-page .sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    margin: 0;
    padding: 10px 0;
    width: auto;
    min-width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    overflow: visible;
}

#header-page .sub-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 28px;
    width: 14px;
    height: 14px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: -3px -3px 6px rgba(0, 0, 0, 0.04);
    border-radius: 3px 0 0 0;
}

#header-page .main-menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#header-page .sub-menu-item {
    position: relative;
    padding-right: 10px; 
    margin-right: -10px; /
}

#header-page .sub-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 22px;
    font-size: 14.5px;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

#header-page .sub-menu-item > a.icon {
    justify-content: flex-start !important;
}

#header-page .sub-menu-item:hover > a {
    background: #f7f2fb;
    color: var(--primary, #780976);
}

#header-page .sub-menu-item:has(> ul) > a::after,
#header-page .sub-menu-item.has-sub > a::after {
    content: '';
    width: 24px; 
    height: 16px;
    background-image: url('../images/icons/arrow-down.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

#header-page .sub-menu-item:hover:has(> ul) > a::after,
#header-page .sub-menu-item.has-sub:hover > a::after {
    opacity: 1;
}

#header-page .sub-menu-item:hover:has(> ul) > a::after {
    opacity: 1;
}

#header-page .sub-menu-item > ul {
    list-style: none;
    position: absolute;
    top: -12px;
    left: 96%;
    margin: 0;
    padding: 10px 0;
    min-width: 260px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

#header-page .has-sub-menu-items:hover > .has-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#header-page .sub-menu-item:hover > ul,
#header-page .sub-menu-item:hover > .has-sub-menu {
    transform: translateX(0);
}

#header-page .sub-menu-item {
    padding-left: 10px;
    margin-left: -10px;
}

#header-page .sub-menu-item:has(> ul) > a::after,
#header-page .sub-menu-item:has(> .has-sub-menu) > a::after {
    transform: rotate(90deg);
}

#header-page .sub-menu-item:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

#header-page .sub-menu-item > ul .sub-menu-item > a {
    padding: 10px 22px;
    font-size: 14px;
}

#header-page .sub-menu-item > ul .sub-menu-item:hover > a::after {
    display: none; 
}

#header-page .sub-menu-item a.with-icon span, 
#header-page .sub-menu-item a:visited.with-icon span {
    right: 100px;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 1000px) {
    #header-page .main-menu-subsection {
        display: none; 
    }
}

.homepage .section-main-content-wrapper h3,
.homepage .section-main-content-wrapper h6 {
    max-width: 100% !important;
    color: var(--primary);
}