/*
Theme Name: MountainLife
Theme URI: https://yourmountainlife.com
Author: YourMountainLife
Author URI: https://yourmountainlife.com
Description: Custom theme for YourMountainLife multi-vendor chalet booking platform. Built for WooCommerce and WCFM integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: mountainlife
Tags: chalet, booking, woocommerce, multi-vendor, wcfm, ski, rental

YourMountainLife - Premium Multi-Vendor Chalet Booking Platform
*/

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
    /* Brand Colors */
    --yml-primary: #1e3a5f;
    --yml-secondary: #EDA86A;
    --yml-accent: #e8d5b7;
    --yml-dark: #0f1f33;
    --yml-light: #f8f6f3;
    --yml-cream: #FDF8F3;
    --yml-sand: #F5E6D3;

    /* Neutral Colors */
    --yml-white: #ffffff;
    --yml-gray-100: #f7f7f7;
    --yml-gray-200: #eeeeee;
    --yml-gray-300: #dddddd;
    --yml-gray-400: #cccccc;
    --yml-gray-500: #999999;
    --yml-gray-600: #666666;
    --yml-gray-700: #444444;
    --yml-gray-800: #333333;
    --yml-gray-900: #111111;

    /* Status Colors */
    --yml-success: #28a745;
    --yml-warning: #ffc107;
    --yml-error: #dc3545;
    --yml-info: #17a2b8;

    /* Typography */
    --yml-font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --yml-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --yml-text-xs: 0.75rem;
    --yml-text-sm: 0.875rem;
    --yml-text-base: 1rem;
    --yml-text-lg: 1.125rem;
    --yml-text-xl: 1.25rem;
    --yml-text-2xl: 1.5rem;
    --yml-text-3xl: 1.875rem;
    --yml-text-4xl: 2.25rem;
    --yml-text-5xl: 3rem;
    --yml-text-6xl: 3.75rem;

    /* Spacing */
    --yml-space-xs: 0.25rem;
    --yml-space-sm: 0.5rem;
    --yml-space-md: 1rem;
    --yml-space-lg: 1.5rem;
    --yml-space-xl: 2rem;
    --yml-space-2xl: 3rem;
    --yml-space-3xl: 4rem;
    --yml-space-4xl: 6rem;

    /* Border Radius */
    --yml-radius-sm: 0.25rem;
    --yml-radius-md: 0.5rem;
    --yml-radius-lg: 1rem;
    --yml-radius-xl: 1.5rem;
    --yml-radius-full: 9999px;

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

    /* Transitions */
    --yml-transition: 0.3s ease;

    /* Container */
    --yml-container-max: 1320px;
    --yml-container-padding: 1.5rem;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--yml-font-primary);
    font-size: var(--yml-text-base);
    line-height: 1.6;
    color: var(--yml-gray-700);
    background-color: var(--yml-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--yml-font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 var(--yml-space-md);
    color: var(--yml-primary);
}

h1 { font-size: var(--yml-text-5xl); }
h2 { font-size: var(--yml-text-4xl); }
h3 { font-size: var(--yml-text-3xl); }
h4 { font-size: var(--yml-text-2xl); }
h5 { font-size: var(--yml-text-xl); }
h6 { font-size: var(--yml-text-lg); }

p {
    margin: 0 0 var(--yml-space-md);
}

a {
    color: var(--yml-primary);
    text-decoration: none;
    transition: color var(--yml-transition);
}

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

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

/* ========================================
   Layout
   ======================================== */
.yml-container {
    width: 100%;
    max-width: var(--yml-container-max);
    margin: 0 auto;
    padding: 0 var(--yml-container-padding);
}

.yml-section {
    padding: var(--yml-space-4xl) 0;
}

/* Push inner-page content below the fixed header (76px) */
body:not(.home) .site-main {
    padding-top: 76px;
}

.yml-grid {
    display: grid;
    gap: var(--yml-space-lg);
}

.yml-flex {
    display: flex;
}

/* ========================================
   Buttons
   ======================================== */
