:root {
    --primary-color: #006064; /* Cyan 900 */
    --secondary-color: #0097a7; /* Cyan 700 */
    --accent-color: #ffca28; /* Amber 400 */
    --background-color: #f0f4f8;
    --card-bg: #ffffff;
    --text-color: #263238; /* Blue Grey 900 */
    --text-light: #546e7a; /* Blue Grey 600 */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: --background-color;
    color: --text-color;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.main-header p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main.container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    flex: 1;
}

/* Info Panel */
.info-panel {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.info-panel h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.market-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.market-item:hover {
    border-color: var(--secondary-color);
    background-color: #e0f7fa;
    transform: translateX(5px);
}

.market-name {
    font-weight: 600;
    color: var(--text-color);
    display: block;
}

.market-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    display: block;
}

.market-price-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

.price-disclaimer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Map */
.map-container {
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    height: 600px; /* Fixed height for consistency */
}

#map {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius) - 4px);
    z-index: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #263238;
    color: white;
    margin-top: auto;
}

/* Responsiveness */
@media (max-width: 900px) {
    main.container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
        order: -1; /* Show map first on mobile */
    }
}
