.modal-body {
    max-height: 400px; 
    overflow-y: none; 
    padding: 0;
}

.modal-selectcitylist {
    display: none; 
    position: fixed; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    z-index: 1000; 
    background-color: #eff7ffb5;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s; 
}

.modal-content {
    background-color: #fff;
    margin: auto;
    border: none;
    margin-top: 5%;
    padding: 20px;
    width: 80%; 
    max-width: 600px; 
    animation: slideDown 0.5s; 
    box-shadow: 5px 15px 60px -3px #b0c3d5;
}

.modal-selectcitylist .modal-header {
    display: block;
    margin: 0;
    padding: 0 0 15px 0;
    border: none;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    line-height: 1;
    padding: 0px 6px;
    margin: 0;
    border: 1px solid #858282;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

#selectcitylistModal .modal-header h2 {
    font-size: 1.5em;
    min-width: 50%;
    font-weight: 600;
    color: #717070;
}

.city-list {

}
.city-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.city-group {
    flex: 0 0 22%; 
    margin-bottom: 20px; 
}

.city-group h2 {
    font-size: 1.4em;
    margin: 0;
    font-weight: 700;
    color: #aaafb5;
}

.city-group ul {
    list-style: none; 
    padding: 0; 
}

.city-group li {
    line-height: 1.2;
    padding-bottom: 0.6em;
}

.city-group li a {
    color: #0345bf;
    font-size: 1.2em;
}

.city-one {
    text-decoration: none; 
    color: #000; 
}

.city-one:hover {
    text-decoration: underline; 
}

.city-one .city-one-meta {
    display: block;
    margin-top: -2px;
    font-size: 0.62em;
    line-height: 1.25;
    font-weight: 500;
    color: #6f7f98;
}


.city-list::-webkit-scrollbar {
    width: 10px; 
}

.city-list::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.city-list::-webkit-scrollbar-thumb {
    background: #888;
}

.city-list::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

.city-list {
    scrollbar-width: thin; 
    scrollbar-color: #888 #f1f1f1; 
}


.city-list {
    overflow-y: scroll; 
    max-height: 350px; 
}

@media (max-width: 300px) { 
    .city-group {
      flex: 0 0 100%;
      margin-bottom: 20px;
    }
}
@media (max-width: 720px) { 
    .city-group {
      flex: 0 0 50%;
      margin-bottom: 20px;
    }
}

@media (max-width: 992px) { 
    .city-group {
      flex: 0 0 33%;
      margin-bottom: 20px;
    }
}

.city-featured-row {
    margin: 0 0 16px;
    padding: 0;
}

.city-featured-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.city-featured-list li {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.city-featured-list .city-one {
    display: block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f3f5;
    color: #577198;
    font-size: 0.95em;
    text-decoration: none;
    white-space: nowrap;
}

.city-featured-list .city-one:hover {
    text-decoration: none;
    background: #e9ebee;
}

.city-country-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e6edf5;
}

.city-country-btn {
    border: 1px solid #d4dae3;
    background: #f5f7fa;
    color: #3a4f6f;
    border-radius: 999px;
    padding: 7px 14px;
    line-height: 1;
    cursor: pointer;
    font-size: 0.95em;
}

.city-country-btn:hover {
    background: #ebeff5;
}

.city-country-btn.active {
    background: #1f4f8e;
    border-color: #1f4f8e;
    color: #fff;
}

.city-region-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e6edf5;
    overflow-x: hidden;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.city-region-btn {
    border: 1px solid #d4dae3;
    background: #f5f7fa;
    color: #3a4f6f;
    border-radius: 999px;
    padding: 6px 12px;
    line-height: 1;
    cursor: pointer;
    font-size: 0.9em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.city-region-btn:hover {
    background: #ebeff5;
}

.city-region-btn.active {
    background: #1f4f8e;
    border-color: #1f4f8e;
    color: #fff;
}

.city-region-btn.is-extra {
    display: none;
}

.city-region-filter.is-expanded {
    flex-wrap: wrap;
    overflow-x: visible;
}

.city-region-filter.is-expanded .city-region-btn.is-extra {
    display: inline-block;
}

.city-region-more-btn {
    border: 1px dashed #9eb0c9;
    background: #ffffff;
    color: #1f4f8e;
    border-radius: 999px;
    padding: 7px 14px;
    line-height: 1;
    cursor: pointer;
    font-size: 0.95em;
    white-space: nowrap;
    flex: 0 0 auto;
    position: sticky;
    right: 0;
    z-index: 2;
}
.city-region-more-btn[data-state="collapsed"] {
    box-shadow: -13px 0px 13px 15px #fff;
}
.city-region-more-btn:hover {
    background: #f4f8ff;
}

.city-region-filter.is-expanded .city-region-more-btn {
    position: static;
}


#modal-top_geo.top_geo_v2 {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    line-height: 1.1;
}

#modal-top_geo.top_geo_v2 .fas {
    display: none !important;
}

#modal-top_geo.top_geo_v2 .labelText {
    display: block;
    margin: 0 0 4px 0;
    color: #7f8791;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.04em;
}

#modal-top_geo.top_geo_v2 #link_my_selectcitylist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e2430;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

#modal-top_geo.top_geo_v2 #link_my_selectcitylist .down {
    display: inline-block !important;
    width: 8px;
    height: 8px;
    margin-left: 0px;
    border-top: 2px solid #7f8791;
    border-right: 2px solid #7f8791;
    transform: rotate(45deg);
    font-size: 0;
    line-height: 0;
}


.favorits-city-list-wrap {
    width: 100%;
}

.favorits-city-intro {
    margin: 0 0 10px;
    color: #3a4f6f;
    font-size: 0.95em;
    line-height: 1.4;
}

.favorits-city-outro {
    margin: 10px 0 0;
    color: #3a4f6f;
    font-size: 0.95em;
    line-height: 1.4;
}

.favorits-city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.favorits-city-item {
    margin: 0;
    padding: 0;
}

.favorits-city-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d4dae3;
    background: #f5f7fa;
    color: #3a4f6f;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.favorits-city-link:hover {
    background: #ebeff5;
    text-decoration: none;
}

.favorits-city-item.is-active .favorits-city-link {
    background: #1f4f8e;
    border-color: #1f4f8e;
    color: #fff;
}

.favorits-city-link-all {
    border-style: dashed;
}

.favorits-city-list-wrap.is-column .favorits-city-list {
    flex-direction: column;
    align-items: flex-start;
}

.favorits-city-list-wrap.is-column .favorits-city-link {
    width: 100%;
    border-radius: 12px;
}

.selectcity-first-visit-notice {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    max-width: 360px;
    width: calc(100% - 32px);
    background: #ffffff;
    border: 1px solid #d9e2ef;
    box-shadow: 0 10px 30px rgba(31, 79, 142, 0.2);
    border-radius: 12px;
    padding: 14px 14px 12px;
}

.selectcity-first-visit-text {
    color: #2a3b55;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 10px;
    padding-right: 18px;
}

.selectcity-first-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f4f8e;
    background: #1f4f8e;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.selectcity-first-visit-btn:hover {
    background: #184276;
    border-color: #184276;
}

.selectcity-first-visit-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: transparent;
    color: #8b97a8;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.selectcity-first-visit-close:hover {
    color: #2a3b55;
}
