/* ============================================
   Global Theme Styles - Dynamic Colors
   ============================================
   NOTE: CSS Variables are set dynamically via inline style in layout
   ============================================ */

/* Modern typography system */
html {
    font-size: 16px;
}

body {
    background: var(--body-color);
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    line-height: 1.25;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   Background Utilities
   ============================================ */
.alt-bg {
    background-color: var(--bg2);
}

/* ============================================
   Offer Components
   ============================================ */
.offer-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--theme-color);
    border: 1px solid var(--theme-color);
    color: var(--bg);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 0.5rem;
}

.offer-meta .icon {
    width: 20px;
    text-align: center;
    color: var(--grey-color-muted);
}

.offer-meta .label {
    font-weight: 600;
    color: var(--grey-color-muted);
}

.offer-meta .value {
    white-space: nowrap;
    color: var(--grey-color-muted);
}

.currency {
    color: var(--text-muted);
}

/* ============================================
   Button Styles
   ============================================ */
.bg-orange {
    background-color: var(--secondary-color) !important;
}

.bg-orange:hover {
    background-color: var(--secondary-color-dark) !important;
}

.btn-turquoise-outline {
    background-color: var(--secondary-color2) !important;
    border: 3px solid var(--secondary-color2) !important;
    color: var(--secondary-color-text) !important;
}

.btn-turquoise-outline:hover {
    color: var(--secondary-color-text) !important;
}

.btn-turquoise-outline:before {
    background-color: var(--secondary-color2) !important;
}

.th-btn {
    background-color: var(--secondary-color) !important;
    border: 3px solid var(--secondary-color2) !important;
    color: var(--secondary-color-text) !important;
}

.th-btn:before {
    background-color: var(--secondary-color2) !important;
}

.th-btn:after {
    background-color: var(--secondary-color-text) !important;
}

.th-btn.style4 {
    background-color: var(--secondary-color) !important;
}

.th-btn.style3 {
    border: 3px solid var(--secondary-color2) !important;
}

.th-btn.style2 {
    color: var(--secondary-color-text) !important;
}

.th-btn.style4:before {
    background-color: var(--secondary-color2) !important;
}

.th-btn.style3:before {
    background-color: var(--secondary-color2) !important;
}

.th-btn.style2:before {
    background-color: var(--secondary-color2) !important;
}

/* ============================================
   Header Styles
   ============================================ */
.header-layout3 .menu-area {
    background: rgb(from var(--theme-color) r g b / 0.2);
}

.header-layout3 .sticky-wrapper.sticky .menu-area {
    background-color: var(--theme-color);
}

/* ============================================
   Sort Bar & Search
   ============================================ */
.th-sort-bar .nav a {
    background-color: var(--bg-muted);
}

.th-sort-bar .nav .active {
    background-color: var(--theme-color);
}

.search-form input {
    color: var(--text-inverse) !important;
    background-color: var(--bg-muted) !important;
}

/* ============================================
   Tags & Meta
   ============================================ */
.tagcloud a {
    cursor: pointer !important;
    color: var(--text-muted) !important;
}

.recent-post-meta a {
    color: var(--text-muted) !important;
}

/* ============================================
   Tour Box Styles
   ============================================ */
.tour-box .tour-content p {
    color: var(--text-muted);
}

.about-text-area p {
    color: var(--text-muted);
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    left: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    z-index: 10000;
    opacity: 1;
    visibility: hidden;
    transform: translateY(45px);
    transition: all 300ms linear;
}

/* ============================================
   Pax Counter
   ============================================ */
.pax-counter2 button {
    width: 30px;
    height: 30px;
    border: none;
    color: #fff;
    background-color: var(--theme-color) !important;
    cursor: pointer;
    border-radius: 3px;
}

/* ============================================
   Tour Card Layouts
   ============================================ */

/* Make the card the same height as its column */
.tour-box.h-100 {
    height: 100%;
}

/* 1:1 layout inside the card: image/content split evenly */
.card-1x1 {
    display: grid;
    grid-template-rows: 1fr 1fr; /* 50% image, 50% content */
    min-height: 420px; /* tweak as needed */
}

/* Image area fills its grid row; image covers */
.card-1x1 .tour-box_img {
    position: relative;
    overflow: hidden;
}

.card-1x1 .tour-box_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content column uses flex so the button sticks to bottom */
.card-1x1 .tour-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
}

/* Optional: clamp text so heights don't blow up */
.card-1x1 .tour-content .desc {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* adjust lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Stars line stays compact */
.card-1x1 .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 8px;
}

.card-1x1 .stars {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
}

.card-1x1 .stars-bg {
    color: #ccc;
}

.card-1x1 .stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #f5a623;
}

/* --- keep image visible by giving the container height --- */
.tour-box .tour-box_img {
    position: relative;
    aspect-ratio: 8/10; /* choose your ratio */
    overflow: hidden;
}

.tour-box .tour-box_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback if a browser lacks aspect-ratio support */
@supports not (aspect-ratio: 1/1) {
    .tour-box .tour-box_img::before {
        content: "";
        display: block;
        padding-top: 56.25%; /* 16:9 */
    }
}

/* --- only the content column is flex; CTA sticks to bottom --- */
.tour-content {
    display: flex;
    flex-direction: column;
    min-height: 0; /* prevents overflow with long text */
}

.tour-action {
    margin-top: auto;
}

.tour-action .th-btn {
    width: 100%; /* optional: full-width button */
}

/* 1:3 image:content split */
.ratio-1-3 {
    display: grid;
    grid-template-rows: 1fr 3fr; /* image : content */
    min-height: 520px; /* gives the grid real height to honor the ratio */
    overflow: hidden;
}

