/* 
  EnMaracay Premium Modern Design System
  Focus: Visual Excellence, Glassmorphism, Dynamic Animations & Premium Palettes
*/

:root {
  /* Premium Directory Palette: Deep Indigo & Neon Cyan */
  --premium-primary: #ff4a52; /* Listygo brand red */
  --premium-secondary: #0A0F1E; /* Deep space dark blue */
  --premium-accent: #34e2e4; /* Vibrant cyan */
  --premium-indigo: #4f46e5;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-dark-bg: rgba(10, 15, 30, 0.8);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --mesh-1: rgba(255, 74, 82, 0.05);
  --mesh-2: rgba(52, 226, 228, 0.05);
  --mesh-3: rgba(79, 70, 229, 0.05);

  /* Spring Animations & Transitions */
  --trans-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-spring: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --trans-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --accent-glow: 0 0 25px rgba(52, 226, 228, 0.4);
  --shadow-premium: 0 15px 45px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 60px -12px rgba(0, 0, 0, 0.12);
  --radius-lg: 18px;
  --radius-xl: 30px;
}

/* Entrance Animations System */
@keyframes premiumFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.premium-animate {
  animation: premiumFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Base Body & Typography with Mesh Animation */
@keyframes meshGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body,
html {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  background: var(--bg-gradient) !important;
  background-size: 400% 400% !important;
  animation: meshGradient 20s ease infinite !important;
  color: var(--text-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Sleek Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--premium-accent);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--premium-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  color: var(--premium-secondary);
}

/* Glassmorphism Header - Refined for Desktop Menu */
header.site-header,
header#masthead,
.header-main,
.rt-sticky-menu-wrap {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 2px solid var(--glass-border) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  transition: var(--trans-smooth) !important;
}

/* Ensure original desktop menu isn't hidden by transparent overrides on desktop */
@media (min-width: 992px) {
  .site-nav,
  .rt-header-menu,
  .main-navigation {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
  }
}

/* Hide desktop menu on mobile/tablet view */
@media (max-width: 991px) {
  .site-nav,
  nav.site-nav {
      display: none !important;
  }
}

/* Force Body Background to override theme inline-styles */
body,
html {
  background: var(--bg-gradient) !important;
}

/* Smooth Navigation Links */
.site-nav>ul>li>a {
  position: relative;
  transition: var(--trans-smooth);
  color: var(--premium-secondary) !important;
}

.site-nav>ul>li>a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--premium-primary);
  transition: var(--trans-bounce);
  border-radius: 2px;
}

.site-nav>ul>li>a:hover::after {
  width: 80%;
}

/* Links & Buttons Enhancements */
a,
.btn,
button {
  transition: var(--trans-smooth);
}

.btn-primary,
button[type="submit"],
.wp-block-button__link {
  background: linear-gradient(135deg, var(--premium-primary) 0%, #ff7b81 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(255, 74, 82, 0.4) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 28px !important;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn-primary::before,
button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff7b81 0%, var(--premium-primary) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--trans-smooth);
  border-radius: 50px;
}

.btn-primary:hover::before,
button[type="submit"]:hover::before {
  opacity: 1;
}

.btn-primary:active,
button[type="submit"]:active {
  transform: scale(0.96);
}

/* Modern Listing Cards (Product Box / RTCL Grid) */
.product-box,
.rtcl-grid-view .product-box,
.listing-box,
.entry-content ul li {
  background: #ffffff;
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  box-shadow: var(--shadow-premium) !important;
  transition: var(--trans-spring) !important;
  overflow: visible !important;
  position: relative;
  margin-bottom: 25px;
}

/* Promoted Listing "Glow" */
.listing-is-promoted,
.product-is-promoted {
  border: 2px solid var(--premium-accent) !important;
  box-shadow: 0 0 30px rgba(52, 226, 228, 0.2) !important;
}

.listing-is-promoted::after {
  content: 'AD';
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--premium-accent);
  color: var(--premium-secondary);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 20;
}

.product-box:hover,
.rtcl-grid-view .product-box:hover,
.listing-box:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(255, 74, 82, 0.2) !important;
}

