/**
 * Nomadic Ventures - Tour Packages Frontend Stylesheet
 * Strictly adheres to the Nomadic Ventures Design System.
 */

:root {
    --brand-primary: #df7b3e;
    --brand-hover: #c46830;
    --brand-secondary: #c9713c;
    --text-dark: #222222;
    --text-body: #444444;
    --text-muted: #666666;
    --text-light-muted: #888888;
    --text-white: #ffffff;
    --border-color: #eaeaea;
    --border-color-light: #f0f0f0;
    --review-stars: #fbbc04;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* -----------------------------------------
   Reset and Scoping Wrapper
   ----------------------------------------- */
.nomadic-tour-wrapper {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-body);
    background-color: #ffffff;
    overflow-x: hidden;
}

.nomadic-tour-wrapper * {
    box-sizing: border-box;
}

/* -----------------------------------------
   Typography Hierarchy
   ----------------------------------------- */
.nomadic-tour-wrapper h1,
.nomadic-tour-wrapper h2,
.nomadic-tour-wrapper h3,
.nomadic-tour-wrapper h4,
.nomadic-tour-wrapper h5,
.nomadic-tour-wrapper h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Subtitles (CRITICAL: uppercase + orange dot) */
.subtitle-dot {
    width: 5px;
    height: 5px;
    background-color: var(--brand-primary);
    display: inline-block;
    margin-right: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

.tour-meta-subtitle,
.section-subtitle,
.cta-subtitle {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-light-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* -----------------------------------------
   Buttons
   ----------------------------------------- */
.nomadic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 36px;
    border-radius: 4px;
    border: 2px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.nomadic-btn.primary-btn {
    background-color: var(--brand-primary);
    color: var(--text-white) !important;
}

.nomadic-btn.primary-btn:hover {
    background-color: var(--brand-hover);
    color: var(--text-white) !important;
    border-color: transparent;
}

.nomadic-btn.secondary-btn {
    background-color: transparent;
    color: var(--text-white) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.nomadic-btn.secondary-btn:hover {
    background-color: var(--text-white);
    color: var(--text-dark) !important;
    border-color: var(--text-white);
}

.nomadic-btn.btn-block {
    display: flex;
    width: 100%;
}

.nomadic-btn.btn-large {
    padding: 16px 42px;
}

/* -----------------------------------------
   Containers
   ----------------------------------------- */
.tour-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-narrow {
    max-width: 800px;
}

.tour-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }


/* -----------------------------------------
   Hero Section Layout
   ----------------------------------------- */
.tour-hero-section {
    position: relative;
    height: 80vh;
    min-height: 580px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

.tour-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.tour-hero-content-container {
    width: 100%;
    z-index: 2;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-hero-inner {
    max-width: 800px;
    color: var(--text-white);
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.tour-hero-inner .tour-subtitle-wrapper {
    margin-bottom: 15px;
}

.tour-hero-inner .tour-meta-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.tour-hero-inner .subtitle-dot {
    background-color: var(--brand-primary);
}

.nomadic-tour-wrapper .tour-hero-section h1,
.nomadic-tour-wrapper .tour-hero-section h2,
.nomadic-tour-wrapper .tour-hero-section h3,
.nomadic-tour-wrapper .tour-hero-section h4 {
    color: var(--text-white) !important;
}

.nomadic-tour-wrapper h1.tour-main-title {
    font-size: 56px !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.tour-hero-meta-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tour-hero-meta-row .meta-item {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.tour-hero-meta-row .meta-label {
    color: rgba(255,255,255,0.6);
    margin-right: 5px;
}

.tour-hero-meta-row .meta-value {
    font-weight: 500;
}

.tour-hero-meta-row .price-badge {
    background: rgba(223, 123, 62, 0.2);
    border: 1px solid var(--brand-primary);
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: -4px;
}

.tour-hero-meta-row .price-badge .meta-value {
    color: var(--brand-primary);
    font-weight: 600;
}

.tour-hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* -----------------------------------------
   Overview / Details Section
   ----------------------------------------- */
.tour-overview-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 60px;
}

.overview-heading {
    font-size: 42px;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 30px;
}

.tour-entry-content p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Summary Widget Card */
.tour-summary-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 40px;
    border: 1px solid var(--border-color-light);
    position: sticky;
    top: 40px;
}

.summary-card-title {
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.summary-list li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list .icon-wrapper {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    color: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.summary-list .list-text {
    font-family: var(--font-body);
    font-size: 13px;
}

.summary-list .list-text strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2px;
}

.summary-list .list-text span {
    color: var(--text-muted);
}

.summary-price-row {
    background: rgba(223, 123, 62, 0.05);
    padding: 20px !important;
    border-radius: 8px;
    border-bottom: none !important;
    margin-top: 10px;
}

.summary-price-row .price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light-muted) !important;
}

.summary-price-row .price-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-primary);
    font-family: var(--font-body);
}

/* -----------------------------------------
   Itinerary Timeline Section
   ----------------------------------------- */
.section-title-center {
    text-align: center;
    margin-bottom: 80px;
}

.section-main-heading {
    font-size: 42px;
    line-height: 1.2;
    margin-top: 10px;
}

.itinerary-timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Vertical line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 100px;
}

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

/* Pin */
.timeline-pin {
    position: absolute;
    left: 31px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-pin {
    border-color: var(--brand-primary);
}

.timeline-pin .pin-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-pin .pin-inner {
    background: var(--brand-primary);
    transform: scale(1.2);
}

/* Card */
.timeline-content-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color-light);
    padding: 40px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: rgba(223, 123, 62, 0.15);
}

