/*
Theme Name: 007AJ Travel Theme
Theme URI: https://007aj.com/themes/travel
Author: 007AJ
Author URI: https://007aj.com
Description: A full-featured travel agency and tour operator WordPress theme with tour listings, fixed departures, itineraries, booking management, traveller reviews, destination pages, multi-currency pricing, guide marketplace mode, and built-in affiliate listings for instant out-of-box content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ajtrav
Tags: travel, tourism, tours, booking, directory, custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ========================================================================
   CSS RESET & BASE
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ajt-primary: #0369a1;
    --ajt-primary-dark: #075985;
    --ajt-primary-light: #e0f2fe;
    --ajt-accent: #f59e0b;
    --ajt-accent-dark: #d97706;
    --ajt-success: #059669;
    --ajt-danger: #dc2626;
    --ajt-warning: #f59e0b;
    --ajt-text: #1e293b;
    --ajt-text-light: #64748b;
    --ajt-border: #e2e8f0;
    --ajt-bg: #ffffff;
    --ajt-bg-alt: #f8fafc;
    --ajt-bg-dark: #0f172a;
    --ajt-radius: 8px;
    --ajt-radius-lg: 12px;
    --ajt-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --ajt-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --ajt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --ajt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ajt-font-display: 'Plus Jakarta Sans', var(--ajt-font);
    --ajt-max-width: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--ajt-font);
    color: var(--ajt-text);
    background: var(--ajt-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ajt-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ajt-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ajt-font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ajt-text);
}

.ajt-container {
    max-width: var(--ajt-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================================================
   HEADER
   ======================================================================== */
.ajt-header {
    background: var(--ajt-bg);
    border-bottom: 1px solid var(--ajt-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.ajt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: var(--ajt-max-width);
    margin: 0 auto;
}
.ajt-logo {
    font-family: var(--ajt-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ajt-primary);
}
.ajt-logo span { color: var(--ajt-accent); }

.ajt-nav { display: flex; align-items: center; gap: 24px; }
.ajt-nav a {
    color: var(--ajt-text);
    font-weight: 500;
    font-size: .9rem;
    padding: 8px 0;
    position: relative;
}
.ajt-nav a:hover,
.ajt-nav a.active { color: var(--ajt-primary); }
.ajt-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ajt-primary);
    border-radius: 1px;
}

.ajt-nav-actions { display: flex; align-items: center; gap: 12px; }

.ajt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--ajt-radius);
    font-family: var(--ajt-font);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    line-height: 1.4;
}
.ajt-btn-primary {
    background: var(--ajt-primary);
    color: #fff;
}
.ajt-btn-primary:hover { background: var(--ajt-primary-dark); color: #fff; }
.ajt-btn-accent {
    background: var(--ajt-accent);
    color: #fff;
}
.ajt-btn-accent:hover { background: var(--ajt-accent-dark); color: #fff; }
.ajt-btn-outline {
    background: transparent;
    border: 1.5px solid var(--ajt-border);
    color: var(--ajt-text);
}
.ajt-btn-outline:hover { border-color: var(--ajt-primary); color: var(--ajt-primary); }
.ajt-btn-sm { padding: 6px 14px; font-size: .8rem; }
.ajt-btn-lg { padding: 14px 28px; font-size: 1rem; }
.ajt-btn-block { display: flex; width: 100%; justify-content: center; }
.ajt-btn-danger { background: var(--ajt-danger); color: #fff; }
.ajt-btn-success { background: var(--ajt-success); color: #fff; }

/* Mobile menu toggle */
.ajt-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ajt-text);
}

/* ========================================================================
   HERO SLIDER
   ======================================================================== */
.ajt-hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #0c4a6e;
}
.ajt-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.ajt-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .8s ease;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.ajt-slide-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.ajt-slide-content {
    max-width: 640px;
    padding: 0 60px 0 80px;
    color: #fff;
    animation: ajtSlideIn .7s ease-out;
}
@keyframes ajtSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ajt-slide-dest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.ajt-slide-title {
    font-family: var(--ajt-heading-font);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ajt-slide-excerpt {
    font-size: 1.05rem;
    opacity: .9;
    line-height: 1.5;
    margin: 0 0 20px;
}
.ajt-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.ajt-slide-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    opacity: .9;
}
.ajt-slide-price strong {
    font-size: 1.25rem;
    color: var(--ajt-accent);
}
.ajt-slide-partner {
    color: #86efac;
}
.ajt-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--ajt-radius);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ajt-slide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Slider buttons */
.ajt-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}
.ajt-slider-btn:hover {
    background: rgba(255,255,255,.3);
}
.ajt-slider-prev { left: 20px; }
.ajt-slider-next { right: 20px; }