/* Image zoom micro-animation on cards */
.product-box img,
.rtcl-grid-view img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-box:hover img,
.rtcl-grid-view .product-box:hover img {
  transform: scale(1.08) !important;
}

/* Titles inside cards */
.item-content h3 a,
.entry-content h2 a,
.entry-content h3 a {
  background: linear-gradient(to right, var(--premium-secondary) 0%, var(--premium-secondary) 100%);
  background-size: 0px 2px;
  background-position: 0px 95%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
  color: var(--premium-secondary) !important;
  text-decoration: none !important;
}

.item-content h3 a:hover,
.entry-content h2 a:hover,
.entry-content h3 a:hover {
  background-size: 100% 2px;
  color: var(--premium-primary) !important;
}

/* Card title overrides - Responsive & Aligned */
.product-box h3,
.listing-box h3,
.woocommerce-loop-product__title,
.product-box h3 a,
.listing-box h3 a,
.woocommerce-loop-product__title a,
.rtcl-grid-view .product-box .item-content h3,
.rtcl-grid-view .product-box .item-content h3 a,
.rtcl-list-view .product-box .item-content h3,
.rtcl-list-view .product-box .item-content h3 a {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.8em !important; /* exactly 2 lines height */
  max-height: 2.8em !important;
  margin-bottom: 10px !important;
  color: var(--premium-secondary) !important;
  text-decoration: none !important;
}

@media (min-width: 768px) {
  .product-box h3,
  .listing-box h3,
  .woocommerce-loop-product__title,
  .product-box h3 a,
  .listing-box h3 a,
  .woocommerce-loop-product__title a,
  .rtcl-grid-view .product-box .item-content h3,
  .rtcl-grid-view .product-box .item-content h3 a,
  .rtcl-list-view .product-box .item-content h3,
  .rtcl-list-view .product-box .item-content h3 a {
    font-size: 18px !important;
  }
}

/* Gradient text accents for main headers */
.page-content-main h1 {
  background: -webkit-linear-gradient(45deg, var(--premium-secondary), var(--premium-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Generic Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--trans-smooth);
  background: #f8fafc;
  color: var(--text-main);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--premium-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 74, 82, 0.1);
  outline: none;
}

/* Responsive Fluid Adjustments */
@media (max-width: 991px) {
  h1 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
  }

  h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
  }

  .site-header {
    padding: 10px 0;
  }
}

@media (max-width: 767px) {

  /* Mobile specifically */
  .product-box,
  .listing-box {
    margin-bottom: 24px;
    border-radius: 12px !important;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Fix tight spacing on mobile */
  .page-details-wrap-layout {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}

/* Subtle reveal animations on scroll */
@keyframes fadeInUpSubtle {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content-main>* {
  animation: fadeInUpSubtle 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.page-content-main>*:nth-child(1) {
  animation-delay: 0.1s;
}

.page-content-main>*:nth-child(2) {
  animation-delay: 0.2s;
}

.page-content-main>*:nth-child(3) {
  animation-delay: 0.3s;
}

.page-content-main>*:nth-child(4) {
  animation-delay: 0.4s;
}

.page-content-main>*:nth-child(5) {
  animation-delay: 0.5s;
}

/* ==================================================== */
/*  Strategic Enhancements: Single Listings Overhaul */
/* ==================================================== */

/* Reorder Contact Info Block ABOVE Description on Mobile & Tablet */
@media (max-width: 991px) {

  /* Target the main wrapping row of the listing detail page */
  .rtcl-single-listing-wrapper > .row {
    display: flex !important;
    flex-direction: column !important;
  }

  /* The main content (description) SHOULD BE SECOND */
  .rtcl-single-listing-wrapper > .row > [class*="col-"] {
    order: 2 !important;
  }

  /* The Sidebar (Information) SHOULD BE FIRST */
  .rtcl-single-listing-wrapper > .row > .col-lg-4,
  .rtcl-single-listing-wrapper > .row > aside,
  .rtcl-single-listing-wrapper > .row > .sidebar {
    order: -1 !important;
    margin-bottom: 30px !important;
  }
}

/* ==================================================== */
/*  Mobile Bottom Navigation Bar Styles             */
/* ==================================================== */

/* Hide by default (Desktop/Tablet) */
.enmaracay-mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  .enmaracay-mobile-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 0 10px;
  }

  .enmaracay-mobile-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .enmaracay-mobile-nav li {
    flex: 1;
    text-align: center;
  }

  .enmaracay-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--trans-smooth);
    font-size: 11px;
    font-weight: 500;
  }

  .enmaracay-mobile-nav i {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .enmaracay-mobile-nav a.active,
  .enmaracay-mobile-nav a:hover {
    color: var(--premium-primary);
  }

  /* Center Action Button (Plus) */
  .nav-center-action {
    position: relative;
    top: -20px;
    /* Floating effect */
  }

  @keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 74, 82, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 74, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 74, 82, 0); }
  }

  .center-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--premium-primary) 0%, #ff7b81 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 74, 82, 0.4);
    border: 4px solid #fff;
    animation: pulseGlow 2s infinite;
  }

  .center-btn i {
    color: #fff;
    font-size: 22px;
    margin: 0;
  }

  /* Add padding to body so content isn't hidden by the bar */
  body {
    padding-bottom: 75px !important;
  }
}