/* Make the image fill its grid row (override any prior aspect-ratio rule) */
.ratio-1-3 .tour-box_img {
    position: relative;
    aspect-ratio: auto !important;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.ratio-1-3 .tour-box_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content column: CTA sticks to bottom */
.ratio-1-3 .tour-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ratio-1-3 .tour-action {
    margin-top: auto;
}

.ratio-1-3 .tour-action .th-btn {
    width: 100%; /* optional full-width */
}

/* Responsive minimums so the image never gets too tiny */
@media (max-width: 1199.98px) {
    .ratio-1-3 {
        min-height: 480px;
    }
}

@media (max-width: 767.98px) {
    .ratio-1-3 {
        min-height: 420px;
    }
}

/* 2:3 image:content split */
.ratio-2-3 {
    display: grid;
    grid-template-rows: 2fr 3fr; /* image : content */
    min-height: 520px; /* gives the grid height so fractions apply */
    overflow: hidden;
}

/* make image fill its grid row (even if theme absolutely positions it) */
.ratio-2-3 .tour-box_img {
    position: relative;
    aspect-ratio: auto !important;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.ratio-2-3 .tour-box_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* content column with bottom-pinned CTA */
.ratio-2-3 .tour-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ratio-2-3 .tour-action {
    margin-top: auto;
}

.ratio-2-3 .tour-action .th-btn {
    width: 100%; /* optional full-width */
}

/* Responsive guards so the image never gets too tiny */
@media (max-width: 1199.98px) {
    .ratio-2-3 {
        min-height: 480px;
    }
}

@media (max-width: 767.98px) {
    .ratio-2-3 {
        grid-template-rows: 200px auto; /* fixed image height on small screens */
        min-height: unset;
    }
}

/* ============================================
   Offer Features
   ============================================ */

/* Features row above the price */
.offer-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: #fff; /* blends with card; remove if not needed */
}

.offer-features .feat {
    flex: 1;
    text-align: center;
    padding: 0.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.offer-features .feat:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.2); /* the slim vertical separators */
}

.offer-features .icon {
    font-size: 20px;
    line-height: 1;
    color: var(--title-color, #222);
}

.offer-features .text {
    font-size: 0.9rem;
    color: var(--grey-color-muted, #6c757d);
}

/* Mobile tweak: keep it tight; drop the separators if cramped */
@media (max-width: 575.98px) {
    .offer-features .feat {
        padding: 0.25rem 0.5rem;
    }
    
    .offer-features .feat:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.h-50 {
    height: 50%;
}

.offer-price {
    background-color: var(--grey-color);
    border: 1px solid var(--grey-color);
    color: var(--bg);
}

.description p {
    color: var(--grey-color);
}

/* ============================================
   Modern Hero Slider Styles
   ============================================ */
.modern-hero-slider {
    position: relative;
    overflow: hidden;
}

.modern-hero-slider .swiper {
    --swiper-navigation-color: #fff;
}

/* Slide container */
.slide-container {
    position: relative;
    height: 90vh;
    min-height: 600px;
    width: 100%;
}

/* Media container (video/image) */
.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-media img,
.slide-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay styles */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.slide-overlay-pattern {
    background-image: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%), 
                    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Content styles */
.container.position-relative {
    z-index: 3;
}

.slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-badge {
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--secondary-color);
    font-family: 'Montez', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.slide-badge:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.slide-title {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.slide-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 992px) {
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-badge {
        font-size: 2rem;
    }
    
    .slide-container {
        height: 80vh;
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-badge {
        font-size: 1.8rem;
    }
    
    .slide-container {
        height: 70vh;
    }
}

/* ============================================
   EXPANDED TRAVEL AGENCY FOOTER STYLES
   Applied globally to all pages
   ============================================ */

/* Expanded Travel Agency Footer */
.travel-footer-expanded {
    background: linear-gradient(135deg, #1a3a39 0%, #2a4f4d 50%, #3D9B98 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.travel-footer-expanded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2.5rem 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.brand-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.logo {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
}

.tagline {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.contact-link,
.contact-text {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Services Section */
.footer-services {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.services-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding-left: 1rem;
    position: relative;
}

.service-link::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #ffffff;
    padding-left: 1.2rem;
}

.service-link:hover::before {
    color: #ffffff;
}

/* Social Section */
.footer-social-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.social-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
    will-change: background, border-color;
}

.social-link:hover,
.social-link:focus,
.social-link:active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.social-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    pointer-events: none;
    flex-shrink: 0;
}

.social-link span {
    pointer-events: none;
    color: inherit;
    display: inline-block;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-layout {
grid-template-columns: 1fr 1fr;
gap: 2.5rem;
    }
    
    .footer-main {
padding: 3.5rem 0 2rem 0;
    }
}

@media (max-width: 768px) {
    .footer-layout {
grid-template-columns: 1fr;
gap: 2rem;
    }
    
    .footer-main {
padding: 3rem 0 1.5rem 0;
    }
    
    .footer-brand {
text-align: center;
    }
    
    .bottom-content {
flex-direction: column;
gap: 1rem;
text-align: center;
    }
    
    .footer-links {
justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-layout {
gap: 1.5rem;
    }
    
    .logo {
max-width: 120px;
    }
    
    .contact-item {
gap: 0.8rem;
    }
    
    .contact-icon {
width: 35px;
height: 35px;
font-size: 14px;
    }
    
    .footer-links {
flex-direction: column;
gap: 0.8rem;
    }
}

/* Hide original footer */
.footer-wrapper.bg-title {
    display: none !important;
}
