/* Ghana Realty Connect - Virtual Tour Map Styles */

.interactive-map-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
}

.virtual-tour-map {
    width: 100%;
    height: 400px;
    border: none;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.map-overlay-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    max-width: 300px;
    z-index: 1000;
}

.location-summary h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.location-summary p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.map-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-map-action {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.btn-map-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52,152,219,0.4);
}

.btn-map-action:active {
    transform: translateY(0);
}

.coordinates {
    margin-top: 8px;
    padding: 6px 10px;
    background: #ecf0f1;
    border-radius: 4px;
    font-family: 'Monaco', monospace;
}

.virtual-tour-section {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.virtual-tour-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.existing-tour {
    text-align: center;
}

.existing-tour p {
    margin-bottom: 15px;
    color: #27ae60;
    font-weight: 500;
}

.tour-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-virtual-tour {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-virtual-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

.btn-request-tour {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243,156,18,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-request-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243,156,18,0.4);
}

.nearby-amenities {
    margin-top: 30px;
}

.nearby-amenities h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.amenity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-size: 16px;
}

.amenity-info h5 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.amenity-info p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.amenity-distance {
    color: #3498db;
    font-size: 12px;
    font-weight: 600;
}

/* Property Map Popup Enhancements */
.property-map-popup {
    font-family: 'Inter', sans-serif;
    max-width: 320px;
}

.popup-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.popup-header h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.property-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 16px;
    display: block;
}

.property-stats {
    display: flex;
    gap: 15px;
    margin: 12px 0;
    font-size: 12px;
    color: #7f8c8d;
}

.property-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.popup-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.popup-actions .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.popup-actions .btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.tour-preview {
    margin-top: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e8f5e8 0%, #d5eddb 100%);
    border-radius: 6px;
    font-size: 11px;
    color: #27ae60;
    font-weight: 500;
    border-left: 3px solid #27ae60;
}

/* Map Controls */
.map-control-panel {
    background: rgba(255,255,255,0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin: 10px;
    backdrop-filter: blur(10px);
}

.map-control-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin: 6px 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.map-control-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.4);
}

/* Virtual Tour Modal Enhancements */
.virtual-tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tour-content {
    background: white;
    border-radius: 12px;
    max-width: 95%;
    max-height: 95%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tour-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.close-tour {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-tour:hover {
    background: #f1f2f6;
    color: #666;
    transform: rotate(90deg);
}

.tour-viewer {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background: #f8f9fa;
}

.tour-controls {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: white;
}

.tour-controls button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tour-controls button:first-child {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.tour-controls button:last-child {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

/* Image Slideshow Enhancements */
.image-slideshow {
    width: 100%;
    max-width: 100%;
    padding: 24px;
}

.slideshow-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slideshow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
}

.slideshow-controls button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

.slideshow-controls button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
}

.slide-counter {
    color: #666;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.slide-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 20px;
    background: rgba(248,249,250,0.8);
}

.slide-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.slide-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.slide-thumbnails::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.slide-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-thumbnails img.active,
.slide-thumbnails img:hover {
    opacity: 1;
    border: 2px solid #3498db;
    transform: scale(1.05);
}

/* No Tour State */
.no-tour {
    text-align: center;
    padding: 80px 40px;
    color: #666;
}

.no-tour i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 24px;
    display: block;
}

.no-tour h4 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0 0 16px 0;
}

.no-tour p {
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-tour button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

.no-tour button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
}

/* Tour Notification */
.tour-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(39,174,96,0.3);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.notification-content button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.notification-content button:hover {
    background: rgba(255,255,255,0.3);
}

/* Amenity Popup Enhancements */
.amenity-popup {
    font-family: 'Inter', sans-serif;
    padding: 4px 0;
}

.amenity-popup h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.amenity-popup p {
    margin: 4px 0;
    font-size: 12px;
    color: #666;
}

.amenity-popup p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-overlay-info {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .tour-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-virtual-tour,
    .btn-request-tour {
        justify-content: center;
    }
    
    .tour-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .slideshow-controls {
        padding: 0 10px;
    }
    
    .slide-thumbnails {
        padding: 12px 10px;
    }
    
    .slide img {
        height: 300px;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
    }
}

/* Neighborhood Insights Panel */
.area-insights-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10001;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.insights-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.insights-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.insights-header button:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.insights-content {
    padding: 24px;
}

.insight-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 100px;
}

.metric-bar {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    min-width: 40px;
    text-align: right;
}

.area-highlights,
.market-trends {
    margin-top: 24px;
}

.area-highlights h5,
.market-trends h5 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.area-highlights ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.area-highlights li {
    margin-bottom: 6px;
    font-size: 14px;
}

.market-trends p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.market-trends small {
    color: #27ae60;
    font-weight: 600;
    font-size: 13px;
}

/* Neighborhood Info Popup */
.neighborhood-info h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 16px;
}

.neighborhood-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.neighborhood-info p:last-child {
    margin-bottom: 0;
}

/* Enhanced Map Controls */
.map-control-panel {
    background: rgba(255,255,255,0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.map-control-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin: 6px 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.map-control-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.4);
}

.map-control-btn.insights {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.map-control-btn.insights:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .area-insights-panel {
        max-width: 95%;
        width: 95%;
    }
    
    .insights-content {
        padding: 16px;
    }
    
    .insight-metric {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .metric-label {
        min-width: auto;
        width: 100%;
    }
    
    .metric-bar {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .map-actions {
        flex-direction: column;
    }
    
    .btn-map-action {
        text-align: center;
        justify-content: center;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .tour-header {
        padding: 15px;
    }
    
    .tour-header h3 {
        font-size: 18px;
    }
    
    .tour-controls {
        flex-direction: column;
        padding: 15px;
    }
    
    .area-insights-panel {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        max-height: calc(100vh - 20px);
    }
}