/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: #333545;
    color: white;
    padding: 10px 0;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #F84464;
}

.search-bar {
    flex-grow: 1;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    outline: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.location-dropdown {
    cursor: pointer;
    font-size: 14px;
}

.btn-signin {
    background-color: #F84464;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Sub Header */
.sub-header {
    background-color: #1F2533;
    padding: 10px 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: white;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #000;
}

.carousel-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    border-radius: 0 4px 4px 0;
}

.carousel-btn.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: #333;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.search-location {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-location input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.search-location button {
    background-color: #F84464;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
}

.detect-location {
    margin-bottom: 25px;
}

#btn-detect-location {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #F84464;
    color: #F84464;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

#btn-detect-location:hover {
    background-color: #fff5f6;
}

.map-option {
    margin-bottom: 25px;
}

.map-option p {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: crosshair;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

.popular-cities p {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-chip {
    padding: 6px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.city-chip:hover {
    background-color: #e0e0e0;
}

/* Sign In Modal Specific Styles */
.signin-content {
    max-width: 450px;
}

.signin-body {
    text-align: center;
    padding: 30px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.social-btn:hover {
    background-color: #f9f9f9;
}

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

.divider {
    position: relative;
    margin: 25px 0;
    border-bottom: 1px solid #eee;
}

.divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 12px;
}

.signin-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-bottom-color: #F84464;
}

.btn-continue {
    width: 100%;
    padding: 14px;
    background-color: #F84464;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.terms {
    margin-top: 25px;
    font-size: 12px;
    color: #999;
}

.terms a {
    color: #F84464;
    text-decoration: none;
}

/* Content Sections */
.content-section {
    margin: 40px 0;
}

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

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.see-all {
    color: #F84464;
    text-decoration: none;
    font-size: 14px;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.card-info {
    padding: 12px;
}

.card-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    font-size: 14px;
    color: #666;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-carousel {
        height: 200px;
    }
    .slide-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
}