/* General styles for body and container */
body {
    font-family: var(--font-family, Arial, sans-serif);
    margin: 0;
    padding: 0;
    font-size: 16px;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* White overlay with 80% opacity */
    z-index: -1;
}

/* Styling for headers */
h1, h2 {
    color: var(--primary-color, #444444);
    text-align: center;
    margin: 20px 0;
}

h1 {
    font-size: 1.125rem;
}

/* Styling for navigation buttons */
.nav-button {
    background-color: var(--primary-color, #444444);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    margin: 10px;
    flex: 1;
}

.nav-button:hover {
    background-color: var(--secondary-color, #777777);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

/* Additional styling for market trends */
.market-trends-header, .market-trends-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-around;
}

.market-trends-header {
    background-color: rgba(var(--primary-color-rgb, 68, 68, 68), 0.15);
    color: var(--primary-color, #444444);
    padding: 10px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: bold;
}

.market-trends-row .market-trends-cell:first-child,
.market-trends-row .market-trends-cell:nth-child(3) {
    background-color: rgba(var(--primary-color-rgb, 68, 68, 68), 0.1);
}

.market-trends-row .market-trends-cell:nth-child(2) {
    background-color: white;
}

.market-trends-city {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color, #444444);
    color: white;
    font-size: 1.125rem;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.market-trends-cell {
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    border: none;
}

.market-trends-header .market-trends-cell {
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-button {
        padding: 5px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-button {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Styling for property type dropdown */
.property-type {
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    color: var(--secondary-color, #777777);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-weight: bold;
}

.property-type option {
    color: black; /* Ensure options are visible in the dropdown */
}

h1 {
    text-align: center;
    color: var(--primary-color, #444444);
    margin-bottom: 20px;
}

#market-trends-container {
    width: 100%;
}

.property-type {
    display: inline-block;
    margin-left: 10px;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.content-wrapper {
    padding-left: 20px;
    padding-right: 20px;
}

.add-city {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    color: #4CAF50;
    cursor: pointer;
}

.market-trends-city:not(:has(.add-city)) {
    background-color: var(--primary-color, #444444);
    color: white;
    font-size: 1.125rem;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.market-trends-city:has(.add-city) {
    background-color: var(--primary-color, #444444);
    padding: 10px;
}

.market-trends-row:has(+ .market-trends-city .add-city) .market-trends-cell {
    background-color: #f2f2f2;
}

.city-selection-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.popup-content h3 {
    margin-top: 0;
}

#city-search {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

#city-list {
    max-height: 300px;
    overflow-y: auto;
}

.city-item {
    padding: 5px;
    cursor: pointer;
}

.city-item:hover {
    background-color: #f0f0f0;
}

#close-popup {
    margin-top: 10px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.popup-header h3 {
    margin: 0;
}

.close-popup {
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.close-popup:hover {
    color: #777;
}

.do-not-share {
    color: red;
    font-weight: bold;
}

.market-trends-city-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: var(--primary-color, #444444);
}

.market-trends-city {
    color: white;
    font-size: 1.125rem;
    font-weight: bold;
    margin: 0;
}

.chart-button {
    background-color: var(--secondary-color, #777777);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
}

.chart-button:hover {
    background-color: var(--primary-color, #444444);
}

.chart-icon {
    font-size: 1.2rem;
}

.source-logo {
    height: 20px;
    width: auto;
}

/* Add CSS variables as fallbacks */
:root {
    --primary-color: #444444; /* Dark gray */
    --secondary-color: #777777; /* Light gray */
    --primary-color-rgb: 68, 68, 68; /* RGB values for dark gray */
    --secondary-color-rgb: 119, 119, 119; /* RGB values for light gray */
    --font-family: Arial, sans-serif;
} 