.yml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--yml-space-sm);
    padding: 12px 28px;
    font-family: var(--yml-font-primary);
    font-size: var(--yml-text-sm);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--yml-radius-full);
    cursor: pointer;
    transition: all var(--yml-transition);
    text-decoration: none;
}

.yml-btn-primary {
    background-color: var(--yml-secondary);
    color: var(--yml-white);
    border-color: var(--yml-secondary);
}

.yml-btn-primary:hover {
    background-color: #d9954f;
    border-color: #d9954f;
    color: var(--yml-white);
}

.yml-btn-secondary {
    background-color: transparent;
    color: var(--yml-white);
    border-color: var(--yml-white);
}

.yml-btn-secondary:hover {
    background-color: var(--yml-white);
    color: var(--yml-primary);
}

.yml-btn-outline {
    background-color: transparent;
    color: var(--yml-primary);
    border-color: var(--yml-primary);
}

.yml-btn-outline:hover {
    background-color: var(--yml-primary);
    color: var(--yml-white);
}

.yml-btn-dark {
    background-color: var(--yml-primary);
    color: var(--yml-white);
    border-color: var(--yml-primary);
}

.yml-btn-dark:hover {
    background-color: var(--yml-dark);
    border-color: var(--yml-dark);
}

/* ========================================
   Header
   ======================================== */
.yml-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--yml-transition);
}

.yml-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: transparent;
}

.yml-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.yml-logo {
    display: flex;
    align-items: center;
}

.yml-logo img,
.yml-logo .yml-logo-img {
    height: 50px;
    width: auto;
}

.yml-logo a {
    text-decoration: none;
}

.yml-logo .site-title {
    font-family: var(--yml-font-heading);
    font-size: var(--yml-text-xl);
    font-weight: 700;
    color: var(--yml-primary);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.yml-logo .site-title span {
    display: block;
}

.yml-logo .site-title .yml-logo-text-your {
    font-size: 11px;
    font-family: var(--yml-font-primary);
    font-weight: 500;
    color: var(--yml-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.yml-logo .site-title .yml-logo-text-mountain {
    color: var(--yml-primary);
    font-size: 20px;
    letter-spacing: 0.5px;
}

.yml-nav {
    display: flex;
    align-items: center;
}

.yml-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--yml-space-sm);
}

.yml-nav-menu li {
    position: relative;
}

.yml-nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--yml-gray-700);
    padding: 8px 14px;
    border-radius: var(--yml-radius-full);
    position: relative;
    transition: all var(--yml-transition);
}

.yml-nav-menu a:hover {
    color: var(--yml-primary);
    background-color: var(--yml-cream);
}

.yml-nav-menu a.active {
    color: var(--yml-primary);
    background-color: var(--yml-cream);
    font-weight: 600;
}

.yml-nav-menu .menu-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.yml-nav-menu a:hover .menu-icon {
    opacity: 1;
}

/* Dropdown Menu */
.yml-has-dropdown {
    position: relative;
}

.yml-has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.yml-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 220px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    border: 1px solid var(--yml-gray-100, #f3f4f6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Invisible bridge to prevent hover loss between trigger and dropdown */
.yml-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.yml-has-dropdown:hover .yml-dropdown,
.yml-has-dropdown:focus-within .yml-dropdown,
.yml-has-dropdown.yml-dropdown-open .yml-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.yml-has-dropdown:hover > a::after,
.yml-has-dropdown.yml-dropdown-open > a::after {
    transform: rotate(180deg);
}

.yml-dropdown li {
    margin: 0;
}

.yml-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--yml-gray-700, #374151);
    border-radius: 0;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.yml-dropdown a:hover {
    background: var(--yml-cream, #FDF8F3);
    color: var(--yml-primary, #1e3a5f);
}

/* Mobile menu divider */
.yml-mobile-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 0;
    padding: 0 !important;
}

.yml-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yml-header-actions .yml-account-link,
.yml-header-actions .yml-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--yml-gray-600);
    border-radius: var(--yml-radius-full);
    transition: all var(--yml-transition);
}

.yml-header-actions .yml-account-link:hover,
.yml-header-actions .yml-cart-link:hover {
    color: var(--yml-primary);
    background-color: var(--yml-cream);
}

