/* 
 * Modern Home Page Styles for Vintage Rafting
 * Colors:
 * - Vintage Red: #E63946
 * - Dark Blue: #1D3557
 * - Cream/Beige: #F1FAEE
 */

 :root {
    --vr-primary: #E63946;
    --vr-primary-hover: #D62828;
    --vr-secondary: #1D3557;
    --vr-light: #F1FAEE;
    --vr-text: #333333;
    --vr-bg: #FAFAFA;
}

body {
    background-color: var(--vr-bg);
}

.vr-home-modern {
    font-family: 'Inter', sans-serif;
    color: var(--vr-text);
}

/* HERO SECTION */
.vr-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vr-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 53, 87, 0.4); /* Dark blue overlay */
    z-index: 1;
}

.vr-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 900px;
}

.vr-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.vr-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* GLASSMORPHISM FORM */
.vr-glass-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.vr-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.vr-form-group {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.vr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.vr-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--vr-secondary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.vr-input:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.5);
}

.vr-form-submit {
    flex: 0 0 auto;
}

.vr-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vr-btn-primary {
    background-color: var(--vr-primary);
    color: #fff;
}

/* ==========================================================================
   RELATED TOURS (YOU MAY ALSO LIKE)
   ========================================================================== */
.vr-related-tours-wrapper {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.vr-related-tours-wrapper h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #1e293b !important;
    margin-bottom: 40px !important;
    text-align: center !important;
    position: relative !important;
}

.vr-related-tours-wrapper h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #ea580c; /* Orange accent */
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Force modern grid for related tours (Bulletproof) */
.vr-related-tours-wrapper .vr-modern-related-tours > .atgrid__row,
.vr-related-tours-wrapper .vr-modern-related-tours > .row,
.vr-related-tours-wrapper .atgrid > .atgrid__row,
.vr-related-tours-wrapper > div > div {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    margin: 0 !important;
}

.vr-related-tours-wrapper .vr-modern-related-tours > .atgrid__row > div,
.vr-related-tours-wrapper .vr-modern-related-tours > .row > div,
.vr-related-tours-wrapper .atgrid > .atgrid__row > div,
.vr-related-tours-wrapper > div > div > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    flex: none !important;
}

/* Responsive constraints */
@media (max-width: 1199px) {
    .vr-related-tours-wrapper .vr-modern-related-tours > .atgrid__row,
    .vr-related-tours-wrapper .vr-modern-related-tours > .row,
    .vr-related-tours-wrapper .atgrid > .atgrid__row,
    .vr-related-tours-wrapper > div > div {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .vr-related-tours-wrapper .vr-modern-related-tours > .atgrid__row,
    .vr-related-tours-wrapper .vr-modern-related-tours > .row,
    .vr-related-tours-wrapper .atgrid > .atgrid__row,
    .vr-related-tours-wrapper > div > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .vr-related-tours-wrapper .vr-modern-related-tours > .atgrid__row,
    .vr-related-tours-wrapper .vr-modern-related-tours > .row,
    .vr-related-tours-wrapper .atgrid > .atgrid__row,
    .vr-related-tours-wrapper > div > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .vr-related-tours-wrapper h2 {
        font-size: 32px !important;
    }
}

/* Hide clearfix in grid */
.vr-related-tours-wrapper .vr-modern-related-tours > .atgrid__row > .clearfix,
.vr-related-tours-wrapper .vr-modern-related-tours > .row > .clearfix,
.vr-related-tours-wrapper .atgrid > .atgrid__row > .clearfix {
    display: none !important;
}

/* ==========================================================================
   WordPress Nav Menu Styling (Tailwind + Custom)
   ========================================================================== */

/* Desktop Menu (inside nav[role="navigation"]) */
nav[role="navigation"] .menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav[role="navigation"] .menu > li {
  position: relative;
  padding: 1.5rem 0;
}

nav[role="navigation"] .menu > li > a {
  position: relative;
  transition: color 0.3s ease;
}

nav[role="navigation"] .menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vr-primary);
  transition: width 0.3s ease;
}