/* Dots */
.ajt-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.ajt-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    background: transparent;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}
.ajt-slider-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* Progress bar */
.ajt-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.2);
    z-index: 5;
}
.ajt-slider-progress-bar {
    height: 100%;
    width: 0;
    background: var(--ajt-accent);
    transition: width .1s linear;
}

@media (max-width: 768px) {
    .ajt-hero-slider { height: 460px; }
    .ajt-slide-content { padding: 0 24px; max-width: 100%; }
    .ajt-slide-title { font-size: 1.75rem; }
    .ajt-slide-excerpt { font-size: .95rem; }
    .ajt-slider-btn { width: 36px; height: 36px; }
    .ajt-slider-prev { left: 10px; }
    .ajt-slider-next { right: 10px; }
}

/* ========================================================================
   HERO SEARCH
   ======================================================================== */
.ajt-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
    color: #fff;
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ajt-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,176C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom/cover;
}
.ajt-hero h1 {
    font-size: 2.75rem;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}
.ajt-hero p {
    font-size: 1.15rem;
    opacity: .85;
    margin-bottom: 40px;
    position: relative;
}

.ajt-search-box {
    background: #fff;
    border-radius: var(--ajt-radius-lg);
    padding: 8px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    box-shadow: var(--ajt-shadow-lg);
    position: relative;
}
.ajt-search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
}
.ajt-search-field label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ajt-text-light);
    margin-bottom: 4px;
}
.ajt-search-field input,
.ajt-search-field select {
    border: none;
    font-size: .9rem;
    color: var(--ajt-text);
    font-family: var(--ajt-font);
    background: transparent;
    outline: none;
    padding: 2px 0;
}
.ajt-search-field + .ajt-search-field {
    border-left: 1px solid var(--ajt-border);
}
.ajt-search-box .ajt-btn {
    align-self: center;
    padding: 14px 28px;
    border-radius: var(--ajt-radius);
    white-space: nowrap;
}

/* ========================================================================
   SECTION HEADERS
   ======================================================================== */
.ajt-section {
    padding: 60px 0;
}
.ajt-section-alt {
    background: var(--ajt-bg-alt);
}
.ajt-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.ajt-section-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.ajt-section-header p {
    color: var(--ajt-text-light);
    font-size: 1.05rem;
}

/* ========================================================================
   TOUR CARDS
   ======================================================================== */
.ajt-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.ajt-tour-card {
    background: var(--ajt-bg);
    border-radius: var(--ajt-radius-lg);
    overflow: hidden;
    box-shadow: var(--ajt-shadow);
    transition: transform .2s, box-shadow .2s;
}
.ajt-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ajt-shadow-lg);
}
.ajt-tour-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--ajt-bg-alt);
}
.ajt-tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ajt-tour-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}
.ajt-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.ajt-badge-featured { background: var(--ajt-accent); color: #fff; }
.ajt-badge-affiliate { background: rgba(0,0,0,.6); color: #fff; }
.ajt-badge-guaranteed { background: var(--ajt-success); color: #fff; }
.ajt-badge-filling { background: var(--ajt-danger); color: #fff; }
.ajt-badge-difficulty {
    background: rgba(255,255,255,.9);
    color: var(--ajt-text);
}

.ajt-tour-card-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--ajt-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--ajt-radius);
    font-weight: 700;
    font-size: .9rem;
}
.ajt-tour-card-price small {
    font-weight: 400;
    font-size: .7rem;
    opacity: .8;
}

.ajt-tour-card-body {
    padding: 16px 20px 20px;
}
.ajt-tour-card-dest {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ajt-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.ajt-tour-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.35;
}
.ajt-tour-card-body h3 a { color: inherit; }
.ajt-tour-card-body h3 a:hover { color: var(--ajt-primary); }

.ajt-tour-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .8rem;
    color: var(--ajt-text-light);
    margin-bottom: 12px;
}
.ajt-tour-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ajt-tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--ajt-border);
}
.ajt-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    font-weight: 600;
}
.ajt-stars { color: var(--ajt-accent); }
.ajt-rating-count {
    color: var(--ajt-text-light);
    font-weight: 400;
    font-size: .8rem;
}

