/* ============================================
   STAYFLIGHTS - Travel Booking Website
   Theme: Pistachio Green
   Inspired by Booking.com
   ============================================ */

:root {
    --pistachio-primary: #93C572;
    --pistachio-dark: #6B8E23;
    --pistachio-light: #C5E1A5;
    --pistachio-pale: #E8F5E9;
    --pistachio-accent: #7CB342;
    --dark: #1a1a2e;
    --dark-secondary: #2d2d44;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(147, 197, 114, 0.15);
    --shadow-hover: 0 8px 40px rgba(147, 197, 114, 0.25);
    --gradient: linear-gradient(135deg, #93C572 0%, #7CB342 100%);
    --gradient-dark: linear-gradient(135deg, #6B8E23 0%, #558B2F 100%);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
    background: var(--pistachio-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pistachio-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--pistachio-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(147, 197, 114, 0.4);
    transition: var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 197, 114, 0.5);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-auth a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

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

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.lang-selector:hover {
    border-color: var(--pistachio-primary);
    color: var(--pistachio-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--pistachio-dark);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 70px;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 5%;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 197, 114, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(147, 197, 114, 0.2);
    border: 1px solid rgba(147, 197, 114, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--pistachio-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--pistachio-primary);
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 550px;
}

/* ===== SEARCH BOX ===== */
.search-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 900px;
}

.search-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.search-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-tab:hover {
    background: var(--pistachio-pale);
    color: var(--pistachio-dark);
}

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

.search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.search-field {
    position: relative;
}

.search-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.search-input:focus {
    border-color: var(--pistachio-primary);
    box-shadow: 0 0 0 4px rgba(147, 197, 114, 0.1);
}

.search-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    height: fit-content;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 197, 114, 0.4);
}

/* ===== SECTIONS COMMON ===== */
.section {
    padding: 80px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: var(--pistachio-pale);
    color: var(--pistachio-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-desc {
    color: var(--gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== DESTINATIONS ===== */
.destinations-section {
    background: var(--white);
}

.destinations-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.destination-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.destination-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
}

.destination-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.destination-count {
    font-size: 14px;
    opacity: 0.9;
}

.destination-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ===== PROPERTY TYPES ===== */
.property-types {
    background: var(--light-gray);
}

.types-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.type-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pistachio-primary);
}

.type-icon {
    width: 60px;
    height: 60px;
    background: var(--pistachio-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--pistachio-dark);
    transition: var(--transition);
}

.type-card:hover .type-icon {
    background: var(--gradient);
    color: white;
}

.type-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.type-count {
    font-size: 13px;
    color: var(--gray);
}

/* ===== FEATURED PROPERTIES ===== */
.properties-section {
    background: var(--white);
}

.properties-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.08);
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.property-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    color: var(--gray);
}

.property-favorite:hover {
    background: white;
    color: #e74c3c;
    transform: scale(1.1);
}

.property-body {
    padding: 20px;
}

.property-type {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.property-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-score {
    background: var(--pistachio-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.rating-text {
    font-size: 13px;
    color: var(--gray);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.property-price {
    font-size: 13px;
    color: var(--gray);
}

.property-price strong {
    font-size: 22px;
    color: var(--pistachio-dark);
}

.property-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.property-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 197, 114, 0.4);
}

/* ===== WHY CHOOSE US ===== */
.why-section {
    background: linear-gradient(135deg, var(--pistachio-pale) 0%, var(--white) 100%);
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 25px rgba(147, 197, 114, 0.3);
}

.feature-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: var(--white);
}

.testimonials-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-quote {
    font-size: 40px;
    color: var(--pistachio-primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 25px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pistachio-primary);
}

.testimonial-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.testimonial-info span {
    font-size: 13px;
    color: var(--gray);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 14px;
    margin-top: 5px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--pistachio-dark) 0%, var(--pistachio-primary) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
}

.newsletter-desc {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 35px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 22px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.15);
    color: white;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
    border-color: white;
    background: rgba(255,255,255,0.25);
}

.newsletter-btn {
    background: white;
    color: var(--pistachio-dark);
    border: none;
    padding: 16px 35px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 80px 5% 30px;
    color: white;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 28px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
    margin: 20px 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--pistachio-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--pistachio-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-payment {
    display: flex;
    gap: 12px;
}

.payment-icon {
    width: 40px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.7);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(147, 197, 114, 0.4);
    border: none;
    font-size: 18px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .search-fields {
        grid-template-columns: 1fr 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 36px;
    }
    .search-fields {
        grid-template-columns: 1fr;
    }
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    .destinations-grid,
    .properties-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .types-grid,
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .types-grid,
    .features-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 28px;
    }
}
