/*
 * Té de Vida - Locator widget styles
 * v1.2.0 - mapa arriba, carrusel de fotos abajo
 */

.tdv-locator {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: inherit;
    color: #2c3e2e;
    box-sizing: border-box;
}

.tdv-locator h2 {
    font-family: inherit;
    color: #2c3e2e;
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.25;
}

.tdv-locator p.tdv-intro {
    color: #5a5a5a;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.5;
}

.tdv-locator .tdv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tdv-locator .tdv-filters select {
    flex: 1 1 220px !important;
    min-width: 220px !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 14px 16px !important;
    border: 1.5px solid #cfd6cf !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: #2c3e2e !important;
    cursor: pointer;
    outline: none;
    box-sizing: border-box !important;
}

.tdv-locator .tdv-filters select:focus {
    border-color: #5e7f5b !important;
}

.tdv-locator .tdv-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

@media (max-width: 780px) {
    .tdv-locator .tdv-layout {
        grid-template-columns: 1fr;
    }
}

.tdv-locator .tdv-list {
    max-height: 680px;
    overflow-y: auto;
    padding-right: 6px;
}

.tdv-locator .tdv-local {
    padding: 16px;
    border: 1.5px solid #e3e8e2;
    border-radius: 10px;
    background: #fafbfa;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.tdv-locator .tdv-local:hover {
    border-color: #5e7f5b;
    background: #fff;
}

.tdv-locator .tdv-local.active {
    border-color: #3d5d3a;
    background: #fff;
    box-shadow: 0 4px 14px rgba(61, 93, 58, 0.12);
}

.tdv-locator .tdv-local h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #2c3e2e;
    font-weight: 700;
    line-height: 1.3;
}

.tdv-locator .tdv-local .addr {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.tdv-locator .tdv-local .phone {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.tdv-locator .tdv-local .phone a {
    color: #3d5d3a;
    text-decoration: none;
}

.tdv-locator .tdv-local .phone a:hover {
    text-decoration: underline;
}

.tdv-locator .tdv-local .badge {
    display: inline-block;
    background: #e8efe7;
    color: #3d5d3a;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tdv-locator .tdv-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tdv-locator .tdv-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e3e8e2;
    background: #f5f5f5;
}

.tdv-locator .tdv-map-wrap iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

.tdv-locator .tdv-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e3e8e2;
    background: #f5f7f5;
    aspect-ratio: 16 / 9;
}

.tdv-locator .tdv-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.tdv-locator .tdv-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.tdv-locator .tdv-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tdv-locator .tdv-carousel-slide .tdv-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.tdv-locator .tdv-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #2c3e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.tdv-locator .tdv-carousel-btn:hover {
    background: #fff;
}

.tdv-locator .tdv-carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tdv-locator .tdv-carousel-btn.tdv-prev {
    left: 10px;
}

.tdv-locator .tdv-carousel-btn.tdv-next {
    right: 10px;
}

.tdv-locator .tdv-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.tdv-locator .tdv-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    padding: 0;
}

.tdv-locator .tdv-carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.tdv-locator .tdv-carousel.tdv-no-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9aa49a;
    font-style: italic;
    font-size: 14px;
    padding: 30px 16px;
    background: #f5f7f5;
}

.tdv-locator .tdv-carousel.tdv-no-photos .tdv-carousel-track,
.tdv-locator .tdv-carousel.tdv-no-photos .tdv-carousel-btn,
.tdv-locator .tdv-carousel.tdv-no-photos .tdv-carousel-dots {
    display: none;
}

.tdv-locator .tdv-carousel.tdv-single .tdv-carousel-btn,
.tdv-locator .tdv-carousel.tdv-single .tdv-carousel-dots {
    display: none;
}

.tdv-locator .tdv-empty {
    padding: 30px 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}