/* ========================================================================
   DESTINATION CARDS
   ======================================================================== */
.ajt-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.ajt-dest-card {
    position: relative;
    border-radius: var(--ajt-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.ajt-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.ajt-dest-card:hover img { transform: scale(1.05); }
.ajt-dest-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}
.ajt-dest-card-overlay h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 2px;
}
.ajt-dest-card-overlay span {
    font-size: .8rem;
    opacity: .8;
}

/* ========================================================================
   SINGLE TOUR PAGE
   ======================================================================== */
.ajt-tour-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: var(--ajt-bg-dark);
}
.ajt-tour-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .7;
}
.ajt-tour-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    color: #fff;
}
.ajt-tour-hero-content h1 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 8px;
}
.ajt-tour-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: .9rem;
    opacity: .9;
}
.ajt-tour-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ajt-tour-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    padding: 40px 0;
}
.ajt-tour-content h2 {
    font-size: 1.4rem;
    margin: 30px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ajt-border);
}
.ajt-tour-content h2:first-child { margin-top: 0; }
.ajt-tour-content p { margin-bottom: 16px; color: var(--ajt-text); }

/* Gallery */
.ajt-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 30px;
    border-radius: var(--ajt-radius-lg);
    overflow: hidden;
}
.ajt-gallery-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: 4/3;
}
.ajt-gallery-thumb { aspect-ratio: 1; }
.ajt-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity .2s;
}
.ajt-gallery img:hover { opacity: .85; }

/* Itinerary */
.ajt-itinerary { margin: 20px 0; }
.ajt-itinerary-day {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ajt-border);
}
.ajt-itinerary-day:last-child { border-bottom: none; }
.ajt-itinerary-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ajt-primary-light);
    color: var(--ajt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
}
.ajt-itinerary-content h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.ajt-itinerary-content p {
    font-size: .9rem;
    color: var(--ajt-text-light);
    margin-bottom: 8px;
}
.ajt-itinerary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ajt-itinerary-tag {
    font-size: .7rem;
    padding: 3px 8px;
    background: var(--ajt-bg-alt);
    border-radius: 4px;
    color: var(--ajt-text-light);
}

/* Inclusions */
.ajt-inclusions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0;
}
.ajt-inclusions-list h4 {
    font-size: .9rem;
    margin-bottom: 10px;
}
.ajt-inclusions-list ul {
    list-style: none;
    padding: 0;
}
.ajt-inclusions-list li {
    padding: 6px 0;
    font-size: .85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ajt-inclusions-list.included li::before {
    content: '\2713';
    color: var(--ajt-success);
    font-weight: 700;
}
.ajt-inclusions-list.excluded li::before {
    content: '\2717';
    color: var(--ajt-danger);
    font-weight: 700;
}

/* ========================================================================
   BOOKING SIDEBAR
   ======================================================================== */
.ajt-booking-card {
    background: var(--ajt-bg);
    border: 1px solid var(--ajt-border);
    border-radius: var(--ajt-radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
    box-shadow: var(--ajt-shadow-md);
}
.ajt-booking-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ajt-primary);
    margin-bottom: 4px;
}
.ajt-booking-price small {
    font-size: .85rem;
    font-weight: 400;
    color: var(--ajt-text-light);
}
.ajt-booking-card hr {
    border: none;
    border-top: 1px solid var(--ajt-border);
    margin: 16px 0;
}

