/**
 * TM Reviews Map Styles
 * 
 * Styles for map filter functionality including:
 * - Map canvas and wrapper
 * - Zoom controls
 * - Visible objects info panel
 * - Scroll highlight effects
 * 
 * @package TM-Catalog
 * @author Templines
 * @link https://templines.com
 */

/* ========================================
   Map Filter Title
   ======================================== */

/* Map Header with Toggle Button */
.tmreviews-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.tmreviews-map-filter-title {
    margin-bottom: 0;
    padding: 0;
    line-height: 1.7;
    flex: 1;
}

/* Toggle Map Button */
.tmreviews-toggle-map-btn {
    background: #fff;
    border: 1px solid #E8E8E9;
    border-radius: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.tmreviews-toggle-map-btn:hover {
    background: #f8f9fa;
    border-color: #ec6326;
}

.tmreviews-toggle-map-btn:hover .tmreviews-toggle-icon {
    color: #ec6326;
}

/* Toggle Icons */
.tmreviews-toggle-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.tmreviews-toggle-icon-show {
    display: none;
}

.tmreviews-map-hidden .tmreviews-toggle-icon-hide {
    display: none;
}

.tmreviews-map-hidden .tmreviews-toggle-icon-show {
    display: block;
}

/* ========================================
   Map Wrapper & Canvas
   ======================================== */

.tmreviews-map-wrapper {
    position: relative;
    width: 100%;
}

.tmreviews-map-canvas {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

/* ========================================
   Zoom Controls
   ======================================== */

.tmreviews-map-zoom-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.tmreviews-zoom-btn {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: #333;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tmreviews-zoom-btn:hover {
    background: #ec6326;
    color: #fff;
    border-color: #ec6326;
    box-shadow: 0 4px 12px rgba(236, 99, 38, 0.3);
    transform: translateY(-2px);
}

.tmreviews-zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tmreviews-zoom-btn span {
    display: block;
    line-height: 1;
}

/* ========================================
   Visible Objects Info Panel
   ======================================== */

.tmreviews-visible-objects-info {
    border: 1px solid #E8E8E9;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s 
ease;
    padding: 19px 26px 17px 26px;
}



/* Info Icon */
.tmreviews-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ec6326 0%, #ff7a45 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(236, 99, 38, 0.3);
}

.tmreviews-info-icon svg {
    width: 20px;
    height: 20px;
}

/* Info Content */
.tmreviews-info-content {
    flex: 1;
}

.tmreviews-info-title {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.5;
}

.tmreviews-info-title strong {
    color: #ec6326;
    font-size: 18px;
    font-weight: 700;
}

.tmreviews-info-hint {
font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    font-style: italic;
}

/* Visible IDs (hidden by default) */
.tmreviews-visible-objects-info .visible-ids {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    max-height: 100px;
    overflow-y: auto;
}

.tmreviews-visible-objects-info .visible-ids:empty {
    display: none;
}

.tmreviews-visible-objects-info .visible-ids strong {
    color: #333;
    font-weight: 600;
}

/* ========================================
   Scroll Highlight Effect
   ======================================== */

.tmreviews-scroll-highlight  .entry-property-item-content{
    outline: 3px solid #ec6326;
    outline-offset: 4px;
    transition: outline 0.3s ease;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
    .tmreviews-map-zoom-controls {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .tmreviews-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .tmreviews-visible-objects-info {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .tmreviews-visible-objects-info .visible-count {
        font-size: 14px;
    }
    
    .tmreviews-visible-objects-info .visible-count span {
        font-size: 16px;
    }
    
    .tmreviews-visible-objects-info .visible-ids {
        font-size: 12px;
        max-height: 80px;
    }
    
    .tmreviews-map-canvas {
        height: 400px;
    }
}


.templines-property-listing-wrapper #map-canvas {
    height: 500px;
    margin-bottom: 2.5rem;
    border-radius: 15px;
    background: #eee;
}

/* ========================================
   Active Filters Chips
   ======================================== */

.tmreviews-active-filters-wrapper {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tmreviews-active-filters-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tmreviews-filters-label {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.tmreviews-filters-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.tmreviews-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 13px;
    color: #212529;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tmreviews-filter-chip:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tmreviews-filter-chip .chip-label {
    line-height: 1;
}

.tmreviews-filter-chip .chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.tmreviews-filter-chip .chip-remove:hover {
    background: #e9ecef;
    color: #dc3545;
}

.tmreviews-filter-chip .chip-remove svg {
    width: 10px;
    height: 10px;
}

.tmreviews-clear-all-filters {
    padding: 6px 16px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tmreviews-clear-all-filters:hover {
    background: #c82333;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .tmreviews-active-filters-wrapper {
        padding: 12px 15px;
    }
    
    .tmreviews-active-filters-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tmreviews-filters-chips {
        width: 100%;
    }
    
    .tmreviews-clear-all-filters {
        width: 100%;
        text-align: center;
    }
}