/* ==================================================== */
/*  Category Listing: Premium Hero Banner Styles     */
/* ==================================================== */
.enmaracay-cat-banner {
  position: relative;
  height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  margin-bottom: 0;
}

.enmaracay-cat-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.enmaracay-cat-banner .container {
  position: relative;
  z-index: 2;
}

.enmaracay-cat-banner .banner-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.enmaracay-cat-banner .breadcrumbs-custom {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

.enmaracay-cat-banner .breadcrumbs-custom a {
  color: #fff;
  text-decoration: none;
}

.enmaracay-cat-banner .breadcrumbs-custom a:hover {
  color: var(--premium-primary);
}

/* Description Blocks Stylization */
.rtcl-term-description.top-snippet {
  margin-bottom: 30px;
  padding: 25px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.6;
}

.rtcl-term-description.bottom-full {
  margin-top: 50px;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
}

.rtcl-term-description.bottom-full h2,
.rtcl-term-description.bottom-full h3 {
  color: var(--premium-primary);
  margin-top: 0;
}

/* Mobile Adjustments for Banner */
@media (max-width: 767px) {
  .enmaracay-cat-banner {
    height: 250px;
    text-align: center;
  }

  .enmaracay-cat-banner .banner-content h1 {
    font-size: 32px;
  }
}

/* ==================================================== */
/*  Strategic Advertising: Premium Ad Styling       */
/* ==================================================== */

/* Header Ribbon Ad */
.header-ad-ribbon {
  background: var(--premium-primary);
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  position: relative;
  animation: slideDown 0.5s ease-out;
}

.header-ad-ribbon a {
  color: #fff;
  text-decoration: underline;
  margin-left: 5px;
}

/* In-Feed Custom Ad Wrapper */
.enmaracay-infeed-ad-wrap {
  margin: 40px 0;
  width: 100%;
}

.ad-placeholder-premium {
  background: linear-gradient(135deg, #0A0F1E 0%, #1a1a2e 100%);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--premium-accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: var(--trans-spring);
}

.ad-placeholder-premium:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 70px rgba(52, 226, 228, 0.2);
}

.ad-placeholder-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 74, 82, 0.1) 0%, transparent 70%);
  animation: rotateGradient 10s linear infinite;
}

.ad-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.ad-content {
  position: relative;
  z-index: 2;
}

.ad-content h3 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: 800;
}

.ad-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-premium {
  display: inline-block;
  background: var(--premium-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--trans-smooth);
  box-shadow: 0 4px 15px rgba(255, 74, 82, 0.4);
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 74, 82, 0.6);
  color: #fff;
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .ad-placeholder-premium {
    padding: 30px 20px;
  }

  .ad-content h3 {
    font-size: 20px;
  }
}

