/* Design System & Variables */
:root {
    --primary: #4B2C7F;
    --primary-light: #6a46a6;
    --secondary: #F07D33;
    --secondary-hover: #d66a25;
    --bg-light: #f4f7f9;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 4px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Topographic Background Pattern */
.topo-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10 Q 30 10, 30 30 T 50 30 T 50 50 T 70 50 T 70 70 T 90 70' fill='none' stroke='%234B2C7F' stroke-opacity='0.03' stroke-width='1'/%3E%3Cpath d='M0 20 Q 20 20, 20 40 T 40 40 T 40 60 T 60 60 T 60 80 T 80 80 T 80 100' fill='none' stroke='%234B2C7F' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 1rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: block;
    width: 100%;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.nav-links a i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown:hover a i {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 1.5rem;
    border-right: 2px solid #f0f0f0;
}

.auth-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.auth-link i {
    font-size: 0.9rem;
}

.auth-link.login {
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.auth-link.register {
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(75, 44, 127, 0.2);
}

.auth-link.login:hover {
    background: var(--primary);
    color: white;
}

.auth-link.register:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(75, 44, 127, 0.3);
}

.contact-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.contact-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.header-email {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header-email:hover {
    color: var(--primary);
}

.header-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.2rem;
}

.header-socials a {
    color: var(--text-dark);
    font-size: 0.85rem;
}

.header-socials a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 65vh;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 60px 0 60px 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    padding: 0 2rem;
    width: 100%;
    text-align: left;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Tabbed Search Bar */
.search-wrapper {
    max-width: 1200px;
    margin: 2.5rem 0;
    position: relative;
    z-index: 2;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: -1px;
}

.search-tab {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-tab.active {
    background: var(--white);
    color: var(--primary);
}

.search-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.search-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.2rem;
    border-right: 1px solid #eee;
    background: #fcfcfc;
    transition: var(--transition);
}

.search-group:hover {
    background: #f5f5f5;
}

.search-group:last-of-type {
    border-right: none;
}

.search-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.search-input {
    width: 100%;
    border: none;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    outline: none;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234B2C7F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 1.5rem;
}

.search-input[type="date"] {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: #999;
    font-weight: 500;
}

/* Autocomplete Styles */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-list {
    position: absolute;
    top: calc(100% + 15px);
    left: -1.2rem;
    right: -1.2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
}

.autocomplete-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.autocomplete-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.autocomplete-item:last-child {
    margin-bottom: 0;
}

.autocomplete-item:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.autocomplete-item:hover .item-sub,
.autocomplete-item:hover i {
    color: rgba(255, 255, 255, 0.8);
}

.autocomplete-item i {
    color: var(--secondary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    transition: var(--transition);
}

.autocomplete-item .item-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    transition: var(--transition);
}

/* Custom Select Improvements */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.search-btn {
    background: var(--secondary);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary-hover);
    transform: scale(1.02);
}

/* Range Slider Styles */
.price-range {
    -webkit-appearance: none;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.price-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--secondary-hover);
}

.price-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--secondary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.search-content {
    display: none;
    width: 100%;
    align-items: center;
}

.search-content.active {
    display: flex;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
}

/* Tour Cards */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
}

.tour-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
}

.tour-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tour-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
}

.tour-info {
    padding: 1.5rem;
}

.tour-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tour-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tour-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Campaigns Section */
.campaigns {
    padding: 6rem 2rem;
    background: #fdfdfd;
}

.campaigns-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.campaign-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid #eee;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.campaign-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(240, 125, 51, 0.4);
}

.campaign-info {
    padding: 2rem;
}

.campaign-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.campaign-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Horizontal Campaign Card (Full Width on Grid) */
.campaign-card.horizontal {
    grid-column: 1 / -1;
    display: flex;
}

.campaign-card.horizontal .campaign-image {
    flex: 1.2;
    height: auto;
    min-height: 300px;
}

.campaign-card.horizontal .campaign-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

@media (max-width: 768px) {
    .campaign-card.horizontal {
        flex-direction: column;
    }

    .campaign-card.horizontal .campaign-image {
        height: 220px;
        min-height: auto;
    }
}

/* Hotels Section */
.featured-hotels {
    padding: 6rem 2rem;
    background: var(--white);
}

.hotels-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.hotel-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

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

.hotel-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hotel-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #f1c40f;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hotel-info {
    padding: 2rem;
}

.hotel-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hotel-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hotel-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.hotel-price span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Why Choose Us Section */
.why-us {
    padding: 6rem 2rem;
    background: #fff;
    position: relative;
}

.why-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 0;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-bottom: 3px solid var(--secondary);
}

.why-img-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 10px;
    border: 1px solid #eee;
}

.why-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.why-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer Improvements */
footer {
    background: #1a1a1a;
    color: white;
    padding: 6rem 2rem 2rem;
}


.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 5px;
    border: none;
}

.newsletter-form button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-actions {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem;
        justify-content: space-between;
    }

    .nav-actions {
        display: none;
        /* Hide complex actions from top header */
    }

    .mobile-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 2rem;
        gap: 1.5rem;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
        z-index: 1000;
        display: flex;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #eee;
    }

    .mobile-menu-actions .auth-actions {
        flex-direction: column;
        align-items: flex-start;
        border-right: none;
        padding-right: 0;
        gap: 1rem;
    }

    .mobile-menu-actions .auth-link {
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-actions .lang-switch {
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }

    .hero h3 {
        font-size: 2rem;
    }

    .search-wrapper {
        margin: 2rem auto;
        width: 100%;
    }

    .search-container {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .search-content.active {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        background: var(--white);
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: var(--shadow);
    }

    .search-group {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0.8rem 0.5rem;
    }

    .search-btn {
        width: 100%;
        margin-top: 1rem;
    }

    .search-tabs {
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding-bottom: 5px;
    }

    .search-tab {
        padding: 0.8rem 1.5rem;
        flex: 0 0 auto;
    }
}