/*
Theme Name: SSDN Travels Dubai Premium
Theme URI: https://ssdntravelgroupdubai.com/premium-theme
Description: A bespoke, ultra-luxury, high-performance WordPress theme designed specifically for SSDN Travels Dubai. Features deep WooCommerce integration for attraction ticket booking, full Elementor Page Builder compatibility, dynamic Customizer options, and optimized mobile-first performance.
Version: 1.0.0
Author: Senior WordPress Core Developer & UI/UX Specialist
Author URI: https://ssdntravelgroupdubai.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssdn-travels
Tags: travel, hotel, booking, woocommerce, elementor, custom-background, custom-logo, custom-menu, featured-images, translation-ready, holiday-packages

--------------------------------------------------------------------------------
DESIGN SYSTEM & BRAND VARIABLES
--------------------------------------------------------------------------------
The SSDN Travels Dubai theme uses a premium, high-contrast, editorial color palette
paired with responsive, elegant typography.
*/

:root {
    /* Core Branding Colors */
    --color-primary: #18385f;      /* Deep Sapphire Blue - Luxury & Trust */
    --color-secondary: #f7941d;    /* Bright Sunset Orange - Energy & Attraction */
    --color-accent: #007c89;       /* Deep Ocean Teal - Warm Beach Staycations */
    --color-sky: #4db6e2;          /* Light Sky Blue - Air Travel & Freedom */
    --color-gold: #ffb347;         /* Golden Glow - Premium Desert Safari & Royalty */

    /* UI States */
    --color-success: #43a047;      /* Vivid Green - Successful Payment / Confirmed Booking */
    --color-warning: #ffa000;      /* Honey Amber - Pending Approval / Pending Visa */
    --color-error: #e53935;        /* Crimson Red - Payment Failed / Action Required */

    /* Canvas / Surface Colors */
    --color-bg-light: #f8fafc;     /* Soft Off-White - Main Light Background */
    --color-surface-light: #ffffff;/* Pristine White - Cards & Modules */
    --color-bg-dark: #0b1420;      /* Slate Space - Deep Dark Mode Background */
    --color-surface-dark: #121f30; /* Dark Cobalt - Cards & Modules in Dark Mode */

    /* Typography Ink Colors */
    --color-text-dark: #1f2937;    /* Charcoal Gray - High Readability Body Text */
    --color-text-light: #f3f4f6;   /* Soft Cream - Body Text on Dark Backgrounds */
    --color-text-muted: #6b7280;   /* Slate Gray - Subtitles & Secondary Information */

    /* Borders & Dividers */
    --color-border-light: #e0e7ef;  /* Light Blue-Grey Border */
    --color-border-dark: #1e2d42;   /* Muted Midnight Blue Border */

    /* Shadows & Elevation */
    --shadow-sm: 0 4px 12px rgba(24, 56, 95, 0.05);
    --shadow-md: 0 10px 28px rgba(24, 56, 95, 0.08);
    --shadow-lg: 0 18px 45px rgba(24, 56, 95, 0.12);

    /* Typography Hierarchy */
    --font-primary: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base resets & basic styles for WordPress fallback rendering */
body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Premium Typography Utility Classes */
.text-display {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.text-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-secondary);
    letter-spacing: 0.17em;
    text-transform: uppercase;
    display: inline-block;
}

/* CSS Architect - Clean Layout classes used across theme files */
.theme-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.premium-card {
    background: var(--color-surface-light);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-gold));
    color: #ffffff;
    border: none;
    box-shadow: 0 12px 24px rgba(247, 148, 29, 0.25);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(247, 148, 29, 0.35);
}

.btn-premium-dark {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
}

.btn-premium-dark:hover {
    background: #0d213a;
    transform: translateY(-2px);
}

