/* ================= BASE STYLES ================= */

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 900px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    padding: 2rem 1rem;
    background-color: #ffffff;
}

.search-form-single {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-single-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-single-field:focus-within {
    border-color: blue;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1);
}

.search-single-field .field-icon {
    color: #9ca3af;
}

.search-single-field .field-content {
    flex: 1;
}

.search-single-field .field-content label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.search-single-field .field-content input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #111827;
    width: 100%;
}

.btn-search-wide {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    white-space: nowrap;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-search-wide:hover {
    background-color: #0000cc;
    transform: translateY(-2px);
}

/* Featured Destinations */
.featured-destinations {
    background-color: #f9f9f9;
    padding: 4rem 1rem;
}

.featured-destinations .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.featured-destinations .section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111111;
}

.featured-destinations .section-header p {
    font-size: 1rem;
    color: #4b5563;
}

.destinations-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.destination-card {
    text-align: center;
    transition: transform 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s, box-shadow 0.3s;
}

.destination-circle:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.destination-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.destination-card:hover .destination-circle img {
    transform: scale(1.1);
}

.destination-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111111;
    margin-top: 0.5rem;
}

/* Features */
.features {
    background-color: #f9f9f9;
    padding: 4rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111111;
}

.section-header p {
    font-size: 1rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #111111;
}

.feature-card p {
    color: #4b5563;
    font-size: 0.95rem;
    padding: 0 1rem 1rem;
    line-height: 1.4;
}

/* Modal / Popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: modalFadeIn 0.4s ease forwards;
    transition: all 0.3s ease;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #111;
}

.modal-content p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #333;
}

.modal-content button {
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    background-color: #2563eb;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #1d4ed8;
}

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

/* ================= RESPONSIVE ================= */

/* Large tablets and laptops */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.9rem;
    }

    .search-form-single {
        max-width: 95%;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .search-form-single {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .btn-search-wide {
        width: 100%;
        text-align: center;
        padding: 0.85rem 2rem;
    }

    .destination-circle {
        width: 130px;
        height: 130px;
    }

    .destination-card h3 {
        font-size: 1.05rem;
    }

    .destinations-grid {
        gap: 1.5rem;
    }

    .features-grid {
        gap: 1rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
        padding: 0 0.75rem 0.75rem;
    }

    .feature-icon {
        height: 140px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 0.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 90%;
    }

    .search-form-single {
        padding: 1rem;
    }

    .search-single-field {
        padding: 0.75rem 1rem;
    }

    .search-single-field .field-content input {
        font-size: 0.95rem;
    }

    .btn-search-wide {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .featured-destinations,
    .features {
        padding: 3rem 0.75rem;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .destination-circle {
        width: 110px;
        height: 110px;
    }

    .destination-card h3 {
        font-size: 1rem;
    }

    .destinations-grid {
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .feature-icon {
        height: 120px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .hero {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .search-form-single {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .search-single-field .field-content label {
        font-size: 0.7rem;
    }

    .search-single-field .field-content input {
        font-size: 0.9rem;
    }

    .btn-search-wide {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .featured-destinations,
    .features {
        padding: 2.5rem 0.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .destination-circle {
        width: 90px;
        height: 90px;
    }

    .destination-card h3 {
        font-size: 0.95rem;
    }

    .destinations-grid {
        gap: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin: 0.75rem 0 0.4rem;
    }

    .feature-card p {
        font-size: 0.8rem;
        padding: 0 0.5rem 0.5rem;
    }

    .feature-icon {
        height: 100px;
    }

    .modal-content {
        padding: 20px 25px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .modal-content button {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero {
        height: 280px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .destination-circle {
        width: 80px;
        height: 80px;
    }

    .destination-card h3 {
        font-size: 0.9rem;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.75rem;
    }

    .feature-icon {
        height: 90px;
    }

    .modal-content {
        padding: 18px 20px;
    }

    .modal-content h2 {
        font-size: 18px;
    }

    .modal-content p {
        font-size: 13px;
    }

    .modal-content button {
        padding: 7px 18px;
        font-size: 13px;
    }
}