/*
Theme Name: Luxury Tours
Theme URI: https://luxurysand.com
Author: Azeem Ushan
Author URI: https://linkedin.com/in/azeemushan
Description: A premium, mobile-first WordPress theme for Luxury Sand FZE. Features experience discovery, WooCommerce integration, and app-like UX. Built for tourism packages and tours in Dubai.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxury-tours
Tags: woocommerce, mobile-first, tourism, deals, custom-colors, custom-menu, featured-images, rtl-language-support

Developer: Azeem Ushan - CEO ZetaSoft.org
Contact: info@zetasoft.org
*/

/* ==========================================================================
   Navigation Dropdown Menus
   ========================================================================== */
.lt-has-dropdown:hover>.lt-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================================================
   WordPress Custom Logo Size Constraint
   WooCommerce adds `.woocommerce-page img { height: auto }` which overrides
   Tailwind's `.h-8`. We need very aggressive selectors to guarantee the logo
   stays small on ALL pages (including mobile WooCommerce product pages).
   ========================================================================== */
header img.h-8,
header img[alt],
.woocommerce-page header img,
.woocommerce header img,
body header img.h-8 {
    height: 2rem !important;
    max-height: 2rem !important;
    width: auto !important;
    object-fit: contain !important;
}

.custom-logo-link,
.custom-logo-link img,
img.custom-logo {
    max-height: 2rem !important;
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
}

.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
}


/* ==========================================================================
   CSS Variables (Design Tokens from Style Guide)
   ========================================================================== */
:root {
    /* Gold Palette */
    --color-gold-400: #A8912E;
    --color-gold-500: #857020;
    --color-gold-600: #6B5A1A;

    /* Neutrals */
    --color-obsidian-800: #333333;
    --color-obsidian-900: #1A1A1A;
    --color-sand-50: #FDFBF7;
    --color-sand-100: #F5F5F5;
    --color-white: #FFFFFF;

    /* Accents */
    --color-success: #22C55E;
    --color-error: #EF4444;
    --color-info: #3B82F6;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: var(--font-family);
    color: var(--color-obsidian-800);
    background-color: var(--color-sand-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Mobile bottom nav padding */
body.has-bottom-nav {
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    body.has-bottom-nav {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   Utility Classes (WordPress Specific)
   ========================================================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ==========================================================================
   Navigation Menus
   ========================================================================== */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.main-navigation ul ul ul {
    top: 0;
    left: 100%;
}

.main-navigation ul>li:hover>ul,
.main-navigation ul>li:focus-within>ul {
    display: block;
}

.main-navigation ul ul li {
    position: relative;
}

.main-navigation ul ul a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--color-obsidian-800);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.875rem;
}

.main-navigation ul ul a:hover {
    background-color: var(--color-sand-100);
    color: var(--color-gold-500);
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--color-gold-500) !important;
}

.woocommerce-message::before {
    color: var(--color-gold-500) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--color-gold-500) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--color-gold-600) !important;
}

/* Proceed to Checkout button on Cart page */
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background-color: var(--color-gold-500) !important;
    color: var(--color-white) !important;
    padding: 14px 24px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    margin-top: 12px !important;
}

.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover {
    background-color: var(--color-gold-600) !important;
}

/* WooCommerce alt/secondary buttons */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--color-gold-500) !important;
    color: var(--color-white) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--color-gold-600) !important;
}

/* Checkout page form styles */
.woocommerce-checkout #payment #place_order {
    background-color: var(--color-gold-500) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 14px 24px !important;
    width: 100% !important;
}

.woocommerce-checkout #payment #place_order:hover {
    background-color: var(--color-gold-600) !important;
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid #e5e7eb;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ==========================================================================
   Pagination Styles (Archive / Experience page)
   ========================================================================== */
nav[aria-label="Pagination"] .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
}

nav[aria-label="Pagination"] .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

nav[aria-label="Pagination"] .page-numbers.current {
    background: #857020;
    color: #fff;
    border-color: #857020;
    font-weight: 700;
}

nav[aria-label="Pagination"] .page-numbers.prev,
nav[aria-label="Pagination"] .page-numbers.next {
    gap: 0.25rem;
    padding: 0 0.75rem;
    font-weight: 600;
    color: #857020;
    border-color: #857020;
}

nav[aria-label="Pagination"] .page-numbers.prev:hover,
nav[aria-label="Pagination"] .page-numbers.next:hover {
    background: #857020;
    color: #fff;
}

nav[aria-label="Pagination"] .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
    min-width: auto;
    padding: 0 0.25rem;
}

/* ==========================================================================
   Typography / Prose Styles
   Tailwind's preflight resets all HTML elements (h2, ul, li, p, etc.) to
   look like plain text. The @tailwindcss/typography plugin ("prose") is NOT
   in our compiled CSS. So we add our own styles for WordPress content areas.
   ========================================================================== */

/* Target: product descriptions, blog posts, any WordPress content */
.prose h2,
.entry-content h2,
.woocommerce-product-details__short-description h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-obsidian-900);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.prose h3,
.entry-content h3,
.woocommerce-product-details__short-description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-obsidian-900);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose h4,
.entry-content h4,
.woocommerce-product-details__short-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-obsidian-900);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose p,
.entry-content p,
.woocommerce-product-details__short-description p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.prose ul,
.entry-content ul,
.woocommerce-product-details__short-description ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.prose ol,
.entry-content ol,
.woocommerce-product-details__short-description ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.prose li,
.entry-content li,
.woocommerce-product-details__short-description li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.prose li::marker,
.entry-content li::marker {
    color: var(--color-gold-500);
}

.prose strong,
.entry-content strong,
.woocommerce-product-details__short-description strong {
    font-weight: 700;
    color: var(--color-obsidian-900);
}

.prose a,
.entry-content a {
    color: var(--color-gold-500);
    text-decoration: underline;
}

.prose a:hover,
.entry-content a:hover {
    color: var(--color-gold-600);
}

.prose blockquote,
.entry-content blockquote {
    border-left: 4px solid var(--color-gold-500);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.prose hr,
.entry-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.prose img,
.entry-content img {
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

/* Nested lists */
.prose ul ul,
.prose ol ul,
.entry-content ul ul,
.entry-content ol ul {
    list-style-type: circle;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.prose ul ol,
.prose ol ol,
.entry-content ul ol,
.entry-content ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}