.ajt-form-group {
    margin-bottom: 16px;
}
.ajt-form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ajt-text);
    margin-bottom: 6px;
}
.ajt-form-group input,
.ajt-form-group select,
.ajt-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--ajt-border);
    border-radius: var(--ajt-radius);
    font-family: var(--ajt-font);
    font-size: .9rem;
    color: var(--ajt-text);
    transition: border-color .2s;
}
.ajt-form-group input:focus,
.ajt-form-group select:focus,
.ajt-form-group textarea:focus {
    outline: none;
    border-color: var(--ajt-primary);
    box-shadow: 0 0 0 3px rgba(3,105,161,.1);
}

.ajt-guest-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--ajt-border);
}
.ajt-guest-counter:last-child { border-bottom: none; }
.ajt-guest-label span { font-size: .85rem; font-weight: 500; }
.ajt-guest-label small { display: block; font-size: .75rem; color: var(--ajt-text-light); }
.ajt-counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ajt-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--ajt-border);
    background: var(--ajt-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ajt-text);
    transition: all .2s;
}
.ajt-counter-btn:hover {
    border-color: var(--ajt-primary);
    color: var(--ajt-primary);
}
.ajt-counter-val {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.ajt-price-summary {
    background: var(--ajt-bg-alt);
    border-radius: var(--ajt-radius);
    padding: 16px;
    margin: 16px 0;
}
.ajt-price-row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    padding: 4px 0;
}
.ajt-price-row.total {
    font-weight: 700;
    font-size: 1rem;
    border-top: 1px solid var(--ajt-border);
    margin-top: 8px;
    padding-top: 10px;
}

/* ========================================================================
   DEPARTURES TABLE
   ======================================================================== */
.ajt-departures-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.ajt-departures-table th {
    text-align: left;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ajt-text-light);
    padding: 10px 12px;
    border-bottom: 2px solid var(--ajt-border);
}
.ajt-departures-table td {
    padding: 12px;
    font-size: .85rem;
    border-bottom: 1px solid var(--ajt-border);
    vertical-align: middle;
}
.ajt-departures-table tr:hover td {
    background: var(--ajt-bg-alt);
}
.ajt-seats-bar {
    width: 80px;
    height: 6px;
    background: var(--ajt-border);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}
.ajt-seats-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .3s;
}

/* ========================================================================
   REVIEWS
   ======================================================================== */
.ajt-reviews-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: var(--ajt-bg-alt);
    border-radius: var(--ajt-radius-lg);
    margin-bottom: 24px;
}
.ajt-reviews-score {
    text-align: center;
    min-width: 100px;
}
.ajt-reviews-score .score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ajt-primary);
    line-height: 1;
}
.ajt-reviews-bars { flex: 1; }
.ajt-review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: .8rem;
}
.ajt-review-bar {
    flex: 1;
    height: 8px;
    background: var(--ajt-border);
    border-radius: 4px;
    overflow: hidden;
}
.ajt-review-bar-fill {
    height: 100%;
    background: var(--ajt-accent);
    border-radius: 4px;
}

.ajt-review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--ajt-border);
}
.ajt-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.ajt-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ajt-primary-light);
    color: var(--ajt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}
.ajt-review-author { font-weight: 600; font-size: .9rem; }
.ajt-review-date { font-size: .8rem; color: var(--ajt-text-light); }
.ajt-review-text { font-size: .9rem; line-height: 1.6; }
.ajt-review-reply {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--ajt-bg-alt);
    border-radius: var(--ajt-radius);
    border-left: 3px solid var(--ajt-primary);
    font-size: .85rem;
}

/* ========================================================================
   FILTER SIDEBAR
   ======================================================================== */
