/**
 * Local Area Widget CSS
 */
.local-area-map-wrapper {
    position: relative;
}

.local-area-popup-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    max-height: 50%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    pointer-events: none;
    display: none;
}

.local-area-popup-overlay.active {
    pointer-events: auto;
}

.local-area-popup-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    max-width: 100%;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    max-height: 100%;
    overflow-y: auto;
}

.local-area-popup-content * {
    pointer-events: auto;
}

.local-area-popup-panels {
    position: relative;
}

.local-area-popup-panel {
    display: none;
}

.local-area-popup-panel.is-active {
    display: block;
}

.local-area-popup-logo {
    margin-bottom: 0;
    text-align: center;
    border-bottom: none;
    padding-bottom: 15px;
}

.local-area-popup-logo img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

.local-area-popup-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #000;
    font-family: sans-serif;
    line-height: 1.3;
    display: none !important;
}

.local-area-popup-subtitle {
    font-size: 12px;
    font-style: italic;
    color: #666;
    margin: 0 0 10px 0;
    font-family: serif;
    display: none !important;
}

.local-area-popup-address {
    margin: 10px 0;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
}

.local-area-popup-phone {
    margin: 10px 0;
    color: #000000;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.local-area-popup-phone a {
    color: #000000;
    text-decoration: none;
}

.local-area-popup-phone a:hover {
    text-decoration: underline;
}

.local-area-popup-phone:before {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.local-area-popup-social {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.local-area-popup-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
}

.local-area-popup-social .social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* Google Reviews Styles */
.local-area-popup-reviews {
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.google-reviews-loading {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding: 10px;
    display: none;
}

.google-reviews-error {
    color: #d32f2f;
    font-size: 12px;
    padding: 10px;
    text-align: center;
    display: none;
}

.google-reviews-content {
    margin-top: 10px;
    display: none;
}

.google-reviews-header {
    margin-bottom: 15px;
}

.google-reviews-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    white-space: nowrap;
}

.google-rating-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.google-rating-stars .star {
    color: #fbc02d;
    font-size: 18px;
    line-height: 1;
}

.google-rating-stars .star.star-empty {
    color: #ddd;
}

.google-rating-stars .star.star-half {
    background: linear-gradient(90deg, #fbc02d 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.google-rating-value {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    order: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.google-rating-stars {
    order: 2;
    flex-shrink: 0;
}

.google-rating-count {
    font-size: 14px;
    color: #666;
    order: 3;
    flex-shrink: 0;
    white-space: nowrap;
}

.google-reviews-list {
    display: none !important;
    /* Hide individual reviews list - only show rating summary */
}

.google-review-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.google-review-item:last-child {
    border-bottom: none;
}

.google-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.google-review-author {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.google-review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.google-review-stars {
    display: inline-flex;
    gap: 1px;
}

.google-review-stars .star {
    color: #fbc02d;
    font-size: 12px;
    line-height: 1;
}

.google-review-stars .star.star-empty {
    color: #ddd;
}

.google-review-time {
    font-size: 11px;
    color: #999;
}

.google-review-text {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    margin-top: 6px;
}

.google-reviews-list .no-reviews {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 20px;
    margin: 0;
}

/* Scrollbar styling for reviews list */
.google-reviews-list::-webkit-scrollbar {
    width: 6px;
}

.google-reviews-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.google-reviews-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.google-reviews-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Local Area List Widget */
.local-area-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.local-area-list--list {
    grid-template-columns: 1fr;
}

.local-area-card {
    height: 100%;
}

.local-area-card__link {
    display: block;
    height: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px 18px;
    background: #ffffff;
    text-decoration: none;
    color: #111111;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.local-area-card__link:hover {
    border-color: #b3b3b3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.local-area-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.local-area-card__address {
    margin: 0 0 10px;
    font-size: 14px;
    color: #555555;
    white-space: pre-line;
}

.local-area-card__excerpt {
    margin: 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.local-area-list--plain .local-area-card__link {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.local-area-list--plain .local-area-card__link:hover {
    border: none;
    box-shadow: none;
    transform: none;
}

.local-area-list--plain .local-area-card__title {
    margin: 0 0 8px;
    font-weight: 600;
}

.local-area-list--plain .local-area-card__address,
.local-area-list--plain .local-area-card__excerpt {
    display: none;
}

.local-area-list--plain .local-area-card {
    margin-bottom: 12px;
}

.local-area-notice {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 14px;
}

.local-area-notice--error {
    color: red;
}

.local-area-notice--warn {
    color: orange;
}