/*
Theme Name: Need Tours Theme
Theme URI: https://need.tours/
Author: Viajero
Author URI: https://need.tours/
Description: Custom WordPress theme for Need.Tours project, based on static HTML layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, travel
Text Domain: needtours
*/

/* Global styles will be added here later */

/* General Resets & Body Styles */
:root {
    --header-height: 65px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
	padding-top: var(--header-height);
}

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Utility Classes --- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- Logo Styles (used in header and footer) --- */
.logo-main {
    color: #17bcf4; /* New Blue */
}

.logo-secondary {
    color: #ff8300; /* New Orange */
}

.logo-img {
    height: 35px;
    width: auto;
    vertical-align: middle;
}

.logo .logo-main, 
.logo .logo-secondary {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   HEADER NAVIGATION STYLES
   ========================================================================== */

/* Main Header Container */
.main-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 65px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 2rem;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* DESKTOP NAVIGATION */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 1;
    min-width: 0;
    position: relative;
    overflow: visible;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
}

.nav-item {
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-item a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-item a:hover {
    background-color: #f0f0f0;
    color: #0066cc;
}

.nav-item a:active {
    background-color: #e0e0e0;
}

/* More Button */
.more-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.2s;
    margin-left: auto;
}

.more-btn.is-visible {
    display: flex !important;
}

.more-btn:hover {
    background-color: #f0f0f0;
}

.more-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: #333;
}

.more-btn[aria-expanded="true"] {
    background-color: #e0e0e0;
}

/* More Dropdown */
.more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100;
}

.more-dropdown.is-open {
    display: block;
}

.more-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.more-list li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color 0.2s;
}

.more-list li a:hover {
    background-color: #f5f5f5;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
    padding: 0 !important;
    list-style: none;
}

.dropdown-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem;
    list-style: none;
}

.dropdown-lang-switcher .lang-active {
    font-weight: 600;
    color: #333;
}

.dropdown-lang-switcher .lang-separator {
    color: #ccc;
}

.dropdown-lang-switcher .lang-inactive {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.dropdown-lang-switcher .lang-inactive:hover {
    color: #0066cc;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.lang-active {
    font-weight: 600;
    color: #333;
}

.lang-separator {
    color: #ccc;
}

.lang-inactive {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.lang-inactive:hover {
    color: #0066cc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-icon {
    font-size: 1.75rem;
    line-height: 1;
    color: #333;
}

/* MOBILE MENU */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.is-open {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.mobile-menu-overlay.is-open .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-logo img {
    height: 32px;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.mobile-menu-close:hover {
    background-color: #f0f0f0;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.mobile-nav-list li a:hover {
    background-color: #f5f5f5;
    border-left-color: #0066cc;
}

.mobile-menu-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.mobile-lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/background-image.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-container {
    max-width: 900px;
}

.hero h1 {
    font-size: 48px;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* --- Search Form --- */
.search-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.form-group label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-group input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    font-size: 16px;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #17bcf4; /* New Blue */
}

.find-btn {
    background-color: #ff8300; /* New Orange */
    color: #fff;
    border: none;
    padding: 20px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: stretch;
}

.find-btn:hover {
    background-color: #e67600; /* Darker Orange */
}

/* --- General Section Styles --- */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}

/* --- Features Section --- */
.features-section {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item h3 {
    font-size: 18px;
    color: #333;
    margin-top: 15px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.feature-icon {
    height: 50px;
}


/* --- Blog Section --- */
.blog-section {
    background-color: #f9f9f9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.4;
    height: 56px;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Reviews Section --- */
.reviews-section {
    background-color: #fff;
}

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

.reviews-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.cta-button {
    background-color: #ff8300; /* New Orange */
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.cta-button:hover {
    background-color: #e67600; /* Darker Orange */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.review-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.review-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-rating {
    color: #f39c12;
    font-size: 18px;
}

/* --- Destinations Section --- */
.destinations-section {
    background-color: #fff;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.destination-card {
    position: relative;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.destination-card:hover {
    transform: scale(1.03);
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
}

.card-info {
    position: relative;
    z-index: 2;
}

.card-info h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.card-info p {
    margin: 0;
    font-size: 16px;
}

.discount-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background-color: #f2238a; /* New Pink */
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.large-card {
    grid-column: span 3;
    height: 300px;
}

.small-card {
    grid-column: span 2;
    height: 250px;
}

/* --- Accordion Styles (NEW & SIMPLIFIED) --- */
.faq-section {
    background-color: #f9f9f9;
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    color: #888;
    font-size: 18px;
    margin-bottom: 40px;
}

/* --- About Platform Section --- */
.about-platform {
    background-color: #fff;
}

.about-platform .section-title {
    margin-bottom: 20px;
    font-size: 30px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content > p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.service-point {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f7f7f7;
    transition: box-shadow 0.3s ease;
}

.service-point:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-point h3 {
    color: #17bcf4;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

.service-point p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.tagline {
    font-style: italic;
    color: #333;
    font-weight: 500;
}

/* --- Footer Section --- */
.main-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-info .footer-logo {
    font-size: 28px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-info .logo-main {
    color: #17bcf4;
}

.footer-info .logo-secondary {
    color: #ff8300;
}

.copyright, .contact-email {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin: 10px 0;
}

.contact-email a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #17bcf4;
}

.footer-links h3,
.footer-legal h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a,
.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #ff8300;
}

/* --- Card Link Wrapper --- */
.blog-card .card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card .card-link-wrapper:hover h3 {
    color: #ff8300;
}

/* ======================================= */
/* MEDIA QUERIES: Tablet & Small Desktop (Max 1024px) */
/* ======================================= */
@media (max-width: 1024px) {
    .header-container {
        gap: 1rem;
    }
    
    .nav-item a {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }

    .hero h1 {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }

    .find-btn {
        padding: 15px 20px;
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .large-card {
        grid-column: span 2;
        height: 280px;
    }
    
    .small-card {
        grid-column: span 2;
        height: 230px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Two main columns */
    }
    
    .footer-info {
        grid-column: span 2; /* Info spans full width on top */
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-links, .footer-legal {
        text-align: center;
    }
}

/* ======================================= */
/* MEDIA QUERIES: Mobile Navigation (Max 600px) */
/* ======================================= */
@media (max-width: 450px) {
    .main-header {
        height: 55px;
    }
    
    .header-container {
        padding: 0.5rem 1rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .lang-switcher {
        display: none;
    }
}

/* ======================================= */
/* MEDIA QUERIES: Mobile Phone (Max 768px) */
/* ======================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 55px; 
    }

    .hero {
        height: 80vh;
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .search-form {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .form-group {
        width: 100%; 
    }
    
    .find-btn {
        width: 100%;
        padding: 15px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .features-grid,
    .blog-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-img {
        height: 180px;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .destination-card {
        grid-column: span 1;
        height: 250px;
        padding: 15px;
    }
    
    .large-card, .small-card {
        grid-column: span 1;
        height: 200px;
    }

    .card-info h3 {
        font-size: 24px;
    }

    .faq-question-btn {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-info {
        grid-column: span 1; 
        margin-bottom: 0;
    }
    
    .footer-links, .footer-legal {
        text-align: center;
    }
    
    .footer-links h3, .footer-legal h3 {
        margin-bottom: 10px;
    }
    
    .footer-links ul, .footer-legal ul {
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
}

/* ======================================= */
/* MEDIA QUERIES: Small Mobile (Max 480px) */
/* ======================================= */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 1rem;
    }
}