/* For You Page */
.location-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.city-search-form {
    display: flex;
    flex: 1;
}

.select-location-search-form {
    display: flex;
    flex: 1;
}

.search-city {
    display: flex;
    flex: 1;
}

.search-input {
	font-weight: 500;
    padding: 10px;
    border: 1px solid #969696;
    border-right: none;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
	color: #969696;
}

.search-input:not(:has(option:checked.select-city-text)) {
    color: #000;
}

.search-input option {
    color: #000;
}

.search-button {
    background: #EB2E2E;
    border: 1px solid #969696;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border-left: 0;
    cursor: pointer;
    width: 50px;
}

.current-location-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #EB2E2E;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
}

.current-location-btn img {
    width: 20px;
    height: 20px;
}

.search-button img {
    width: 20px;
    height: 20px;
    margin: 0 auto;
}

.for-you-news .popular-categories {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.for-you-news .popular-categories .location-img {
    width: 130px;
    height: 80px;
    border-radius: 6px;
}

.popular-categories .location-img img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.popular-categories .city-title {
    text-align: center;
}

.popular-category-image {
    cursor: pointer;
}

.modal {
    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: 9999;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 7px;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 230px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

.modal-icon {
    width: 50px;
}

.modal-actions button {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.modal-cancel {
    background-color: #969696;
    color: #FFFFFF;
}

.modal-confirm {
    background-color: #EB2E2E;
    color: #FFFFFF;
}

#location-modal .modal-body p {
    margin-top: 30px;
    font-size: 24px;
    font-weight: 700;
}

#location-modal .modal-body img {
    margin: 0 auto;
}

.change-box {
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    align-items: center;
    min-width: 250px;
    position: relative;
    gap: 10px;
}

.change-city-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #1C1C1C;
    color: #FFFFFF !important;
    border-radius: 7px;
    min-width: 299px;
}

.change-city-btn:hover {
    color: #FFFFFF !important;
}

.change-city-btn span {
    padding-right: 10px;
}

.category-result-title {
    padding: 10px;
    border: 1px solid #969696;
    border-radius: 7px;
	min-width: 230px;
	font-size: 18px !important;
	font-weight: 500;
}

#category-filter {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    padding-right: 1rem;
}

.your-selected-location {
    display: flex;
    gap: 10px;
    flex: 1;
}


/* Mobile Responsive */
@media screen and (max-width: 577px) {
    .location-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .current-location-btn {
      justify-content: center;
    }

    .location h3 {
        text-align: center;
    }

    .popular-categories {
        justify-content: center;
    }

    .your-selected-location {
        flex-direction: column;
    }
    .change-city-btn , .category-result-title{
        width: 100%;
        justify-content: center;
    }
}