.search-page-container {
    display: flex;
    gap: 20px;
    max-width: 100%;
}

.search-form-container {
    flex: 0 0 400px;
    max-width: 400px;
}

.search-results-container {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow-y: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
}

#searchResultsWrapper {
    width: 100%;
    max-height: calc(100vh - 240px);
}

/* Add media query for mobile devices */
@media (max-width: 768px) {
    .search-page-container {
        flex-direction: column;
    }

    .search-form-container {
        flex: none;
        max-width: 100%;
    }

    .search-results-container {
        max-height: none;
    }
}

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

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: bold;
    cursor: pointer;
}

.comparison-table th:hover {
    background: #e0e0e0;
}

.school-row {
    margin-bottom: 4px;
    font-size: 0.9em;
}

.school-ranking {
    color: #ffffff;
    font-weight: bold;
    margin-right: 4px;
}

.mrt-walking-time {
    font-size: 0.9em;
    color: #666;
}

.export-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    background-color: #1976D2;
}

.like-btn {
    background: none;
    border: none;
    color: #cccccc;
    /* Default grey color */
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.2em;
    transition: color 0.2s ease;
}

.like-btn.liked {
    color: #ff4444;
    /* Red color when liked */
}

.like-btn:hover {
    color: #ff4444;
    /* Red color on hover */
}


.comparison-table th[data-order] {
    position: relative;
}

.comparison-table th[data-order]:after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.comparison-table th[data-order="asc"]:after {
    border-bottom: 5px solid #666;
}

.comparison-table th[data-order="desc"]:after {
    border-top: 5px solid #666;
}

.school-ranking {
    color: #ffffff;
    font-weight: bold;
    margin-right: 4px;
}

.school-selector {
    margin-top: 10px;
}

.school-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.selected-schools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-school {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-school {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.school-ranking {
    background: #2196F3;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.school-suggestions {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.school-selector {
    position: relative;
}

.results-actions {
    display: flex;
    gap: 10px;
}

.view-toggle-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle-btn:hover {
    background-color: #45a049;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.map-info-window {
    padding: 8px;
    max-width: 300px;
}

.map-info-window h3 {
    margin: 0 0 8px 0;
    color: #2196F3;
}

.map-info-window p {
    margin: 4px 0;
    font-size: 0.9em;
}

.map-legend {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: white;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.school-info {
    padding: 8px;
    min-width: 250px;
}

.school-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.school-ranking {
    background: #2196F3;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.school-name {
    font-weight: bold;
    color: #333;
}

.school-stats {
    margin: 8px 0;
}

.phase-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.phase-label {
    font-weight: bold;
    color: #666;
}

.phase-value {
    color: #4CAF50;
}

.phase-value.ballot {
    color: #f44336;
}

.percentage {
    color: #666;
    font-size: 0.9em;
}

.school-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.school-attribute {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
    color: #666;
}

.school-attribute i {
    color: #2196F3;
}

.like-btn {
    background: none;
    border: none;
    color: #cccccc;
    /* Default grey color */
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.2em;
    transition: color 0.2s ease;
}

.like-btn.liked {
    color: #ff4444;
    /* Red color when liked */
}

.like-btn:hover {
    color: #ff4444;
    /* Red color on hover */
}

.pg-link {
    color: #2196F3;
    text-decoration: none;
}

.pg-link:hover {
    color: #1976D2;
}

/* Add media query for mobile devices */
@media (max-width: 768px) {
    .search-page-container {
        flex-direction: column;
    }

    .search-form-container {
        flex: none;
        max-width: 100%;
    }

    .search-results-container {
        max-height: none;
    }
}

/* Add new styles for the split map view */
.map-view-container {
    display: flex;
    gap: 20px;
    height: 100%;
    min-height: 400px;
}

#map {
    flex: 1;
    height: 100%;
    border-radius: 4px;
}

.property-list-container {
    flex: 0 0 300px;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.property-list-item {
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-list-item:hover {
    background: #f5f5f5;
    transform: translateX(2px);
}

.property-list-item.active {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.property-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
    line-height: 1.3;
}

.property-details {
    font-size: 0.9em;
    color: #666;
    margin: 8px 0;
}

.property-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-meta-item i {
    color: #2196F3;
    font-size: 0.9em;
}

.property-price {
    color: #2196F3;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 8px;
}

.property-type-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #2196F3;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Update map container styles */
.map-container {
    width: 100%;
}

/* Update map view container styles for mobile */
@media (max-width: 768px) {
    .map-view-container {
        flex-direction: column;
    }

    #map {
        display: none; /* Hide map on mobile */
    }

    .property-list-container {
        flex: 1;
        width: 100%;
        max-height: calc(100vh - 200px); /* Adjust height for better mobile view */
    }
}

/* Update results actions for mobile */
@media screen and (max-width: 768px) {
    .results-actions {
        display: none; /* Hide on mobile */
    }

    .results-header {
        display: none; /* Hide the entire header on mobile */
    }

    .property-list-container {
        padding: 0;
    }
}