/* Regioes Page Styles */
body.regioes-body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.regioes-page {
    /* min-height: 100vh; */
    background: white;
    position: relative;
    /* overflow-x: hidden; */
    /* overflow-y: visible; */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.regioes-hero {
    padding: 180px 11.25px 45px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Decorative background element (Map image) */
.regioes-hero__decorative-bg {
    position: relative;
    width: 481.45px; /* 641.93 * 0.75 */
    height: 545.39px; /* 727.19 * 0.75 */
    margin: 0 auto;
    transform: rotate(-29deg);
    transform-origin: center center;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative Elements - Top (in regioes-page) */
.regioes-page::before {
    content: '';
    position: absolute;
    top: 180px;
    left: -150px;
    width: 322px;
    height: 431px;
    background-image: url('../../image/support/circle-artesaos-one-green-left_2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0 -150px 0 0);
}

.regioes-page::after {
    content: '';
    position: absolute;
    top: 180px;
    right: -150px;
    width: 422px;
    height: 431px;
    background-image: url('../../image/support/circle-artesaos-one-green-left_2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0 0 0 -150px);
}

/* Decorative Elements - Bottom (outside main, near footer) */
.regioes-page__decorative-bottom-left {
    position: absolute;
    bottom: 40px;
    left: -150px;
    width: 422px;
    height: 431px;
    background-image: url('../../image/support/circle-artesaos-one-green-left_2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0 -150px 0 0);
    overflow: hidden;
}

.regioes-page__decorative-bottom-right {
    position: absolute;
    bottom: 100px;
    right: -150px;
    width: 322px;
    height: 431px;
    background-image: url('../../image/support/circle-artesaos-one-green-left_2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0 0 0 -150px);
    overflow: hidden;
}

.regioes-hero__map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* City name overlay on decorative bg */
.regioes-hero__city-overlay {
    position: absolute;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: white;
    font-size: 37.5px; /* 50 * 0.75 */
    font-family: 'Afacad', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    z-index: 1;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.regioes-hero__title {
    font-family: 'Afacad', sans-serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 1.2;
    color: #CF4E3F;
    text-align: center;
    margin: 0 auto;
    max-width: 675px;
    position: relative;
    z-index: 2;
}

.regioes-hero__title-normal {
    font-weight: 400;
}

.regioes-hero__title-bold {
    font-weight: 700;
}

.regioes-hero__title-city {
    font-weight: 700;
    font-size: 97.5px;
    line-height: 75px;
    display: block;
    margin-top: 7.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
}

/* City Filter Section */
.regioes-city-filter {
    padding: 0 15px 30px;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.regioes-city-filter__container {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.regioes-city-filter__search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.regioes-city-filter__search {
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    padding: 12px 70px 12px 20px;
    border: 2px solid #CF4E3F;
    border-radius: 25px;
    background: white;
    color: #333;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.regioes-city-filter__search::placeholder {
    color: #999;
}

.regioes-city-filter__search:focus {
    outline: none;
    border-color: #9C372B;
    box-shadow: 0 0 0 3px rgba(207, 78, 63, 0.2);
}

.regioes-city-filter__search-icon {
    position: absolute;
    right: 45px;
    width: 20px;
    height: 20px;
    opacity: 0.6;
    pointer-events: none;
}

.regioes-city-filter__clear {
    position: absolute;
    right: 15px;
    width: 24px;
    height: 24px;
    border: none;
    background: #CF4E3F;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.regioes-city-filter__clear:hover {
    background: #9C372B;
}

.regioes-city-filter__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #CF4E3F;
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.regioes-city-filter__suggestions.active {
    display: block;
}

.regioes-city-filter__suggestion {
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Afacad', sans-serif;
    font-size: 15px;
    color: #333;
    transition: background 0.15s ease;
    border-bottom: 1px solid #eee;
}

.regioes-city-filter__suggestion:last-child {
    border-bottom: none;
}

.regioes-city-filter__suggestion:hover,
.regioes-city-filter__suggestion.highlighted {
    background: #FFF5F4;
    color: #CF4E3F;
}

.regioes-city-filter__suggestion--all {
    font-weight: 600;
    color: #CF4E3F;
    background: #FFF5F4;
}

.regioes-city-filter__suggestion--all:hover {
    background: #FFE8E5;
}

.regioes-city-filter__no-results {
    padding: 12px 20px;
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
    color: #999;
    text-align: center;
}

@media (max-width: 576px) {
    .regioes-city-filter__container {
        max-width: 280px;
    }
    
    .regioes-city-filter__search {
        font-size: 14px;
        padding: 10px 60px 10px 15px;
    }
    
    .regioes-city-filter__search-icon {
        right: 40px;
        width: 18px;
        height: 18px;
    }
    
    .regioes-city-filter__clear {
        right: 12px;
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}

/* Alphabet Filter Section */
.regioes-alphabet {
    padding: 0;
    background: #9C372B;
    border-radius: 34.5px; /* 46 * 0.75 */
    width: 100%;
    max-width: 1055.25px; /* 1407 * 0.75 */
    height: 57px; /* 76 * 0.75 */
    margin: 0 auto 45px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.regioes-alphabet__container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 11.25px;
    box-sizing: border-box;
}

.regioes-alphabet__filter {
    width: 100%;
    max-width: 1124.25px; /* 1499 * 0.75 */
    height: 29.25px; /* 39 * 0.75 */
    text-align: center;
    color: white;
    font-size: 24px; /* 32 * 0.75 */
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
    letter-spacing: 18px; /* Increased spacing between letters */
    line-height: 1;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.regioes-alphabet__filter::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.regioes-alphabet__letter {
    position: relative;
    z-index: 3;
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.regioes-alphabet__letter--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Circular indicator (Ellipse 33 style) */
.regioes-alphabet__indicator {
    position: absolute;
    width: 42px; /* 56 * 0.75 */
    height: 40.5px; /* 54 * 0.75 */
    background: #CF4E3F;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    transition: left 0.3s ease;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

/* Artisans Grid Section */
.regioes-artisans {
    padding: 0 11.25px 60px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

.regioes-artisans__container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.regioes-artisans__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px 0px; /* row-gap (vertical) 90px, column-gap (horizontal) 30px */
    width: 85%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    padding: 20px;
}

.regioes-artisan__card {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    min-width: 0;
}

.regioes-artisan__card:hover {
    transform: translateY(-3.75px);
}

.regioes-artisan__image-wrapper {
    position: relative;
    width: 264.75px; /* 353 * 0.75 */
    height: 316.5px; /* 422 * 0.75 */
    margin: 0 auto;
    background: #CF4E3F;
    border-radius: 46.5px; /* 62 * 0.75 */
    overflow: hidden;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15); /* Reduced shadow */
    margin-bottom: 11.25px;
    z-index: 1;
}

/* Background card (Rectangle 50) - positioned behind image */
.regioes-artisan__card::after {
    content: '';
    position: absolute;
    top: 77.25px; /* (1256.17 - 1153) * 0.75 = 77.38px, rounded to 77.25px */
    left: 50%;
    transform: translateX(-50%);
    width: 330.25px; /* 440.33 * 0.75 */
    height: 360.71px; /* 480.95 * 0.75 */
    background: #CF4E3F;
    border-radius: 45.75px; /* 61 * 0.75 */
    z-index: 0;
    pointer-events: none;
    box-shadow: none; /* Removed shadow */
}

.regioes-artisan__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 46.5px; /* 62 * 0.75 */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.regioes-artisan__name {
    font-family: 'ABeeZee', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 26.25px; /* 52.5px * 0.5 = 26.25px */
    font-weight: 400;
    color: white !important;
    width: 297px; 
    max-width: 297px;
    min-width: 0;
    text-align: center;
    line-height: 1.2;
    padding: 0 7.5px;
    position: relative;
    z-index: 2;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 11.25px auto 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.regioes-artisan__category {
    font-family: 'ABeeZee', sans-serif;
    font-size: 18.75px; /* Slightly smaller than name */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    width: 297px;
    max-width: 297px;
    text-align: center;
    line-height: 1.2;
    padding: 0 7.5px 15px;
    position: relative;
    z-index: 2;
    display: block;
    margin: 3.75px auto 0;
    box-sizing: border-box;
}

/* Responsive Design */
/* Hide decorative elements on mobile (below 724px) */
@media (max-width: 724px) {
    .regioes-page::before,
    .regioes-page::after,
    .regioes-page__decorative-bottom-left,
    .regioes-page__decorative-bottom-right {
        display: none;
    }
}

@media (max-width: 1200px) {
    .regioes-alphabet {
        width: 95%;
        max-width: 1055.25px;
    }
    
    .regioes-hero {
        padding: 150px 11.25px 45px;
    }
    
    .regioes-hero__decorative-bg {
        width: 400px;
        height: 454px;
    }
    
    .regioes-hero__title {
        font-size: 38px;
    }
    
    .regioes-hero__title-city {
        font-size: 80px;
        line-height: 65px;
    }
}

@media (max-width: 1024px) {
    .regioes-hero {
        padding: 120px 11.25px 30px;
        gap: 20px;
    }
    
    .regioes-hero__decorative-bg {
        width: 360px;
        height: 409px;
    }
    
    .regioes-hero__city-overlay {
        font-size: 28px;
        line-height: 1.2;
        max-width: 320px;
        width: 85%;
    }
    
    .regioes-hero__title {
        font-size: 30px;
    }
    
    .regioes-hero__title-city {
        font-size: 60px;
        line-height: 52.5px;
    }
    
    .regioes-alphabet {
        width: 95%;
        height: 50px;
        border-radius: 25px;
    }
    
    .regioes-alphabet__filter {
        font-size: 20px;
        letter-spacing: 12px;
        height: 26px;
    }
    
    .regioes-alphabet__indicator {
        width: 38px;
        height: 36px;
    }
    
    .regioes-artisans__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
        width: 90%;
    }
    
    .regioes-artisan__image-wrapper {
        width: 100%;
        max-width: 264.75px;
        height: auto;
        padding-bottom: 90%;
    }
    
    .regioes-artisan__name {
        font-size: 18.75px;
        width: 90%;
        max-width: 240px;
    }
    
    .regioes-artisan__category {
        font-size: 13.5px;
        width: 90%;
        max-width: 240px;
    }
    
    .regioes-alphabet__letter {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .regioes-hero {
        padding: 100px 11.25px 30px;
        gap: 15px;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .regioes-hero__decorative-bg {
        width: 280px;
        height: 318px;
        transform: rotate(-29deg);
        max-width: 90%;
        overflow: visible;
    }
    
    .regioes-page::before,
    .regioes-page::after {
        width: 300px;
        height: 306px;
        top: 100px;
    }
    
    .regioes-page::before {
        left: -120px;
    }
    
    .regioes-page::after {
        right: -120px;
    }
    
    .regioes-page__decorative-bottom-left,
    .regioes-page__decorative-bottom-right {
        width: 300px;
        height: 306px;
        bottom: -80px;
    }
    
    .regioes-page__decorative-bottom-left {
        left: -120px;
    }
    
    .regioes-page__decorative-bottom-right {
        right: -120px;
    }
    
    .regioes-hero__city-overlay {
        font-size: 22px;
        line-height: 1.2;
        max-width: 240px;
        width: 80%;
        padding: 0 10px;
    }
    
    .regioes-hero__title {
        font-size: 21px;
        max-width: 100%;
        width: 100%;
        padding: 0 11.25px;
    }
    
    .regioes-hero__title-city {
        font-size: 37.5px;
        line-height: 37.5px;
    }
    
    .regioes-alphabet {
        width: 95%;
        height: auto;
        min-height: 50px;
        border-radius: 22.5px;
        padding: 11.25px;
        margin: 0 auto 30px;
    }
    
    .regioes-alphabet__container {
        padding: 0 7.5px;
    }
    
    .regioes-alphabet__filter {
        font-size: 16px;
        letter-spacing: 8px;
        height: auto;
        min-height: 24px;
        padding: 5px 0;
    }
    
    .regioes-alphabet__indicator {
        width: 32px;
        height: 30px;
    }
    
    .regioes-alphabet__letter {
        font-size: 14px;
        letter-spacing: 4px;
    }
    
    .regioes-artisans {
        padding: 0 11.25px 40px;
        width: 100%;
    }
    
    .regioes-artisans__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .regioes-artisan__image-wrapper {
        width: 100%;
        max-width: 200px;
        height: auto;
        padding-bottom: 80%;
        margin-bottom: 8px;
    }
    
    .regioes-artisan__name {
        font-size: 16px;
        margin-top: 8px;
        width: 90%;
        max-width: 207px; /* 90% of card 230px */
    }
    
    .regioes-artisan__category {
        font-size: 12px;
        margin-top: 4px;
        width: 90%;
        max-width: 207px;
    }
    
    .regioes-artisan__card::after {
        width: 230px;
        height: 240px;
        top: 50px;
    }
}

@media (max-width: 576px) {
    .regioes-hero {
        padding: 80px 11.25px 20px;
        gap: 10px;
    }
    
    .regioes-hero__decorative-bg {
        width: 240px;
        height: 272px;
        overflow: visible;
    }
    
    .regioes-page::before,
    .regioes-page::after {
        width: 250px;
        height: 255px;
        top: 80px;
    }
    
    .regioes-page::before {
        left: -100px;
    }
    
    .regioes-page::after {
        right: -100px;
    }
    
    .regioes-page__decorative-bottom-left,
    .regioes-page__decorative-bottom-right {
        width: 250px;
        height: 255px;
        bottom: 0;
    }
    
    .regioes-page__decorative-bottom-left {
        left: -100px;
    }
    
    .regioes-page__decorative-bottom-right {
        right: -100px;
    }
    
    .regioes-hero__city-overlay {
        font-size: 18px;
        line-height: 1.2;
        max-width: 200px;
        width: 75%;
        padding: 0 8px;
    }
    
    .regioes-hero__title {
        font-size: 18px;
    }
    
    .regioes-hero__title-city {
        font-size: 30px;
        line-height: 33.75px;
    }
    
    .regioes-alphabet {
        width: 98%;
        height: auto;
        min-height: 45px;
        border-radius: 20px;
        padding: 8px;
        margin: 0 auto 25px;
    }
    
    .regioes-alphabet__container {
        padding: 0 5px;
    }
    
    .regioes-alphabet__filter {
        font-size: 14px;
        letter-spacing: 6px;
        height: auto;
        min-height: 20px;
        padding: 4px 0;
    }
    
    .regioes-alphabet__indicator {
        width: 28px;
        height: 26px;
    }
    
    .regioes-alphabet__letter {
        font-size: 12px;
        letter-spacing: 3px;
    }
    
    .regioes-artisans {
        padding: 0 11.25px 30px;
    }
    
    .regioes-artisans__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .regioes-artisan__image-wrapper {
        width: 100%;
        max-width: 150px;
        height: auto;
        padding-bottom: 120%;
        margin-bottom: 8px;
    }
    
    .regioes-artisan__name {
        font-size: 12px;
        margin-top: 8px;
        width: 90%;
        max-width: 150px;
    }
    
    .regioes-artisan__category {
        font-size: 10px;
        margin-top: 3px;
        width: 90%;
        max-width: 150px;
    }
    
    .regioes-artisan__card::after {
        width: 160px;
        height: 170px;
        top: 40px;
    }
    
    .regioes-artisan__card {
        margin: 0 10px;
    }
}

@media (max-width: 375px) {
    .regioes-hero {
        padding: 60px 8px 15px;
    }
    
    .regioes-hero__decorative-bg {
        width: 200px;
        height: 227px;
        overflow: visible;
    }
    
    .regioes-page::before,
    .regioes-page::after {
        width: 200px;
        height: 204px;
        top: 60px;
    }
    
    .regioes-page::before {
        left: -80px;
    }
    
    .regioes-page::after {
        right: -80px;
    }
    
    .regioes-page__decorative-bottom-left,
    .regioes-page__decorative-bottom-right {
        width: 200px;
        height: 204px;
        bottom: 0;
    }
    
    .regioes-page__decorative-bottom-left {
        left: -80px;
    }
    
    .regioes-page__decorative-bottom-right {
        right: -80px;
    }
    
    .regioes-hero__city-overlay {
        font-size: 16px;
        max-width: 180px;
        width: 70%;
        padding: 0 6px;
    }
    
    .regioes-hero__title {
        font-size: 16px;
    }
    
    .regioes-hero__title-city {
        font-size: 26px;
        line-height: 30px;
    }
    
    .regioes-alphabet {
        width: 100%;
        border-radius: 18px;
        padding: 6px;
        margin-bottom: 20px;
    }
    
    .regioes-alphabet__filter {
        font-size: 12px;
        letter-spacing: 4px;
        padding: 3px 0;
    }
    
    .regioes-alphabet__indicator {
        width: 24px;
        height: 22px;
    }
    
    .regioes-alphabet__letter {
        font-size: 11px;
        letter-spacing: 2px;
    }
    
    .regioes-artisans {
        padding: 0 8px 25px;
    }
    
    .regioes-artisans__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        max-width: 100%;
    }
    
    .regioes-artisan__image-wrapper {
        max-width: 130px;
        padding-bottom: 120%;
    }
    
    .regioes-artisan__name {
        font-size: 11px;
        width: 90%;
        max-width: 130px;
    }
    
    .regioes-artisan__category {
        font-size: 9px;
        margin-top: 2px;
        width: 90%;
        max-width: 130px;
    }
    
    .regioes-artisan__card::after {
        width: 140px;
        height: 150px;
        top: 30px;
    }
    
    .regioes-artisan__card {
        margin: 0 5px;
    }
}