.ajt-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0;
}
.ajt-filters {
    position: sticky;
    top: 80px;
    align-self: start;
}
.ajt-filter-section {
    margin-bottom: 24px;
}
.ajt-filter-section h4 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ajt-text);
}
.ajt-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: .85rem;
    cursor: pointer;
}
.ajt-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ajt-primary);
}
.ajt-price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ajt-price-range input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--ajt-border);
    border-radius: var(--ajt-radius);
    font-size: .85rem;
}
.ajt-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.ajt-results-count {
    font-size: .9rem;
    color: var(--ajt-text-light);
}
.ajt-sort-select {
    padding: 8px 12px;
    border: 1.5px solid var(--ajt-border);
    border-radius: var(--ajt-radius);
    font-size: .85rem;
    font-family: var(--ajt-font);
}

/* ========================================================================
   DASHBOARD
   ======================================================================== */
.ajt-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 40px 0;
    min-height: 600px;
}
.ajt-dash-sidebar {
    background: var(--ajt-bg);
    border: 1px solid var(--ajt-border);
    border-radius: var(--ajt-radius-lg);
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 80px;
}
.ajt-dash-menu { list-style: none; }
.ajt-dash-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--ajt-radius);
    color: var(--ajt-text);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .2s;
}
.ajt-dash-menu li a:hover,
.ajt-dash-menu li a.active {
    background: var(--ajt-primary-light);
    color: var(--ajt-primary);
}
.ajt-dash-content {
    background: var(--ajt-bg);
    border: 1px solid var(--ajt-border);
    border-radius: var(--ajt-radius-lg);
    padding: 30px;
}
.ajt-dash-content h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ajt-border);
}

/* Booking cards in dashboard */
.ajt-booking-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--ajt-border);
    border-radius: var(--ajt-radius);
    margin-bottom: 12px;
    transition: box-shadow .2s;
}
.ajt-booking-list-item:hover { box-shadow: var(--ajt-shadow); }
.ajt-booking-thumb {
    width: 100px;
    height: 70px;
    border-radius: var(--ajt-radius);
    overflow: hidden;
    flex-shrink: 0;
}
.ajt-booking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ajt-booking-info { flex: 1; }
.ajt-booking-info h4 { font-size: .95rem; margin-bottom: 4px; }
.ajt-booking-info p { font-size: .8rem; color: var(--ajt-text-light); margin: 0; }
.ajt-booking-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.ajt-status-confirmed { background: #dcfce7; color: #166534; }
.ajt-status-pending { background: #fef3c7; color: #92400e; }
.ajt-status-cancelled { background: #fee2e2; color: #991b1b; }

/* ========================================================================
   GUIDE MARKETPLACE
   ======================================================================== */
.ajt-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.ajt-guide-card {
    background: var(--ajt-bg);
    border: 1px solid var(--ajt-border);
    border-radius: var(--ajt-radius-lg);
    padding: 24px;
    text-align: center;
    transition: box-shadow .2s;
}
.ajt-guide-card:hover { box-shadow: var(--ajt-shadow-md); }
.ajt-guide-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 3px solid var(--ajt-primary-light);
}
.ajt-guide-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ajt-guide-card .location { font-size: .85rem; color: var(--ajt-text-light); margin-bottom: 10px; }

/* ========================================================================
   AFFILIATE LISTING BADGE
   ======================================================================== */
.ajt-affiliate-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--ajt-text-light);
    background: var(--ajt-bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.ajt-footer {
    background: var(--ajt-bg-dark);
    color: #94a3b8;
    padding: 60px 0 0;
}
.ajt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.ajt-footer-brand {
    font-family: var(--ajt-font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.ajt-footer-brand span { color: var(--ajt-accent); }
.ajt-footer p { font-size: .85rem; line-height: 1.6; margin-bottom: 16px; }
.ajt-footer h4 {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}
.ajt-footer ul { list-style: none; }
.ajt-footer ul li { margin-bottom: 8px; }
.ajt-footer ul a {
    color: #94a3b8;
    font-size: .85rem;
    transition: color .2s;
}
.ajt-footer ul a:hover { color: #fff; }
.ajt-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: .8rem;
}

/* ========================================================================
   FORMS (Login, Register)
   ======================================================================== */
.ajt-auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.ajt-auth-card {
    background: var(--ajt-bg);
    border: 1px solid var(--ajt-border);
    border-radius: var(--ajt-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--ajt-shadow-lg);
}
.ajt-auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
}
.ajt-auth-card .subtitle {
    text-align: center;
    color: var(--ajt-text-light);
    font-size: .9rem;
    margin-bottom: 24px;
}

/* ========================================================================
   MEMBERSHIP PRICING
   ======================================================================== */
.ajt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.ajt-pricing-card {
    background: var(--ajt-bg);
    border: 2px solid var(--ajt-border);
    border-radius: var(--ajt-radius-lg);
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}
.ajt-pricing-card.featured {
    border-color: var(--ajt-primary);
    box-shadow: var(--ajt-shadow-lg);
}
.ajt-pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ajt-primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.ajt-pricing-tier {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ajt-primary);
    margin-bottom: 8px;
}
.ajt-pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ajt-text);
    margin-bottom: 4px;
}
.ajt-pricing-amount small {
    font-size: .9rem;
    font-weight: 400;
    color: var(--ajt-text-light);
}
.ajt-pricing-desc {
    font-size: .85rem;
    color: var(--ajt-text-light);
    margin-bottom: 20px;
}
.ajt-pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}
.ajt-pricing-features li {
    padding: 8px 0;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--ajt-border);
}
.ajt-pricing-features li:last-child { border: none; }
.ajt-pricing-features li::before {
    content: '\2713';
    color: var(--ajt-success);
    font-weight: 700;
    flex-shrink: 0;
}
.ajt-pricing-features li.disabled {
    color: var(--ajt-text-light);
    text-decoration: line-through;
}
.ajt-pricing-features li.disabled::before {
    content: '\2717';
    color: var(--ajt-text-light);
}