.yml-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--yml-secondary);
    color: var(--yml-white) !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--yml-radius-full);
    text-decoration: none;
    transition: all var(--yml-transition);
    white-space: nowrap;
}

.yml-header-cta:hover {
    background: #d9944f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 168, 106, 0.4);
}

.yml-mobile-cta {
    display: block;
    margin: 1rem 1.5rem;
    padding: 14px 24px;
    background: var(--yml-secondary);
    color: var(--yml-white) !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--yml-radius);
    text-decoration: none;
    text-align: center;
    transition: all var(--yml-transition);
}

.yml-mobile-cta:hover {
    background: #d9944f;
}

.yml-cart-link {
    position: relative;
}

.yml-cart-link .cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    background: var(--yml-secondary);
    color: var(--yml-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--yml-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.yml-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--yml-space-sm);
    color: var(--yml-gray-700);
}

/* ========================================
   Hero Section with Search
   ======================================== */
.yml-hero {
    position: relative;
    padding: 150px 0 90px;
    background: linear-gradient(145deg, var(--yml-cream) 0%, #f0ebe4 40%, var(--yml-white) 100%);
    overflow: hidden;
}

.yml-hero-bg-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 65%;
    height: 120%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><path fill="%23F5E6D3" d="M400,0 C600,0 800,200 800,400 L800,600 L0,600 L0,400 C0,200 200,0 400,0 Z" opacity="0.4"/></svg>') no-repeat center;
    background-size: cover;
    z-index: 0;
}

.yml-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--yml-white), transparent);
    z-index: 0;
}

.yml-hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.yml-hero-subtitle {
    font-size: var(--yml-text-xs);
    font-weight: 600;
    color: var(--yml-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--yml-space-md);
}

.yml-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    color: var(--yml-primary);
    margin-bottom: var(--yml-space-md);
    line-height: 1.15;
}

.yml-hero h1 .highlight {
    color: var(--yml-secondary);
    font-style: italic;
}

/* Search Box */
.yml-search-box {
    background: var(--yml-white);
    border-radius: var(--yml-radius-lg);
    box-shadow: var(--yml-shadow-lg);
    padding: var(--yml-space-lg);
    margin-top: var(--yml-space-xl);
}

.yml-search-form {
    display: flex;
    gap: var(--yml-space-md);
    align-items: flex-end;
    flex-wrap: wrap;
}

.yml-search-field {
    flex: 1;
    min-width: 200px;
}

.yml-search-field label {
    display: block;
    font-size: var(--yml-text-sm);
    font-weight: 600;
    color: var(--yml-gray-600);
    margin-bottom: var(--yml-space-xs);
}

.yml-search-field select,
.yml-search-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--yml-gray-300);
    border-radius: var(--yml-radius-md);
    font-size: var(--yml-text-base);
    color: var(--yml-gray-700);
    background-color: var(--yml-white);
    transition: border-color var(--yml-transition);
}

.yml-search-field select:focus,
.yml-search-field input:focus {
    outline: none;
    border-color: var(--yml-secondary);
}

.yml-search-btn {
    padding: 12px 32px;
    background: var(--yml-secondary);
    color: var(--yml-white);
    border: none;
    border-radius: var(--yml-radius-md);
    font-size: var(--yml-text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--yml-transition);
}

.yml-search-btn:hover {
    background: #d9954f;
}

/* ========================================
   Featured Section
   ======================================== */
.yml-featured-section {
    padding: var(--yml-space-4xl) 0;
    background: var(--yml-white);
}

.yml-section-header {
    margin-bottom: var(--yml-space-2xl);
}

.yml-section-header h2 {
    font-size: var(--yml-text-3xl);
    margin-bottom: var(--yml-space-sm);
    letter-spacing: -0.02em;
}

.yml-section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--yml-space-md);
}

.yml-section-tabs {
    display: flex;
    gap: var(--yml-space-sm);
}

.yml-tab-btn {
    padding: 8px 20px;
    background: var(--yml-gray-100);
    border: none;
    border-radius: var(--yml-radius-full);
    font-size: var(--yml-text-sm);
    font-weight: 500;
    color: var(--yml-gray-600);
    cursor: pointer;
    transition: all var(--yml-transition);
}