/* ==================================================== */
/*  WooCommerce & E-commerce Premium Overhaul        */
/* ==================================================== */

/* Shop Archive Grid */
.woocommerce ul.products li.product {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: visible !important; /* Allow badges to overflow if needed, or handle with padding */
  box-shadow: var(--shadow-sm);
  transition: var(--trans-smooth);
  border: 1px solid #eee;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--premium-primary);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 15px;
  font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
  font-weight: 800;
  margin: 15px 0 10px;
  color: var(--premium-secondary);
  line-height: 1.3;
  height: 2.6em !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce ul.products li.product .price {
  color: var(--premium-primary);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
}

.woocommerce ul.products li.product .button {
  background: var(--premium-secondary) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 12px 25px !important;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-top: auto; /* Push buttons to the bottom */
  align-self: center;
  width: 100%;
  text-align: center;
}

/* Single Product Page Enhancements */
.woocommerce div.product div.images img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  transition: var(--trans-smooth);
}

.woocommerce div.product div.images img:hover {
  transform: scale(1.02);
}

.woocommerce div.product .product_title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--premium-secondary);
  letter-spacing: -1px;
  margin-bottom: 0.5em;
}

.woocommerce div.product .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--premium-primary);
  display: block;
  margin-bottom: 20px;
}

.woocommerce div.product .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--premium-primary) 0%, #ff7b81 100%) !important;
  border-radius: 50px !important;
  padding: 18px 45px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(255, 74, 82, 0.4) !important;
  transition: var(--trans-bounce) !important;
  border: none !important;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 74, 82, 0.5) !important;
}

/* Single Product Layout Polish */
.woocommerce div.product .summary {
    display: flex;
    flex-direction: column;
}

.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Dynamic Quantity Input */
.woocommerce .quantity input.qty {
  border: 2px solid #edeff2;
  border-radius: 12px;
  padding: 10px;
  font-weight: 700;
  background: #f8fafc;
  transition: var(--trans-smooth);
}

.woocommerce .quantity input.qty:focus {
  border-color: var(--premium-primary);
  background: #fff;
  box-shadow: var(--accent-glow);
}

/* Product Tabs Aesthetic */
.woocommerce-tabs ul.tabs {
  border: none !important;
  background: transparent !important;
  display: flex !important;
  gap: 15px !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs li {
  background: #fff !important;
  border: 1px solid #efefef !important;
  border-radius: 30px !important;
  padding: 10px 25px !important;
  transition: var(--trans-smooth) !important;
}

.woocommerce-tabs ul.tabs li.active {
  background: var(--premium-secondary) !important;
  color: #fff !important;
  border-color: var(--premium-secondary) !important;
}

.woocommerce-tabs ul.tabs li a {
  font-weight: 700 !important;
  color: inherit !important;
}

/* ==================================================== */
/*  Micro-interactions: Hover Glow Effects           */
/* ==================================================== */
.product-box:hover,
.woocommerce ul.products li.product:hover {
  outline: 2px solid var(--premium-primary);
  outline-offset: -5px;
}

/* ==================================================== */
/*  Micro-interactions: Advanced Hover & Polish      */
/* ==================================================== */

/* Magnetic-like effect for primary buttons */
.btn-primary:hover,
button[type="submit"]:hover,
.single_add_to_cart_button:hover {
  letter-spacing: 2px;
  filter: brightness(1.1);
}

/* Floating labels effect for focused inputs */
.woocommerce-Input:focus,
input[type="text"]:focus,
input[type="email"]:focus {
  transform: translateY(-2px);
}

/* Card image "Float" and "Glow" */
.product-box:hover img,
.woocommerce ul.products li.product:hover img {
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.2));
}

/* Search bar premium animation */
.rtcl-search-wrapper,
.widget_search form {
  background: #fff;
  border-radius: 50px;
  padding: 5px 10px;
  box-shadow: var(--shadow-premium);
  transition: var(--trans-bounce);
  border: 1px solid transparent;
}