nav[role="navigation"] .menu > li:hover > a::after {
  width: 100%;
}

nav[role="navigation"] .menu > li:hover > a {
  color: var(--vr-primary);
}

/* Dropdown (Sub-menu) Base Styles */
nav[role="navigation"] .menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* Show Sub-menu on Hover */
nav[role="navigation"] .menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sub-menu Items */
nav[role="navigation"] .menu .sub-menu li {
  width: 100%;
  position: relative; /* For nested sub-menus */
}

nav[role="navigation"] .menu .sub-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--vr-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

nav[role="navigation"] .menu .sub-menu li:hover > a {
  background-color: rgba(230, 57, 70, 0.05); /* very light vintage red */
  color: var(--vr-primary);
  padding-left: 1.75rem; /* Slight indent animation */
}

/* Nested Sub-menus (3rd level) */
nav[role="navigation"] .menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.5rem;
}

nav[role="navigation"] .menu .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile Menu Overlay Styles */
#vr-mobile-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

#vr-mobile-menu .menu li {
  width: 100%;
}

#vr-mobile-menu .menu .sub-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  margin-top: 0.5rem;
}

#vr-mobile-menu .menu li:hover > .sub-menu {
  display: flex;
}

#vr-mobile-menu .menu .sub-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
}

#vr-mobile-menu .menu .sub-menu a:hover {
  color: white;
}
.vr-btn-primary:hover {
    background-color: var(--vr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* SECTION GLOBAL */
.vr-section {
    padding: 80px 0;
}

.vr-section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--vr-secondary);
    margin-bottom: 50px;
    font-weight: 700;
}

/* TOUR CARDS */
.vr-tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.vr-tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.vr-tour-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.vr-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vr-tour-card:hover .vr-tour-image img {
    transform: scale(1.1);
}

.vr-tour-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--vr-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.vr-tour-content {
    padding: 25px;
    text-align: center;
}

.vr-tour-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--vr-secondary);
}

.vr-tour-title a {
    color: inherit;
    text-decoration: none;
}

.vr-tour-title a:hover {
    color: var(--vr-primary);
}

.vr-btn-secondary {
    background-color: var(--vr-secondary);
    color: #fff;
}

.vr-btn-secondary:hover {
    background-color: #11223a;
    color: #fff;
}

.vr-btn-block {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .vr-hero-title {
        font-size: 2.5rem;
    }
    .vr-search-form {
        flex-direction: column;
    }
    .vr-form-group {
        width: 100%;
    }
}

/* ==========================================================================
   Modern WooCommerce Cart & Checkout Styling
   ========================================================================== */

/* Layout: Flexbox grid for desktop */
@media (min-width: 992px) {
    /* Checkout Layout */
    .woocommerce-checkout form.checkout.woocommerce-checkout {
        display: flex !important;
        flex-wrap: wrap;
        gap: 40px;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
    }
    .woocommerce-checkout .checkout-box {
        flex: 1 1 55% !important;
        width: 55% !important;
        margin-bottom: 0 !important;
        float: none !important;
    }
    .woocommerce-checkout .product-box {
        flex: 1 1 40% !important;
        width: 40% !important;
        position: sticky;
        top: 40px;
        z-index: 10;
        float: none !important;
    }
    .woocommerce-checkout .col2-set {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    /* Cart Layout */
    .woocommerce-cart .product-box.margin-bottom {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 40px;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .woocommerce-cart .product-box > form {
        flex: 1 1 60% !important;
        width: 60% !important;
        background: #fff;
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 35% !important;
        width: 35% !important;
        float: none !important;
        position: sticky;
        top: 40px;
    }
    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        float: none !important;
    }
}

/* Card Styling enhancements */
.woocommerce-checkout .checkout-box,
.woocommerce-checkout .product-box,
.woocommerce-cart .cart-collaterals .cart_totals .product-box {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0 !important;
}

/* Form Fields Modernization */
.woocommerce form .form-row {
    margin-bottom: 20px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fcfcfc !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    min-height: 48px !important;
    box-sizing: border-box;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.select2-container.select2-container--open .select2-selection {
    border-color: var(--vr-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1) !important;
    outline: none;
}
.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--vr-secondary);
    font-size: 14px;
}
.select2-container .select2-selection .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 0 !important;
}
.select2-container .select2-selection .select2-selection__arrow {
    height: 48px !important;
}

