/* Property Map Styles */
.cs-map-section {
    padding: 0 0 var(--sectionPadding) 0;
    background-color: var(--color2);
}

.cs-map-container {
    max-width: calc(1280rem / 16);
    width: 100%;
    margin: auto;
    padding: 0 calc(16rem / 16);
}

.cs-map-content {
    text-align: center;
    margin-bottom: calc(48rem / 16);
}

.cs-map-wrapper {
    width: 100%;
    height: calc(400rem / 16);
    border-radius: calc(8rem / 16);
    overflow: hidden;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    margin-bottom: calc(32rem / 16);
}

#property-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-loading {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.map-loading-hint {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.cs-location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(24rem / 16);
    padding-bottom: calc(32rem / 16);
    margin: 0 auto;
}

.cs-location-item {
    padding: calc(24rem / 16);
    border-radius: calc(8rem / 16);
    border: 1px solid var(--accent-color);
}

.cs-location-label {
    font-size: calc(14rem / 16);
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: calc(8rem / 16);
    display: block;
}

.cs-location-value {
    font-size: calc(16rem / 16);
    line-height: 1.5em;
}

/* Dark mode styles for map section */
body.dark-mode .cs-map-section {
    background-color: var(--dark);
}

body.dark-mode .cs-location-item {
    background-color: var(--color2-dark);
    border: 1px solid var(--accent-color);
}

body.dark-mode .cs-location-label {
    color: var(--accent-color-dark);
}

body.dark-mode .cs-location-value {
    color: var(--light-text);
}

/* Map fallback styles */
.map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f5f5f5;
    color: #666;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    min-height: 400px;
}

.map-fallback h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.map-fallback p {
    margin: 0;
    font-size: 0.9rem;
}

.map-fallback .map-link {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
}

.map-fallback .map-link a {
    color: var(--accent-color, #1a73e8);
    text-decoration: none;
}

body.dark-mode .map-fallback {
    background-color: var(--color2-dark);
    color: var(--light-text);
}

body.dark-mode .map-fallback h3 {
    color: var(--light-text);
}

/* Custom marker styles */
.custom-property-marker-container {
    background-color: var(--accent-color, #1a73e8);
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-property-marker-dot {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    transform: rotate(45deg);
}

/* Map popup styles */
.property-popup {
    min-width: 200px;
}

.property-popup-title {
    color: var(--accent-color, #1a73e8);
    font-size: 16px;
    font-weight: bold;
}

.property-popup-address {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}

/* Breadcrumb navigation styles */
.breadcrumb-hidden {
    display: none;
}

/* Enhanced location display styles */
.enhanced-location-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.location-marker {
    flex-shrink: 0;
}

.marker-pin {
    background-color: var(--accent-color, #1a73e8);
    width: 60px;
    height: 60px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.marker-dot {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transform: rotate(45deg);
}

.location-info {
    text-align: left;
}

.location-title {
    margin: 0 0 0.5rem 0;
    color: var(--headerColor, #1a1a1a);
    font-size: 1.5rem;
    font-weight: 700;
}

.location-address {
    margin: 0 0 1rem 0;
    color: var(--bodyTextColor, #333);
    font-size: 1.1rem;
    line-height: 1.4;
}

.location-coordinates {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.coord-label {
    color: var(--accent-color, #1a73e8);
    font-weight: 600;
    font-size: 0.9rem;
}

.coord-value {
    color: var(--bodyTextColor, #666);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.location-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.map-action-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.map-action-link.primary {
    background-color: var(--accent-color, #1a73e8);
    color: #fff;
}

.map-action-link.primary:hover {
    background-color: var(--accent-color-hover, #1557b0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.map-action-link.secondary {
    background-color: transparent;
    color: var(--accent-color, #1a73e8);
    border-color: var(--accent-color, #1a73e8);
}

.map-action-link.secondary:hover {
    background-color: var(--accent-color, #1a73e8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

/* Dark mode styles for enhanced location display */
body.dark-mode .enhanced-location-display {
    background: linear-gradient(135deg, var(--color2-dark) 0%, var(--dark) 100%);
}

body.dark-mode .location-title {
    color: var(--light-text);
}

body.dark-mode .location-address {
    color: var(--light-text);
}

body.dark-mode .coord-value {
    background: rgba(255,255,255,0.1);
    color: var(--light-text);
}

body.dark-mode .map-action-link.secondary {
    color: var(--accent-color-dark, #4da6ff);
    border-color: var(--accent-color-dark, #4da6ff);
}

body.dark-mode .map-action-link.secondary:hover {
    background-color: var(--accent-color-dark, #4da6ff);
    color: var(--dark);
}

/* Mobile responsive */
@media only screen and (max-width: 768px) {
    .enhanced-location-display {
        padding: 1.5rem;
    }
    
    .location-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .location-info {
        text-align: center;
    }
    
    .location-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .map-action-link {
        width: 100%;
        justify-content: center;
    }
}