/*
Theme Name: Farways - Tour Booking Theme
Description: A modern, responsive WordPress theme designed specifically for tour booking websites. Built with Elementor, WooCommerce, and WPML support. Perfect for travel agencies, tour operators, and adventure booking platforms.
Version: 1.0.9
Author: Phuketians
Author URI: https://phuketians.com
Text Domain: farways
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme is designed to work seamlessly with:
- Elementor Page Builder
- WooCommerce
- WPML
- BookBud Tour Booking Plugin

The theme provides:
- Modern, clean design optimized for tour booking
- Mobile-first responsive layout
- SEO optimized structure
- Fast loading performance
- Accessibility compliant
- Translation ready
*/

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a87;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007cba;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
@media (max-width: 480px) {
    .farways-classic-header .nav-menu a {
        font-size: 20px;
    }
}
/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==========================================================================
   TOUR CARDS
   ========================================================================== */

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tour-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tour-content {
    padding: 1.5rem;
}

.tour-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.tour-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tour-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 1rem;
}

.tour-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.tour-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #007cba;
    border: 2px solid #007cba;
}

.btn-secondary:hover {
    background: #007cba;
    color: white;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   WOOCOMMERCE INTEGRATION
   ========================================================================== */

.woocommerce {
    margin: 2rem 0;
}

.woocommerce .tourbo-tour-booking {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.woocommerce .tourbo-package-selection {
    margin-bottom: 2rem;
}

.woocommerce .tourbo-guest-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.woocommerce .tourbo-guest-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce .tourbo-guest-input label {
    font-weight: 500;
    min-width: 80px;
}

.woocommerce .tourbo-guest-input input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}
.woocommerce form.login {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #ffffff;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .tour-content {
        padding: 1rem;
    }
}

/* ==========================================================================
   ELEMENTOR INTEGRATION
   ========================================================================== */

.elementor-widget-tourbo-tour-listing .tours-grid {
    display: grid !important;
}

.elementor-widget-tourbo-tour-packages .tourbo-package {
    margin-bottom: 1rem;
}

.elementor-widget-tourbo-tour-booking .tourbo-booking-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   WPML INTEGRATION
   ========================================================================== */

.wpml-ls {
    margin: 0;
}

.wpml-ls-item {
    margin: 0 0.5rem;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ==========================================================================
   FORMINATOR
   ========================================================================== */

.forminator-ui#forminator-module-600.forminator-design--material .forminator-button-submit {
    border-radius: 30px;
}
/* ==========================================================================
   IMAGE DISPLAY BOXES
   ========================================================================== */

.image-display img {
    width: 800px;
    min-height: 450px;
    object-fit: cover;
}
.image-display {
    padding-left:0px;
    padding-right:0px;
}

/* Remove ugly blue focus outlines */
*:focus,
*:focus-visible,
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.elementor-widget:focus,
.elementor-element:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* ==========================================================================
   FORMINATOR
   ========================================================================== */

.forminator-ui#forminator-module-997.forminator-design--material .forminator-button-submit {
    background-color: #20b5d6;
    color: #FFFFFF;
    width: 100%;
    border-radius: 5px;
}

/* ==========================================================================
   TOUR SIDEBAR FEATURE ITEMS
   ========================================================================== */

/* Target only tour sidebar feature items, not footer ones */
.price-widget-features .feature-item {
    display: flex !important;
    flex-direction: row !important;
    padding: 5px !important;
    transition: transform 0.3s ease !important;
    align-items: flex-start !important;
    margin-bottom: 0px !important;
    text-align: left !important;
}

.price-widget-features .feature-item svg {
    margin-right: 8px !important;
    margin-top: 2px !important;
    color: #10b981 !important;
    flex-shrink: 0;
}


