/*
Theme Name: SafarCabby Blog April 2026
Theme URI: https://www.SafarCabby.com
Author: Antigravity AI
Description: A modern, high-performance blog theme for SafarCabby, featuring a clean card-based layout and sticky interactive elements.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safarcabby-blog-apr2026

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
*/

/* --- Global Resets & Premium Design System --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    /* Minimalist Pure White */
    color: #1a1a1a;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='none' stroke='%23f2f2f2' stroke-width='1.5' d='M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,144C1248,117,1344,75,1392,53.3L1440,32'/%3E%3Cpath fill='none' stroke='%23f8f8f8' stroke-width='1' d='M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,144C672,149,768,203,864,208C960,213,1056,171,1152,138.7C1248,107,1344,85,1392,74.7L1440,64'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.rounded-pill {
    border-radius: 50px;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.little-text {
    font-size: 13px;
    font-weight: 600;
}

/* --- Header UI Optimized --- */
.site-header {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Custom Search Bar */
.custom-header-search {
    display: flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0;
    align-items: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input {
    border: none;
    background: transparent;
    padding: 10px 25px;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}

.search-btn {
    background-color: #ff9800;
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0 25px;
    height: 46px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: #fff;
    color: #ff9800;
    border-left: 2px solid #ff9800;
    transform: scale(1.05);
}

/* Navigation Buttons */
.nav-buttons-list {
    display: flex;
    align-items: center;
}

.nav-btn-link {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a !important;
    padding: 10px 15px;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.nav-btn-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.nav-btn-pill {
    background: #ff9800;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-pill:hover {
    background: #e68900;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

/* --- Hero Grid (Asymmetrical) --- */
.hero-grid-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
    margin-bottom: 60px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .hero-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.hero-large {
    position: relative;
    border-radius: 45px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-large:hover {
    transform: translateY(-5px);
}

.hero-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 600px;
    /* Match large hero height */
}

@media (max-width: 992px) {
    .hero-side-grid {
        height: auto;
        min-height: 400px;
    }
}

.hero-small-card {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    /* Ensure it fills the grid cell */
}

.hero-small-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.hero-small-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.hero-small-card .overlay-content {
    padding: 15px;
}

.hero-small-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    margin: 8px 0 0 0;
    line-height: 1.2;
}

.hero-large h2 {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.1;
}

.category-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- Popular Destinations --- */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dest-card {
    height: 140px;
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
    color: #000;
    background: #fff;
}

.dest-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: 0.5s;
}

.dest-card:hover img {
    transform: scale(1.1);
}

.dest-card .dest-label {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Main Feed --- */
.main-feed {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.feed-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 1200px) {
    .feed-column:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-feed {
        display: block;
    }

    .feed-column {
        display: block;
        margin-bottom: 0;
    }

    .feed-column:last-child {
        display: block;
    }
}

.feed-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
}

.feed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.feed-card .thumb {
    width: 100%;
    height: auto;
    border-radius: 35px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Force first 3 and last 3 to have consistent aspect ratio to help row alignment */
.feed-card.aligned-card .thumb {
    aspect-ratio: 16 / 10;
}

.feed-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feed-card:hover .thumb img {
    transform: scale(1.08);
}

.feed-card .content {
    padding: 0 15px 15px 15px;
}

.feed-card h2 {
    font-size: 1.8rem;
    margin: 10px 0;
}

.feed-card .meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
}

/* Sticky Elements */
.sticky-controls {
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Increased gap for better touch targets */
    align-items: center;
}



/* Manage Crisp Chat API Icon Positioning - Middle of the stack */
.crisp-spacer {
    height: 70px;
    /* Space for the Crisp bubble + Gap */
    width: 60px;
}


.sticky-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.sticky-whatsapp {
    background: #25D366;
}

.sticky-chat {
    background: #007bff;
}

.get-quotes-btn {
    background: #ff9800;
    color: #fff;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(201, 236, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.get-quotes-btn:hover {
    background: #fff;
    color: #ff9800;
    box-shadow: inset 0 0 0 2px #ff9800;
    transform: translateY(-3px);
}


/* --- Cityscape Footer (Original Theme) --- */
.form-control:focus {
    box-shadow: none !important;
}

.footer-bg {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
}

.footer-bg:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    mix-blend-mode: multiply;
    z-index: -2;
}

/* Enquiry Modal */
.enquiry-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.enquiry-modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: slideFromTopFooter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes slideFromTopFooter {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Popup (Toast) */
.custom-popup {
    position: fixed;
    top: 2rem;
    right: 2rem;
    min-width: 320px;
    max-width: 90vw;
    z-index: 100000;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeSlideInFooter 0.4s ease-out;
    color: #fff;
    font-family: inherit;
}

.custom-popup.success {
    background-color: #33c61d;
}

.custom-popup.error {
    background-color: #f00;
}

.custom-popup.fade-out {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

@keyframes fadeSlideInFooter {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Minimalist Blog Detail Layout (2-Column) --- */
.single-blog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: flex-start;
}

@media (max-width: 1200px) {
    .single-blog-layout {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .single-blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: none;
    }
}

/* Frosted Glass ToC - Enhanced Sticky */
.toc-sidebar {
    height: 100%;
    position: relative;
    padding-bottom: 40px;
}

.toc-card {
    max-height: 620px;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    position: sticky;
    top: 95px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px 25px 0;
    border: 1px solid #ff9800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.toc-card::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.toc-card h5 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 20px;
}

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

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: #ff9800;
}

/* Luxury Content Styling */
.elegant-entry-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.elegant-entry-content h1,
.elegant-entry-content h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.elegant-entry-content p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 25px;
}

/* Magazine Navigation Styling */
.magazine-nav {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-color: #eee !important;
}

.magazine-nav:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05) !important;
}

.nav-title {
    transition: color 0.3s ease;
}

.group-hover:hover .nav-title {
    color: #ff9800 !important;
}

.view-all-blogs {
    transition: transform 0.3s ease;
}

.view-all-blogs:hover {
    transform: translateY(-3px);
    color: #ff9800 !important;
}

.view-all-blogs:hover i {
    color: #ff9800 !important;
}

/* Floating Social Sidebar - Refined */
.footer-social-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.social-v-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-v-icon:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.1);
}

/* --- Media Trust Bar --- */
.grayscale-logos .media-logo-item {
    transition: all 0.4s ease;
    filter: grayscale(100%) opacity(0.6);
    cursor: pointer;
}

.grayscale-logos .media-logo-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}