/* Location Page Styling */
.location-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    color: #f5f5f5;
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-align: center;
}

.location-description {
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 30px;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.state-group {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.state-name {
    color: #ff3366;
    font-size: 1.3rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
    margin-bottom: 10px;
}

.city-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.city-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 150px;
}

.city-link {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.2s;
    padding: 5px 0;
    display: block;
}

.city-link:hover {
    color: #ff3366;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .city-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .city-item {
        flex: 0 0 100%;
    }
}

/* Location Search Styling */
.form-field {
    margin-bottom: 20px;
    position: relative;
}

.text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333333;
    border-radius: 6px;
    background-color: #1e1e1e;
    color: #f5f5f5;
    font-size: 16px;
}

.with-search-icon {
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 20px;
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 0 0 6px 6px;
    z-index: 50;
    margin-top: -10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-results .state-group {
    margin-bottom: 0;
    border-radius: 0;
}

.search-results .city-item {
    border-bottom: 1px solid #333333;
}

.search-results .city-item:last-child {
    border-bottom: none;
}

.search-results .city-link {
    padding: 12px 15px;
    display: block;
}

.search-results .city-link:hover {
    background-color: #333333;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #b0b0b0;
}

.hidden {
    display: none;
}

/* Form field styling */
.form-field {
    margin-bottom: 20px;
    width: 100%;
}

/* Search results container */
.search-results-container {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Search results content */
.search-results-content {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: -10px;
    max-height: 350px;
    overflow-y: auto;
}

/* Style for search results state group */
.search-results-content .state-group {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Style for search result items */
.search-results-content .city-item {
    border-bottom: 1px solid #333333;
    min-width: 100%;
}

.search-results-content .city-item:last-child {
    border-bottom: none;
}

/* Country group styling */
.country-group {
    margin-bottom: 30px;
}

.country-name {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* State group styling */
.state-group {
    margin-bottom: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.state-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* City list styling */
.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.city-item {
    margin-bottom: 5px;
}

.city-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 5px 8px;
    border-radius: 4px;
}

.city-link:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* No results message */
.no-results {
    padding: 15px;
    text-align: center;
    color: #b0b0b0;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Search icon input */
.text-input.with-search-icon {
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .city-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .city-list {
        grid-template-columns: 1fr 1fr;
    }
}