.yml-tab-btn:hover,
.yml-tab-btn.active {
    background: var(--yml-secondary);
    color: var(--yml-white);
}

/* ========================================
   Chalet Cards
   ======================================== */
.yml-chalets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--yml-space-lg);
}

.yml-chalet-card {
    background: var(--yml-white);
    border-radius: var(--yml-radius-lg);
    overflow: hidden;
    /* box-shadow: var(--yml-shadow-md); */
    transition: transform var(--yml-transition), box-shadow var(--yml-transition);
}

.yml-chalet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--yml-shadow-xl);
}

.yml-chalet-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.yml-chalet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--yml-transition);
}

.yml-chalet-card:hover .yml-chalet-card-image img {
    transform: scale(1.05);
}

.yml-chalet-badge {
    position: absolute;
    top: var(--yml-space-md);
    left: var(--yml-space-md);
    background: var(--yml-white);
    color: var(--yml-gray-700);
    padding: 4px 12px;
    border-radius: var(--yml-radius-full);
    font-size: var(--yml-text-xs);
    font-weight: 600;
}

.yml-chalet-wishlist {
    position: absolute;
    top: var(--yml-space-md);
    right: var(--yml-space-md);
    width: 36px;
    height: 36px;
    background: var(--yml-white);
    border: none;
    border-radius: var(--yml-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--yml-transition);
}

.yml-chalet-wishlist:hover {
    background: var(--yml-secondary);
    color: var(--yml-white);
}

.yml-chalet-card-content {
    padding: var(--yml-space-md) var(--yml-space-lg);
}

.yml-chalet-title {
    font-family: var(--yml-font-heading);
    font-size: var(--yml-text-base);
    font-weight: 600;
    margin-bottom: var(--yml-space-xs);
    color: var(--yml-gray-800);
}

.yml-chalet-title a {
    color: inherit;
}

.yml-chalet-title a:hover {
    color: var(--yml-secondary);
}

.yml-chalet-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--yml-text-sm);
    color: var(--yml-gray-500);
    margin-bottom: var(--yml-space-md);
}

.yml-chalet-location svg {
    width: 14px;
    height: 14px;
}

.yml-chalet-meta {
    display: flex;
    gap: var(--yml-space-md);
    margin-bottom: var(--yml-space-md);
    padding-bottom: var(--yml-space-md);
    border-bottom: 1px solid var(--yml-gray-200);
}

.yml-chalet-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--yml-text-sm);
    color: var(--yml-gray-600);
}

.yml-chalet-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.yml-chalet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yml-chalet-price {
    font-size: var(--yml-text-lg);
    font-weight: 700;
    color: var(--yml-primary);
}

.yml-chalet-price span {
    font-size: var(--yml-text-sm);
    font-weight: 400;
    color: var(--yml-gray-500);
}

.yml-chalet-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--yml-text-sm);
    color: var(--yml-gray-600);
}

.yml-chalet-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--yml-secondary);
    stroke: var(--yml-secondary);
}

/* ========================================
   Ski Section
   ======================================== */
.yml-ski-section {
    position: relative;
    padding: var(--yml-space-4xl) 0;
    background: var(--yml-cream);
    overflow: hidden;
}

.yml-ski-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--yml-space-4xl);
    align-items: center;
}

.yml-ski-text h2 {
    font-size: var(--yml-text-4xl);
    margin-bottom: var(--yml-space-lg);
}

.yml-ski-text p {
    font-size: var(--yml-text-lg);
    color: var(--yml-gray-600);
    margin-bottom: var(--yml-space-xl);
}

.yml-ski-features {
    display: flex;
    flex-direction: column;
    gap: var(--yml-space-md);
    margin-bottom: var(--yml-space-xl);
}

.yml-ski-feature {
    display: flex;
    align-items: center;
    gap: var(--yml-space-md);
}

.yml-ski-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--yml-secondary);
    border-radius: var(--yml-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yml-white);
    flex-shrink: 0;
}