/* Side-by-side inputs fix */
@media (min-width: 768px) {
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last {
        width: 48% !important;
        float: left !important;
    }
    .woocommerce form .form-row-last {
        float: right !important;
    }
}
@media (max-width: 767px) {
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last {
        width: 100% !important;
        float: none !important;
    }
}

/* Buttons */
.woocommerce input.button,
.woocommerce button.button,
.woocommerce a.button {
    background-color: var(--vr-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    border: none !important;
    height: auto !important;
    line-height: normal !important;
    box-shadow: none !important;
}
.woocommerce input.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background-color: var(--vr-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3) !important;
}

/* Review Table Modernization */
.woocommerce table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    width: 100%;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 15px 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}
.woocommerce table.shop_table th {
    font-weight: 700;
    color: var(--vr-secondary);
    text-transform: uppercase;
    font-size: 14px;
}
.woocommerce table.shop_table .order-total th,
.woocommerce table.shop_table .order-total td {
    font-size: 18px;
    font-weight: 800;
    color: var(--vr-secondary);
    border-bottom: none !important;
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: #fcfcfc !important;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #eee;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #eee !important;
    padding-bottom: 15px !important;
}
.woocommerce-checkout #payment div.payment_box {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 6px;
    box-shadow: none !important;
}
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #eee !important;
}

/* Cart Specific Enhancements */
.woocommerce-cart .coupon {
    display: flex;
    gap: 15px;
}
.woocommerce-cart .coupon input.input-text {
    width: auto !important;
    flex: 1;
    margin-right: 0 !important;
}
.woocommerce-cart td.product-thumbnail img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.woocommerce-cart .product-remove a.remove {
    color: #fff !important;
    background: #ff4d4f !important;
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    line-height: 22px !important;
    font-size: 18px !important;
    text-align: center;
    transition: all 0.3s;
}
.woocommerce-cart .product-remove a.remove:hover {
    background: #d9363e !important;
    transform: scale(1.1);
}

/* ==========================================================================
   Container Fix for WooCommerce Blocks
   ========================================================================== */
.woocommerce-cart .page-single__content,
.woocommerce-checkout .page-single__content,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    max-width: 1200px !important;
    margin: 140px auto 80px auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wp-block-woocommerce-cart .is-large.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout .is-large.wp-block-woocommerce-checkout {
    padding: 0 !important;
}

/* Hide WooCommerce Blocks product description from cart */
.wc-block-components-product-details__description {
    display: none !important;
}

/* ==========================================================================
   Page.php — Content Visibility Fix (below fixed header)
   ========================================================================== */

/* Push all regular pages below the fixed header */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.home):not(.page-template-homepage) .page-single {
    padding-top: 140px;
}

/* Center and constrain page content */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .page-single {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

/* Typography inside pages */
.page-single__content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.page-single__content h1,
.page-single__content h2,
.page-single__content h3,
.page-single__content h4 {
    color: var(--vr-secondary, #1D3557);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}
.page-single__content h1 { font-size: 2rem; }
.page-single__content h2 { font-size: 1.6rem; }
.page-single__content h3 { font-size: 1.3rem; }
.page-single__content p  { margin-bottom: 16px; }
.page-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}
.page-single__content a {
    color: var(--vr-primary, #E63946);
    text-decoration: underline;
}
.page-single__content ul,
.page-single__content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.page-single__content li {
    margin-bottom: 8px;
}

/* Featured image at top of page */
.page-single > .margin-bottom img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 32px;
}