.rtcl-search-wrapper:focus-within,
.widget_search form:focus-within {
  transform: scale(1.02);
  border-color: var(--premium-primary);
  box-shadow: var(--shadow-hover);
}

/* Responsive adjustments for new elements */
@media (max-width: 767px) {
  .woocommerce div.product .product_title {
    font-size: 24px;
  }
}

/* ==================================================== */
/*  Lead Generation & UI Badges & Overlays          */
/* ==================================================== */

/* Premium WooCommerce "Oferta" Badge */
.woocommerce span.onsale {
  background: linear-gradient(135deg, #a4c639 0%, #8db600 100%) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  padding: 8px 12px !important;
  min-height: unset !important;
  line-height: 1 !important;
  border-radius: 50px !important;
  top: 15px !important;
  right: 15px !important;
  left: auto !important;
  box-shadow: 0 4px 10px rgba(141, 182, 0, 0.4) !important;
  z-index: 10;
  border: 2px solid #fff !important;
}

/* Fix for RTCL / Classified Badges */
.rtcl-badge {
    z-index: 10;
}

/* Custom Badges for Listings */
.rtcl-badge-recommended {
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
  text-transform: uppercase;
}

.rtcl-badge-verified {
  background: #3498db;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
  text-transform: uppercase;
}

/* Sticky Back to Top Button */
.enmaracay-back-top {
  position: fixed;
  bottom: 85px;
  /* Above mobile nav */
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--premium-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 9998;
  transition: var(--trans-smooth);
}

.enmaracay-back-top:hover {
  transform: scale(1.1);
  background: var(--premium-secondary);
}

/* Advertising Page Layouts */
.ad-pricing-table {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.pricing-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid #eee;
  text-align: center;
  transition: var(--trans-smooth);
}

.pricing-card:hover {
  border-color: var(--premium-primary);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--premium-primary);
  transform: scale(1.05);
}

/* ==================================================== */
/* 📱 Responsive Overhaul & Mobile Fixes                */
/* ==================================================== */

/* Hide text menu links in header on mobile/tablet view */
@media (max-width: 991px) {
  header.site-header nav.site-nav,
  header.site-header .site-nav,
  header.site-header .main-menu,
  header.site-header #menu-primary,
  header.site-header .menu-primary {
    display: none !important;
  }
}

/* Fix header overlap with ad ribbon on desktop screens */
@media (min-width: 992px) {
  body.has-header-ad .transparent-header .header-area {
    top: 37px !important;
  }
  body.admin-bar.has-header-ad .transparent-header .header-area {
    top: 37px !important;
    margin-top: 32px !important;
  }
}

/* Fix category listing descriptions (reset inline-flex column bug) */
.rtcl-term-description,
.rtcl .rtcl-term-description {
  display: block !important;
  text-align: center !important;
  clear: both !important;
  width: 100% !important;
  margin-bottom: 30px !important;
}

.rtcl-term-description p,
.rtcl .rtcl-term-description p {
  margin-bottom: 15px !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.rtcl-term-description p:last-child,
.rtcl .rtcl-term-description p:last-child {
  margin-bottom: 0 !important;
}

/* Mobile responsive typography adjustments */
@media (max-width: 767px) {
  /* Prevent word/text cut offs in headings and lists */
  h1 {
    font-size: clamp(22px, 6.5vw, 28px) !important;
    word-break: break-word !important;
  }
  h2 {
    font-size: clamp(18px, 5.5vw, 22px) !important;
    word-break: break-word !important;
  }
  h3 {
    font-size: clamp(16px, 4.5vw, 19px) !important;
    word-break: break-word !important;
  }
  body, p, .entry-content p, .rtcl-content-area p, .rtcl-term-description p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  /* Mobile padding details for descriptions */
  .rtcl-term-description.top-snippet {
    padding: 15px 20px !important;
  }
  .rtcl-term-description.top-snippet,
  .rtcl-term-description.top-snippet p {
    font-size: 15px !important;
  }
  .rtcl-term-description.bottom-full {
    padding: 20px !important;
    margin-top: 30px !important;
  }
}