.yml-ski-feature-text h4 {
    font-size: var(--yml-text-base);
    font-weight: 600;
    margin: 0;
    color: var(--yml-gray-800);
}

.yml-ski-feature-text p {
    font-size: var(--yml-text-sm);
    color: var(--yml-gray-500);
    margin: 0;
}

.yml-ski-image {
    position: relative;
}

.yml-ski-image img {
    width: 100%;
    height: auto;
    border-radius: var(--yml-radius-xl);
}

/* ========================================
   Explore Area Section
   ======================================== */
.yml-explore-section {
    position: relative;
    padding: var(--yml-space-4xl) 0;
    overflow: hidden;
}

.yml-explore-card {
    position: relative;
    border-radius: var(--yml-radius-xl);
    overflow: hidden;
    height: 400px;
}

.yml-explore-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yml-explore-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--yml-space-2xl);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--yml-white);
}

.yml-explore-card-overlay h3 {
    color: var(--yml-white);
    font-size: var(--yml-text-2xl);
    margin-bottom: var(--yml-space-sm);
}

.yml-explore-card-overlay p {
    font-size: var(--yml-text-sm);
    opacity: 0.9;
    margin-bottom: var(--yml-space-md);
}

/* ========================================
   Testimonials Section
   ======================================== */
.yml-testimonials-section {
    padding: var(--yml-space-4xl) 0;
    background: var(--yml-white);
}

.yml-testimonials-header {
    text-align: center;
    margin-bottom: var(--yml-space-2xl);
}

.yml-testimonials-header h2 {
    margin-bottom: var(--yml-space-sm);
}

.yml-testimonials-header p {
    color: var(--yml-gray-500);
}

.yml-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--yml-space-xl);
}

.yml-testimonial-card {
    background: var(--yml-white);
    border: 1px solid var(--yml-gray-200);
    border-radius: var(--yml-radius-xl);
    padding: var(--yml-space-2xl) var(--yml-space-xl);
    position: relative;
    transition: transform var(--yml-transition), box-shadow var(--yml-transition);
}

.yml-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yml-shadow-lg);
}

.yml-testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 4rem;
    font-family: var(--yml-font-heading);
    color: var(--yml-secondary);
    opacity: 0.2;
    line-height: 1;
}

.yml-testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--yml-space-md);
}

.yml-testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--yml-secondary);
}

.yml-testimonial-text {
    font-size: var(--yml-text-base);
    color: var(--yml-gray-700);
    line-height: 1.75;
    margin-bottom: var(--yml-space-lg);
    font-style: italic;
}

.yml-testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--yml-space-md);
}

.yml-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--yml-radius-full);
    object-fit: cover;
}

.yml-testimonial-info h4 {
    font-size: var(--yml-text-base);
    font-weight: 600;
    margin: 0;
    color: var(--yml-gray-800);
}

.yml-testimonial-info span {
    font-size: var(--yml-text-sm);
    color: var(--yml-gray-500);
}

/* ========================================
   About / Discover More Section
   ======================================== */
.yml-about-section {
    padding: var(--yml-space-4xl) 0;
    background: var(--yml-white);
}

.yml-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--yml-space-4xl);
    align-items: center;
}

.yml-about-text h2 {
    font-size: var(--yml-text-4xl);
    margin-bottom: var(--yml-space-lg);
}

.yml-about-text h2 .highlight {
    color: var(--yml-secondary);
}

.yml-about-text p {
    font-size: var(--yml-text-base);
    color: var(--yml-gray-600);
    line-height: 1.8;
    margin-bottom: var(--yml-space-xl);
}

.yml-about-links {
    display: flex;
    gap: var(--yml-space-xl);
    margin-bottom: var(--yml-space-xl);
}

.yml-about-links a {
    font-weight: 600;
    color: var(--yml-gray-700);
    text-decoration: underline;
}

.yml-about-links a:hover {
    color: var(--yml-secondary);
}

.yml-about-image {
    position: relative;
}

.yml-about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.yml-about-image-circle {
    width: 400px;
    height: 400px;
    border-radius: var(--yml-radius-full);
    overflow: hidden;
    border: 8px solid var(--yml-sand);
}