.timeline-flex-container {
    display: flex;
    gap: 40px;
}

.timeline-text-side {
    flex: 3;
}

.timeline-image-side {
    flex: 2;
    min-width: 250px;
}

/* Day Label Tag */
.day-label-tag {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.day-label-tag .subtitle-dot {
    background-color: var(--brand-primary);
    margin-right: 8px;
}

.day-route-title {
    font-size: 24px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.day-desc-text p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.day-desc-text p:last-child {
    margin-bottom: 0;
}

/* Optional/Tips note box */
.day-note-box {
    background: rgba(201, 113, 60, 0.05);
    border-left: 3px solid var(--brand-secondary);
    padding: 20px;
    border-radius: 4px;
    margin-top: 25px;
}

.note-box-title {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-secondary);
    margin-bottom: 8px;
}

.note-box-title .note-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.note-box-content {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Image zoom hover effect */
.timeline-image-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.timeline-day-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-image-wrapper:hover .timeline-day-img {
    transform: scale(1.06);
}

.no-itinerary-msg {
    text-align: center;
    font-style: italic;
    color: var(--text-light-muted);
    padding: 40px 0;
}

/* -----------------------------------------
   Inclusions & Exclusions Section
   ----------------------------------------- */
.inclusions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.inc-exc-heading {
    font-size: 32px;
    line-height: 1.25;
    margin-top: 10px;
    margin-bottom: 30px;
}

.inc-list, .exc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inc-list li, .exc-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
}

.inc-list .item-text {
    color: var(--text-muted);
}

.exc-list .item-text {
    color: var(--text-light-muted);
}

.inc-check-icon {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.exc-cross-icon {
    width: 18px;
    height: 18px;
    color: var(--text-light-muted);
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* -----------------------------------------
   CTA Section
   ----------------------------------------- */
.section-cta {
    background-color: #fafafa;
}

.tour-cta-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 60px 50px;
    text-align: center;
    border: 1px solid var(--border-color-light);
}

.cta-heading {
    font-size: 42px;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-description {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .nomadic-btn.secondary-btn {
    border-color: var(--border-color);
    color: var(--text-dark) !important;
}

.cta-buttons .nomadic-btn.secondary-btn:hover {
    background-color: var(--text-dark);
    color: var(--text-white) !important;
    border-color: var(--text-dark);
}

/* -----------------------------------------
   Responsive Behaviors (768px Collapse)
   ----------------------------------------- */
@media (max-width: 991px) {
    .tour-overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tour-summary-card {
        position: static;
    }
    
    .timeline-flex-container {
        flex-direction: column;
    }
    
    .timeline-image-side {
        width: 100%;
    }
    
    .timeline-image-wrapper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tour-section {
        padding: 60px 0;
    }
    
    /* Scale down headings */
    .tour-main-title {
        font-size: 36px;
    }
    
    .overview-heading,
    .section-main-heading,
    .cta-heading {
        font-size: 32px;
    }
    
    .inc-exc-heading {
        font-size: 26px;
    }

    .tour-hero-section {
        height: auto;
        padding: 100px 0;
    }
    
    /* Timeline collapse to 1 column */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 40px;
    }
    
    .timeline-pin {
        left: 11px;
        top: 20px;
    }
    
    .timeline-content-card {
        padding: 25px;
    }
    
    /* Grid collapse */
    .inclusions-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tour-cta-card {
        padding: 40px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nomadic-btn {
        width: 100%;
    }
}

/* -----------------------------------------
   Popular Tours Slider Showcase Section
   ----------------------------------------- */
.t-tours-section {
    position: relative;
    padding: 80px 20px;
    background-color: var(--text-white);
    font-family: var(--font-body);
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header Styling --- */
.t-tours-header {
    margin-bottom: 40px;
}

.t-about-subtitle {
    font-size: 11px;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.t-dot {
    width: 5px;
    height: 5px;
    background-color: var(--brand-primary);
    display: inline-block;
    margin-right: 12px;
    border-radius: 50%;
}

.t-tours-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 400;
    margin: 0;
}

/* --- Slider Container --- */
.t-slider-wrapper {
    position: relative;
    width: 100%;
}

.t-slider-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px; 
    
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.t-slider-track::-webkit-scrollbar {
    display: none; 
}

/* --- Card Styling --- */
.t-tour-card {
    flex: 0 0 calc(33.333% - 20px); 
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--text-white);
}

.t-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--border-color-light);
}

.t-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.t-tour-card:hover .t-card-image-wrapper img {
    transform: scale(1.05); 
}

.t-card-body {
    padding: 20px 0;
}

.t-card-location {
    font-size: 11px;
    color: var(--text-light-muted);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    font-weight: 400;
    line-height: 1.3;
}

.t-card-title a {
    transition: color 0.3s ease;
}

.t-card-title a:hover {
    color: var(--brand-primary) !important;
}

.t-card-price-review {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.t-card-price {
    font-size: 12px;
    color: var(--text-muted);
}

.t-card-price strong {
    font-size: 16px;
    color: var(--brand-primary); 
    font-weight: 700;
    margin-left: 3px;
}

.t-card-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-light-muted);
}

.t-stars {
    color: var(--review-stars); 
    font-size: 10px;
    display: inline-flex;
    align-items: center;
}

.t-card-divider {
    border: none;
    border-top: 1px solid var(--border-color-light);
    margin: 15px 0;
}

.t-card-meta {
    display: flex;
    justify-content: flex-start;
    gap: 40px; 
}

.t-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.t-meta-label {
    font-size: 9px;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.t-meta-value {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Slider Arrow Buttons (FIXED ELEMENTOR OVERRIDES) --- */
.t-slider-btn {
    position: absolute;
    top: calc(33.333vw / 2); 
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    background-color: var(--text-white) !important; /* Force white background */
    border: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    color: var(--text-light-muted) !important; /* Force grey icon */
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

/* Target the icon inside just in case Elementor targets i tags */
.t-slider-btn i,
.t-slider-btn svg {
    color: inherit !important;
    fill: currentColor;
    transition: all 0.3s ease;
}

.t-slider-btn:hover,
.t-slider-btn:focus {
    background-color: var(--text-white) !important; /* Keep white background on hover */
    color: var(--brand-primary) !important; /* Change icon to orange on hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.t-btn-prev { left: -22px; }
.t-btn-next { right: -22px; }

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .t-tour-card { flex: 0 0 calc(50% - 15px); } 
    .t-slider-btn { top: calc(50vw / 2); }
}

@media (max-width: 768px) {
    .t-tour-card { flex: 0 0 100%; } 
    .t-slider-btn { display: none !important; } 
    .t-tours-title { font-size: 32px; }
}

/* -----------------------------------------
   Custom Scrollbar
   ----------------------------------------- */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) #f1f1f1;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 4px;
    border: 2px solid #f5f5f5;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-hover);
}

/* -----------------------------------------
   Back to Top Button
   ----------------------------------------- */
.nomadic-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background-color: var(--brand-primary) !important;
    border: none !important;
    color: var(--text-white) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    padding: 0 !important;
}

.nomadic-back-to-top svg {
    transition: transform 0.3s ease;
    fill: currentColor;
    width: 20px;
    height: 20px;
}

.nomadic-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nomadic-back-to-top:hover {
    background-color: var(--brand-hover) !important;
    box-shadow: 0 6px 20px rgba(223, 123, 62, 0.3) !important;
    transform: translateY(-3px) !important;
}

.nomadic-back-to-top:hover svg {
    transform: translateY(-2px);
}

/* -----------------------------------------
   Optimized Page Loader / Preloader
   ----------------------------------------- */
.nomadic-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.nomadic-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.nomadic-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nomadic-loader-logo {
    margin-bottom: 20px;
    animation: nomadicPulse 1.8s ease-in-out infinite;
}

.nomadic-loader-logo svg {
    width: 50px;
    height: 50px;
    fill: var(--brand-primary);
}

.nomadic-loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid var(--brand-primary);
    border-radius: 50%;
    animation: nomadicSpin 0.8s linear infinite;
    margin-bottom: 15px;
}

.nomadic-loader-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

@keyframes nomadicSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes nomadicPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