/* Mobile-first polish for the rebuilt homepage and header */
.cart-count-bubble {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .theme-container {
        padding: 0 18px;
    }

    header#siteHeader .theme-container {
        min-height: 76px;
    }

    header#siteHeader .nav-links {
        gap: 4px;
        flex-wrap: wrap;
    }

    header#siteHeader .nav-links a,
    header#siteHeader .nav-links button {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    .theme-container {
        padding: 0 16px;
    }

    .btn-premium {
        width: 100%;
    }

    header#siteHeader .theme-container {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
    }

    header#siteHeader .brand {
        min-width: 0 !important;
        width: 100%;
        justify-content: center;
    }

    header#siteHeader .nav-links {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    header#siteHeader .actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    header#siteHeader .actions a {
        flex: 1 1 140px;
    }

    .ssdn-marquee {
        gap: 16px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .ssdn-marquee > .ssdn-card-wrap {
        flex-basis: 82%;
    }

    .ssdn-frost > div[style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .theme-container[style*="grid-template-columns:1.2fr .8fr"],
    .theme-container[style*="grid-template-columns:1.1fr .9fr"] {
        grid-template-columns: 1fr !important;
    }

    .theme-container[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.65;
    }

    .text-display {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    header#siteHeader .actions a {
        flex: 1 1 100%;
    }

    .ssdn-marquee > .ssdn-card-wrap {
        flex-basis: 88%;
    }

    .btn-premium,
    .btn {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* WooCommerce product card and single product shell */
.ssdn-loop-card {
    list-style: none;
}

.ssdn-loop-card__link {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.ssdn-loop-card__link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ssdn-loop-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eaf2fb, #fef7ef);
}

.ssdn-loop-card__thumb,
.ssdn-loop-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ssdn-loop-card__placeholder {
    background: linear-gradient(135deg, #eaf2fb, #e4eef8);
}

.ssdn-loop-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(24, 56, 95, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ssdn-loop-card__body {
    padding: 18px;
}

.ssdn-loop-card__eyebrow {
    color: var(--color-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ssdn-loop-card__title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--color-primary);
}

.ssdn-loop-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ssdn-loop-card__excerpt {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.ssdn-loop-card__cta {
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.ssdn-product-shell {
    background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
    padding-bottom: 64px;
}

.ssdn-product-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0e3858 0%, #183b5b 55%, #f7941d 140%);
    color: #fff;
    padding: 54px 0 46px;
}

.ssdn-product-hero::before,
.ssdn-product-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.ssdn-product-hero::before {
    width: 320px;
    height: 320px;
    right: -110px;
    top: -110px;
}

.ssdn-product-hero::after {
    width: 240px;
    height: 240px;
    left: -90px;
    bottom: -120px;
}

.ssdn-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.ssdn-hero-grid,
.ssdn-main-grid,
.ssdn-related-grid {
    display: grid;
    gap: 28px;
}

.ssdn-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.ssdn-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ssdn-hero-title {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    margin: 0 0 12px;
    font-weight: 900;
    color: #fff;
}

.ssdn-hero-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin: 0 0 20px;
}

.ssdn-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.ssdn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.ssdn-hero-price {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0e3858;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 900;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.ssdn-hero-panel {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 28px 55px rgba(9, 38, 69, 0.26);
    color: #13324d;
}

.ssdn-gallery-main {
    border-radius: 18px;
    overflow: hidden;
    background: #edf4fa;
    aspect-ratio: 4 / 3;
}

.ssdn-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ssdn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.ssdn-gallery-grid .thumb {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #edf4fa;
}

.ssdn-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ssdn-main-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    margin-top: 28px;
}

.ssdn-card {
    background: #fff;
    border: 1px solid rgba(17, 42, 68, 0.08);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 16px 40px rgba(15, 30, 48, 0.06);
}

.ssdn-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.ssdn-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(17, 42, 68, 0.08);
    padding-bottom: 10px;
}

.ssdn-meta-list li strong {
    color: #0e3858;
}

.ssdn-actions {
    display: grid;
    gap: 12px;
}

.ssdn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.ssdn-btn-primary {
    background: linear-gradient(135deg, #0e3858, #133b63);
    color: #fff;
}

.ssdn-btn-dark {
    background: #f7941d;
    color: #fff;
}

.ssdn-btn-light {
    background: #eef4fa;
    color: #12314b;
}

.ssdn-tabs {
    display: grid;
    gap: 14px;
}

.ssdn-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ssdn-tabbar button {
    border: 1px solid rgba(17, 42, 68, 0.12);
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    color: #12314b;
    cursor: pointer;
}

.ssdn-tabbar button.is-active {
    background: #0e3858;
    color: #fff;
    border-color: #0e3858;
}

.ssdn-tab {
    display: none;
}

.ssdn-tab.is-active {
    display: block;
}

.ssdn-related {
    margin-top: 34px;
}

.ssdn-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ssdn-related-grid .card {
    background: #fff;
    border: 1px solid rgba(17, 42, 68, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 30, 48, 0.05);
}

.ssdn-related-grid .card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ssdn-related-grid .card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.ssdn-related-grid .card .pad {
    padding: 14px;
}

.ssdn-sticky {
    position: sticky;
    top: 18px;
}

.ssdn-book-strip {
    margin-top: 22px;
    background: linear-gradient(135deg, #0e3858, #133b63);
    color: #fff;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ssdn-book-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1080px) {
    .ssdn-hero-grid,
    .ssdn-main-grid,
    .ssdn-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ssdn-main-grid {
        grid-template-columns: 1fr;
    }

    .ssdn-sticky {
        position: static;
    }
}

@media (max-width: 720px) {
    .ssdn-container {
        width: min(100%, calc(100% - 20px));
    }

    .ssdn-hero-grid,
    .ssdn-main-grid,
    .ssdn-related-grid {
        grid-template-columns: 1fr;
    }

    .ssdn-hero-title {
        font-size: 32px;
    }

    .ssdn-card {
        padding: 18px;
    }

    .ssdn-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ssdn-tabbar {
        gap: 8px;
    }

    .ssdn-tabbar button {
        padding: 9px 12px;
        font-size: 13px;
    }
}
