body { font-family: Arial, sans-serif; margin: 0; background: linear-gradient(to bottom, #f0f8ff, #e6f3ff); color: #333; }
header { background: #4a90e2; color: white; padding: 10px 20px; position: fixed; width: 100%; top: 0; z-index: 1000; }
nav ul { list-style: none; display: flex; justify-content: space-around; margin: 0; padding: 0; }
nav li a { color: white; text-decoration: none; padding: 10px; }
.section { margin-top: 60px; padding: 20px; min-height: 80vh; }
.hero { text-align: center; padding: 50px 20px; background: #4a90e2; color: white; }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; }
.teaser-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; cursor: pointer; transition: transform 0.3s; position: relative; }
.teaser-card:hover { transform: scale(1.05); }
.teaser-card::after { content: attr(propertyData-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 5px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.teaser-card:hover::after { opacity: 1; }
.teaser-icon { font-size: 48px; margin-bottom: 10px; }
.discovery-hub { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: start; max-height: calc(100vh - 80px); overflow-y: auto; }
.input-panel { background: white; padding: 20px; border-radius: 8px; }
.accordion { cursor: pointer; padding: 10px; background: #f0f0f0; margin: 5px 0; border-radius: 4px; }
.accordion[aria-expanded="true"] { background: #e0e0e0; }
.accordion-content { display: none; padding: 10px; background: white; border-radius: 4px; }
.map-container { position: sticky; top: 60px; height: calc(100vh - 80px);border-radius: 8px; overflow: hidden; background-color: #e0e0e0; }
.insight-dashboard { position: relative; }
.sidebar { position: absolute; top: 0; right: 0; width: 300px; height: 100%; background: white; padding: 20px; overflow-y: auto; box-shadow: -2px 0 4px rgba(0,0,0,0.1); display: none; z-index: 1000; }
.popup-content { background: white; padding: 10px; border-radius: 5px; max-width: 280px; font-size: 14px; }
.score { font-size: 18px; font-weight: bold; margin-bottom: 5px; }
.score.connectivity { color: #4a90e2; }
.score.opportunity { color: #4CAF50; cursor: pointer; }
.calc-toggle { color: #4a90e2; text-decoration: underline; cursor: pointer; }
.calculation-process { margin-top: 10px; padding: 10px; background: #f9f9f9; border-radius: 4px; display: none; }
.calc-step { margin: 5px 0; font-size: 13px; line-height: 1.4; }
.calc-step strong { color: #333; }
.insight-highlight { background: #e6f3ff; border-left: 3px solid #4a90e2; padding: 8px; margin-top: 10px; font-size: 13px; border-radius: 3px; font-style: italic; }
.insight-highlight strong { font-style: normal; color: #333; display: block; margin-bottom: 3px; }
.breadcrumb { background: #f0f0f0; padding: 10px; border-radius: 4px; margin: 10px 0; font-size: 14px; }
.contact-form { max-width: 500px; margin: 0 auto; background: white; padding: 20px; border-radius: 8px; }
input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
button { background: #4a90e2; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; margin: 5px 0; }
.hidden { display: none; }
.refine-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 1001; display: none; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.active-filters-display { padding: 10px; background: white; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.filter-tag { display: inline-block; background: #e0e0e0; padding: 5px 10px; border-radius: 15px; font-size: 12px; margin: 2px; }
.filter-tag span { cursor: pointer; font-weight: bold; margin-left: 5px; }
.tooltip-container { position: relative; display: inline-block; cursor: help; margin-left: 4px; }
.tooltip-container .tooltip-text { visibility: hidden; width: 220px; background-color: #555; color: #fff; text-align: center; border-radius: 6px; padding: 5px; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -110px; opacity: 0; transition: opacity 0.3s; font-size: 12px; }
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px #4a90e2; } 50% { box-shadow: 0 0 20px #ffd700; } }
.glow { animation: glow 2s infinite; }
@media (max-width: 768px) { .discovery-hub { grid-template-columns: 1fr; } .sidebar { width: 100%; position: relative; } }

/* === NEW STYLES FOR FIREWORKS EFFECT === */
.fireworks-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none; /* Allows clicks to go through */
    display: none; /* Hidden by default */
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700; /* Gold color for the sparks */
    border-radius: 50%;
    opacity: 0;
    animation: sparkle-animation 1s ease-out forwards;
}

@keyframes sparkle-animation {
    0% {
        opacity: 1;
        transform: scale(0.5) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.5) translate(var(--translateX), var(--translateY));
        /* --translateX and --translateY will be set by JavaScript */
    }
}
/* === END OF NEW STYLES === */


/* === START: STYLES FOR HOME PAGE PROPERTY LIST === */
.featured-listings-container {
    padding: 40px 20px;
    text-align: center;
    background: #ffffff; /* Add a subtle background to separate it */
    border-radius: 8px;
    margin: 20px;
}

.featured-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
    text-align: left;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.property-thumbnail {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    font-style: italic;
}

.property-details {
    padding: 15px;
}

.property-details h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.property-details p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.property-details p strong {
    color: #444;
}

.property-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #4a90e2;
    margin-top: 10px;
}
/* === END: STYLES FOR HOME PAGE PROPERTY LIST === */

/* === START: STYLES FOR FILTERED LISTINGS VIEW === */
.filtered-listings-container {
    padding: 20px;
    margin-top: 30px; /* Add space above the list */
    background-color: #f9f9f9; /* Slightly different background to stand out */
    border-radius: 8px;
    border-top: 1px solid #ddd;
}

.filtered-listings-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* NEW: Vibe Picker Styles (warm, Bay-blue cozy box) */
.vibe-picker {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(to bottom, #f0f8ff, #e6f3ff); /* Soft Bay fog blue */
    border-radius: 12px;
    border-left: 4px solid #4a90e2; /* Accent line */
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.vibe-picker label {
    display: block;
    margin: 8px 0;
    font-size: 1em;
    color: #333;
    cursor: pointer;
}

.vibe-picker input[type="radio"] {
    margin-right: 8px;
}

/* NEW: Vibe Glow Badge in Cards/Popups */
.glow-badge {
    background: #4a90e2;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.tooltip {
    font-style: italic;
    color: #666;
    margin-top: 5px;
    font-size: 0.9em;
}

/* Ensure filtered grid responsiveness (enhance existing) */
@media (max-width: 768px) {
    .vibe-picker {
        padding: 10px;
        font-size: 0.95em;
    }
}