.yml-about-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Newsletter Section
   ======================================== */
.yml-newsletter-section {
    background: linear-gradient(135deg, var(--yml-primary) 0%, #0f2847 100%);
    padding: var(--yml-space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.yml-newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237, 168, 106, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.yml-newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--yml-space-2xl);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.yml-newsletter-title {
    display: flex;
    flex-direction: column;
    gap: var(--yml-space-xs);
}

.yml-newsletter-title h3 {
    color: var(--yml-white);
    font-size: var(--yml-text-2xl);
    margin: 0;
    letter-spacing: -0.02em;
}

.yml-newsletter-title span {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--yml-text-sm);
}

.yml-newsletter-form {
    display: flex;
    gap: var(--yml-space-sm);
    flex: 1;
    max-width: 480px;
}

.yml-newsletter-form input {
    flex: 1;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--yml-radius-full);
    font-size: var(--yml-text-base);
    font-family: var(--yml-font-primary);
    background: rgba(255, 255, 255, 0.08);
    color: var(--yml-white);
    transition: all var(--yml-transition);
}

.yml-newsletter-form input:focus {
    outline: none;
    border-color: var(--yml-secondary);
    background: rgba(255, 255, 255, 0.12);
}

.yml-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.yml-newsletter-form button {
    width: 50px;
    height: 50px;
    background: var(--yml-secondary);
    border: none;
    border-radius: var(--yml-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--yml-transition);
    color: var(--yml-white);
    flex-shrink: 0;
}

.yml-newsletter-form button:hover {
    background: #d9954f;
    transform: translateX(3px);
}

/* ========================================
   Footer
   ======================================== */
.yml-footer {
    background-color: var(--yml-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--yml-space-4xl) 0 0;
}

.yml-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--yml-space-2xl);
    padding-bottom: var(--yml-space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yml-footer-brand .yml-logo .site-title .yml-logo-text-your {
    color: var(--yml-secondary);
}

.yml-footer-brand .yml-logo .site-title .yml-logo-text-mountain {
    color: var(--yml-white);
}

.yml-footer-logo-link {
    display: inline-block;
}

.yml-footer-logo-img {
    height: 50px;
    width: auto;
}

.yml-footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--yml-text-sm);
    line-height: 1.75;
    margin-top: var(--yml-space-lg);
}

.yml-footer-col h4 {
    color: var(--yml-white);
    font-family: var(--yml-font-primary);
    font-size: var(--yml-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--yml-space-lg);
}

.yml-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yml-footer-col li {
    margin-bottom: 10px;
}

.yml-footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--yml-text-sm);
    transition: all var(--yml-transition);
}

.yml-footer-col a:hover {
    color: var(--yml-secondary);
    padding-left: 4px;
}

.yml-footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--yml-space-sm);
    font-size: var(--yml-text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--yml-space-sm);
}

.yml-footer-contact p strong {
    color: rgba(255, 255, 255, 0.85);
}

.yml-footer-contact p a {
    color: rgba(255, 255, 255, 0.6);
}

.yml-footer-social {
    display: flex;
    gap: 10px;
    margin-top: var(--yml-space-lg);
}

.yml-footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--yml-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--yml-transition);
}

.yml-footer-social a:hover {
    background: var(--yml-secondary);
    border-color: var(--yml-secondary);
    color: var(--yml-white);
    transform: translateY(-2px);
}

.yml-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--yml-space-lg) 0;
}

.yml-footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--yml-text-xs);
}

/* Footer Newsletter */
.yml-footer-newsletter {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--yml-space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.yml-footer-newsletter-text h4 {
    color: var(--yml-white);
    font-family: var(--yml-font-heading);
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
}

.yml-footer-newsletter-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.yml-footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex: 0 1 420px;
}

.yml-footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--yml-radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--yml-white);
    font-size: 0.875rem;
}

.yml-footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.yml-footer-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--yml-secondary);
    background: rgba(255, 255, 255, 0.12);
}

.yml-footer-newsletter-form button {
    padding: 10px 24px;
    background: var(--yml-secondary);
    color: var(--yml-white);
    border: none;
    border-radius: var(--yml-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--yml-transition);
}