/* ========================================================================
   ALERTS & NOTICES
   ======================================================================== */
.ajt-alert {
    padding: 14px 18px;
    border-radius: var(--ajt-radius);
    font-size: .9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ajt-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.ajt-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.ajt-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.ajt-alert-info { background: var(--ajt-primary-light); color: var(--ajt-primary-dark); border: 1px solid #bae6fd; }

/* ========================================================================
   PAGINATION
   ======================================================================== */
.ajt-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 30px 0;
}
.ajt-pagination a,
.ajt-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--ajt-radius);
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid var(--ajt-border);
    color: var(--ajt-text);
    transition: all .2s;
}
.ajt-pagination a:hover { border-color: var(--ajt-primary); color: var(--ajt-primary); }
.ajt-pagination .current {
    background: var(--ajt-primary);
    color: #fff;
    border-color: var(--ajt-primary);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
    .ajt-tour-layout { grid-template-columns: 1fr; }
    .ajt-booking-card { position: static; }
    .ajt-archive-layout { grid-template-columns: 1fr; }
    .ajt-filters { position: static; }
    .ajt-footer-grid { grid-template-columns: 1fr 1fr; }
    .ajt-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ajt-hero { padding: 50px 0 70px; }
    .ajt-hero h1 { font-size: 1.8rem; }
    .ajt-search-box { flex-direction: column; }
    .ajt-search-field + .ajt-search-field { border-left: none; border-top: 1px solid var(--ajt-border); }
    .ajt-nav { display: none; }
    .ajt-menu-toggle { display: block; }
    .ajt-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ajt-bg);
        border-bottom: 1px solid var(--ajt-border);
        padding: 16px;
        box-shadow: var(--ajt-shadow-lg);
    }
    .ajt-tour-grid { grid-template-columns: 1fr; }
    .ajt-dest-grid { grid-template-columns: 1fr 1fr; }
    .ajt-gallery { grid-template-columns: 1fr 1fr; }
    .ajt-gallery-main { grid-column: 1 / -1; }
    .ajt-inclusions { grid-template-columns: 1fr; }
    .ajt-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .ajt-tour-hero { height: 300px; }
    .ajt-tour-hero-content h1 { font-size: 1.5rem; }
    .ajt-pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ajt-dest-grid { grid-template-columns: 1fr; }
    .ajt-header-inner { padding: 10px 12px; }
}
