/**
 * Location Page Styles
 */

.hp-location-page {
    padding: 20px 0;
    font-family: var(--lp-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: var(--lp-font-size, 14px);
    color: var(--lp-text-color, inherit);
}

.hp-location-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.hp-breadcrumbs {
    margin-bottom: 20px;
    font-size: var(--lp-font-size, 14px);
    color: #666;
}

.hp-breadcrumbs a {
    color: var(--lp-link-color, #0073aa);
    text-decoration: none;
}

.hp-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Location Header */
.hp-location-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hp-location-header h1 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 2.5em;
    font-weight: 600;
}

.hp-location-coordinates {
    margin-top: 15px;
}

.hp-location-coordinates p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1.1em;
}

.hp-map-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hp-map-link:hover {
    background: #005a87;
    color: white;
}

/* Statistics Cards */
.hp-location-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.hp-stat-card {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hp-stat-card h3 {
    font-size: 2.5em;
    margin: 0 0 8px 0;
    color: #0073aa;
    font-weight: 700;
}

.hp-stat-card p {
    margin: 0;
    color: #666;
    font-weight: 500;
    font-size: 1.1em;
}

/* Sections */
.hp-location-section {
    margin-bottom: 50px;
}

.hp-location-section h2 {
    font-size: 1.8em;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 12px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* People Grid */
.hp-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Cards */
.hp-person-card, .hp-marriage-card, .hp-event-card {
    padding: 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-person-card:hover, .hp-marriage-card:hover, .hp-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hp-person-card h3, .hp-marriage-card h3, .hp-event-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.hp-person-card h3 a, .hp-marriage-card h3 a {
    color: var(--lp-link-color, #0073aa);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hp-person-card h3 a:hover, .hp-marriage-card h3 a:hover {
    color: #005a87;
    text-decoration: underline;
}

.hp-date {
    color: #666;
    font-style: italic;
    margin: 8px 0;
    font-size: 0.95em;
}

.hp-tree {
    color: #888;
    font-size: 0.85em;
    margin: 8px 0 0 0;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

.hp-person {
    margin: 8px 0;
}

.hp-person a {
    color: var(--lp-link-color, #0073aa);
    text-decoration: none;
    font-weight: 500;
}

.hp-person a:hover {
    text-decoration: underline;
}

.hp-notes {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 0 4px 4px 0;
    font-size: 0.9em;
    color: #555;
}

/* Lists */
.hp-marriages-list, .hp-events-list {
    display: grid;
    gap: 20px;
}

/* No Data */
.hp-no-data {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.hp-no-data h2 {
    margin-bottom: 15px;
    color: #555;
    font-weight: 500;
}

.hp-no-data p {
    font-size: 1.1em;
}

/* Location Link Styling */
.hp-location-link {
    color: var(--lp-link-color, #0073aa);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--lp-link-color, #0073aa);
}

.hp-location-link:hover {
    color: #005a87;
    text-decoration: none;
    border-bottom: 1px solid #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hp-location-header h1 {
        font-size: 2em;
    }
    
    .hp-location-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hp-people-grid {
        grid-template-columns: 1fr;
    }
    
    .hp-stat-card {
        padding: 20px 15px;
    }
    
    .hp-stat-card h3 {
        font-size: 2em;
    }
    
    .hp-person-card, .hp-marriage-card, .hp-event-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hp-location-stats {
        grid-template-columns: 1fr;
    }
    
    .hp-location-header {
        padding: 20px 15px;
    }
    
    .hp-location-header h1 {
        font-size: 1.8em;
    }
}