.yml-footer-newsletter-form button:hover {
    background: #d9944f;
}

/* Footer Partner Login */
.yml-footer-partner-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    transition: all var(--yml-transition);
}

.yml-footer-partner-login:hover {
    color: var(--yml-secondary);
}

.yml-footer-partner-login svg {
    opacity: 0.6;
}

.yml-footer-partner-login:hover svg {
    opacity: 1;
}

/* ========================================
   Section Decorations (straight edges)
   ======================================== */
.yml-wave-top,
.yml-wave-bottom {
    position: relative;
}

.yml-wave-top::before,
.yml-wave-bottom::after {
    display: none;
}

/* ========================================
   WooCommerce Overrides
   ======================================== */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--yml-secondary) !important;
    color: var(--yml-white) !important;
    border-radius: var(--yml-radius-full) !important;
    font-weight: 600 !important;
    border: none !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #d9954f !important;
    color: var(--yml-white) !important;
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--yml-secondary) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--yml-secondary) !important;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .yml-chalets-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .yml-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .yml-footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .yml-header-cta {
        display: none;
    }

    .yml-nav-menu {
        display: none;
    }

    .yml-mobile-toggle {
        display: block;
    }

    .yml-header-inner {
        height: 70px;
    }

    .yml-ski-content,
    .yml-about-content {
        grid-template-columns: 1fr;
        gap: var(--yml-space-2xl);
    }

    .yml-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .yml-about-image-circle {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --yml-text-5xl: 2.5rem;
        --yml-text-4xl: 2rem;
        --yml-text-3xl: 1.5rem;
    }

    .yml-section {
        padding: var(--yml-space-2xl) 0;
    }

    .yml-hero {
        padding: 120px 0 60px;
    }

    .yml-chalets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .yml-search-form {
        flex-direction: column;
    }

    .yml-search-field {
        width: 100%;
    }

    .yml-search-btn {
        width: 100%;
    }

    .yml-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .yml-footer-brand {
        grid-column: span 2;
    }

    .yml-newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .yml-newsletter-form {
        width: 100%;
        max-width: none;
    }

    .yml-footer-newsletter {
        flex-direction: column;
        text-align: center;
    }

    .yml-footer-newsletter-form {
        flex: 1 1 100%;
        width: 100%;
    }

    .yml-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 580px) {
    .yml-chalets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .yml-footer-grid {
        grid-template-columns: 1fr;
    }

    .yml-footer-brand {
        grid-column: span 1;
    }

    .yml-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--yml-space-md);
    }

    .yml-btn {
        width: 100%;
    }
}

/* Mobile Menu */
body.menu-open {
    overflow: hidden;
}

.yml-mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1001;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.yml-mobile-menu.active {
    display: block;
}

.yml-mobile-menu-inner {
    padding: 8px 0 24px;
}

.yml-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yml-mobile-nav-menu li {
    border-bottom: 1px solid var(--yml-gray-200, #eee);
}

.yml-mobile-divider {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 8px;
    background: var(--yml-gray-100, #f7f7f7);
    list-style: none;
}

/* Remove focus outline / tap highlight on mobile toggle */
.yml-mobile-toggle:focus,
.yml-mobile-toggle:active,
.yml-mobile-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}
.yml-mobile-toggle.active {
    outline: none !important;
    box-shadow: none !important;
}

.yml-mobile-nav-menu a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--yml-primary, #1e3a5f);
    text-decoration: none;
    transition: all 0.15s;
}

.yml-mobile-nav-menu a:hover,
.yml-mobile-nav-menu a:active {
    color: var(--yml-secondary, #EDA86A);
    background: var(--yml-cream, #FDF8F3);
}

/* Mobile hamburger active state — swap icons */
.yml-mobile-toggle .yml-icon-close { display: none !important; }
.yml-mobile-toggle .yml-icon-menu { display: block !important; }
.yml-mobile-toggle.active .yml-icon-close { display: block !important; }
.yml-mobile-toggle.active .yml-icon-menu { display: none !important; }
