/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2c3e50;
    --color-secondary: #8b4513;
    --color-accent: #c9a227;
    --color-background: #faf8f5;
    --color-card: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0dcd4;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header Styles */
.site-header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.35)), url('header_7.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 4px solid var(--color-accent);
}

.site-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.site-subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 1.35rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Section Styles */
section {
    margin: 2.5rem 0;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

/* About Section */
.about-section {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.about-with-image {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.about-image {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.reed-illustration {
    width: 100%;
    height: auto;
    max-height: 280px;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Map Section */
.map-section {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

#map {
    height: 450px;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    z-index: 1;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.leaflet-popup-content {
    margin: 1rem;
    font-family: var(--font-body);
}

.popup-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.popup-location {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.popup-link {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.popup-link:hover {
    text-decoration: underline;
}

/* Reedmaker List Section */
.reedmaker-list-section {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.reedmaker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.reedmaker-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: block;
}

.reedmaker-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.reedmaker-card .location {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.reedmaker-card .reed-types {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Reed type colors */
.reed-oboe {
    color: #8b4513;  /* Saddle brown - matches site secondary */
}

.reed-eh {
    color: #2e6b4f;  /* Forest green */
}

.reed-damore {
    color: #6b4c9a;  /* Muted purple */
}

.reedmaker-card .website {
    font-size: 0.85rem;
    margin: 0;
}

.reedmaker-card .website a {
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-all;
}

.reedmaker-card .website a:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

.reedmaker-comment {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--color-border);
}

.reedmaker-card .location::before {
    content: "📍";
    font-size: 0.85rem;
}

.reedmaker-card .specialty {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 500;
}

/* Detail Page Styles */
.detail-page {
    padding: 2rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius);
    transition: background-color var(--transition), color var(--transition);
}

.back-button:hover {
    background-color: var(--color-secondary);
    color: white;
}

.detail-card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a252f 100%);
    color: white;
    padding: 2rem;
}

.detail-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.detail-header .location {
    font-size: 1.1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-content {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    border-bottom: none;
    padding-bottom: 0;
}

.detail-section p {
    color: var(--color-text-light);
}

.contact-info {
    display: grid;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item .label {
    font-weight: 500;
    color: var(--color-text);
    min-width: 80px;
}

.contact-item a {
    color: var(--color-secondary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.experience-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.specialty-tag {
    display: inline-block;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Reed Types Grid */
.reed-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.reed-type-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reed-type-label {
    font-weight: 500;
    color: var(--color-text);
}

.reed-type-value {
    color: var(--color-text-light);
}



.feedback-link {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
}

.feedback-link:hover {
    text-decoration: underline;
}

/* Feedback Form */
.feedback-section {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feedback-intro {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.feedback-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition);
}

.submit-btn:hover {
    background: #6d3710;
}

/* Footer Styles */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.site-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    section {
        margin: 1.5rem 0;
    }

    .about-section,
    .map-section,
    .reedmaker-list-section {
        padding: 1.25rem;
    }

    .about-with-image {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .about-image {
        width: 100px;
    }

    .reed-illustration {
        max-height: 200px;
    }

    #map {
        height: 350px;
    }

    .reedmaker-list {
        grid-template-columns: 1fr;
    }

    .detail-header h1 {
        font-size: 1.75rem;
    }

    .detail-header,
    .detail-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }

    #map {
        height: 280px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .contact-item .label {
        min-width: auto;
    }
}
