/*
Theme Name: Lozano Child
Template: hello-elementor
*/

/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */
:root {
  --primary-gold: #B98A2E;
  --secondary-gold: #B98A2E;
  --accent-orange: #FF5900;
  --accent-dark-orange: #FF5900;
  --white: #fff;
  --text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  --card-shadow: 0 18px 38px rgba(0,0,0,0.18);
  --card-shadow-hover: 0 30px 60px rgba(0,0,0,0.28);
}

/* ============================================================
   2. EXPERIENCE CARDS (GRID)
   ============================================================ */

/* Grid Container */
.lozano-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

/* Main Card Wrapper */
.exp-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  height: 400px;
  display: flex;
  justify-content: flex-end;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--card-shadow);
}

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

/* Background Image & Overlay */
.exp-card__bg {
  position: absolute;
  inset: 0;
}

.exp-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05);
  transition: .3s ease;
}

.exp-card:hover .exp-card__bg img {
  filter: brightness(1.06);
}

.exp-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.0) 25%,
    rgba(0,0,0,0.0) 55%,
    rgba(0,0,0,0.55) 78%,
    rgba(0,0,0,0.7) 100%
  );
  pointer-events: none;
}

/* Card Content & Typography */
.exp-card__content {
  position: absolute;
  bottom: 0;
  padding: 1.6rem;
  color: var(--white);
  z-index: 3;
  width: 100%;
}

.exp-card__title {
  font-family: "Platypi";
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-shadow: var(--text-shadow);
}

.exp-card__title a {
  color: var(--white) !important;
  text-decoration: none !important;
}

.exp-card__intro {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.4rem 0;
  text-shadow: var(--text-shadow);
  padding-right: 3.2rem; /* keeps text clear of the CTA button */
}


/* Meta Info Bar & Flags */
.exp-card__infobar {
  font-size: .83rem;
  color: rgba(255, 255, 255, 0.8) !important; /* Off-white */
  font-weight: 500;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-top: .4rem;
}

.exp-meta__idiomas {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.flag-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  text-indent: -9999px; /* Hide text */
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* SVG Flag Mappings */
.flag-es, .flag-espanol {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 750 500'%3E%3Cpath fill='%23c60b1e' d='M0 0h750v500H0z'/%3E%3Cpath fill='%23ffc400' d='M0 125h750v250H0z'/%3E%3C/svg%3E" );
}
.flag-gb, .flag-en, .flag-ingles, .flag-english {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cpath fill='%23012169' d='M0 0v30h60V0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='m0 0 60 30M60 0 0 30'/%3E%3Cpath clip-path='url(%23a )' stroke='%23C8102E' stroke-width='4' d='m0 0 60 30M60 0 0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E");
}
.flag-fr, .flag-frances {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23EC192E' d='M0 0h3v2H0z'/%3E%3Cpath fill='%23fff' d='M0 0h2v2H0z'/%3E%3Cpath fill='%23002654' d='M0 0h1v2H0z'/%3E%3C/svg%3E" );
}
.flag-de, .flag-aleman {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath d='M0 0h5v3H0z'/%3E%3Cpath fill='%23D00' d='M0 1h5v2H0z'/%3E%3Cpath fill='%23FFCE00' d='M0 2h5v1H0z'/%3E%3C/svg%3E" );
}

/* Specific overrides for off-white color */
.exp-meta__duracion {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
}

.exp-meta__sep {
  opacity: 0.6;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Badges (Pills) */
.exp-card__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.35rem;
  z-index: 10;
}

.exp-pill {
  padding: 0.32rem 0.65rem;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  letter-spacing: .25px;
  color: var(--white);
  text-transform: capitalize;
}

.exp-pill--reserva {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.exp-pill--sin-reserva {
  color: #000; /* your existing gold */
  border: 1.5px solid #B98A2E;
}

.exp-pill--reserva-online {
  color: #000;
  border: 1.5px solid #2e8b57;
}

.exp-pill--bajo-peticion {
  color: #000;
  border: 1.5px solid #1a6fa8;
}



.exp-pill--estado {
  color: #000;
  border: 1.5px solid var(--accent-orange);
  background-color: white;
  padding-top: calc(0.32rem - 1px);
  padding-bottom: calc(0.32rem + 1px);
}

.exp-pill--estado::before {
  content: "★";
  font-size: .75rem;
  margin-right: 0.35rem;
}

/* Call to Action (CTA) Button */
.exp-card__cta {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 3px;
  transition: .25s ease;
}

.exp-card__cta:hover {
  background: var(--primary-gold);
  color: var(--white);
  transform: scale(1.05);
}

/* Hide the CTA arrow button on the experience cards */
.exp-card__cta {
    display: none !important;
}

/* Adjust content padding if needed since the button space is no longer required */
.exp-card__intro {
    padding-right: 0 !important; /* Remove the 3.2rem padding previously used to clear the button */
}


/* Meta Bar Styling */
.exp-card__infobar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap; /* Helps on very small screens */
}

/* Price Styling within Meta Bar */
.exp-meta__precio {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
}

.price-prefix {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-right: 2px;
}

.price-amount {
  font-weight: 600;
}


/* ============================================================
   3. QUICK FILTERS (PILLS)
   ============================================================ */

.lozano-quick-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .75rem;
  margin: 0 auto 2rem auto;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  max-width: 1200px;
}

.quick-pill {
  background: var(--white) !important;
  border: 1px solid black !important;
  color: black !important;
  font-weight: 600;
  cursor: pointer;
  font-size: .78rem;
  padding: .45rem .85rem;
  border-radius: 2px;
  transition: all .2s ease;
  outline: none !important;
  box-shadow: none !important;
}

@media (hover: hover) {
  .quick-pill:not(.active):hover {
    background: var(--primary-gold) !important;
    color: var(--white) !important;
  }
}


.quick-pill.active {
  background: var(--primary-gold) !important;
  color: var(--white) !important;
  border-color: var(--primary-gold) !important;
}

/* ============================================================
   4. CAROUSEL (SWIPER) IMPLEMENTATION
   ============================================================ */

.lozano-exp-carousel-wrapper {
  position: relative;
  padding-inline: 56px;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .lozano-exp-carousel-wrapper {
    padding-inline: 0;
  }
}

.lozano-exp-carousel {
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.lozano-exp-carousel .exp-card,
.lozano-exp-carousel .exp-card:hover {
  box-shadow: none !important;
  transform: none !important;
}

.lozano-exp-carousel .exp-card__cta {
  display: none !important;
}

.lozano-exp-carousel .swiper-slide {
  min-width: 280px;
  max-width: 100%;
  height: auto;
  display: flex;
}

.lozano-exp-carousel .swiper-slide .exp-card {
  width: 100%;
}

.lozano-exp-carousel.swiper {
  width: 100%;
  overflow: hidden;
}

.lozano-exp-carousel .swiper-scrollbar {
  position: relative;
  margin-top: 1rem;
  height: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 999px;
}

.lozano-exp-carousel .swiper-scrollbar-drag {
  background: var(--primary-gold);
  border-radius: 999px;
}

@media (min-width: 1024px) {
  .lozano-exp-carousel {
    cursor: grab;
  }
  .lozano-exp-carousel:active {
    cursor: grabbing;
  }
}

/* ============================================================
   5. NAVIGATION ARROWS (EXTERNAL)
   ============================================================ */

.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

.lozano-exp-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--primary-gold);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
  outline: none !important;
  box-shadow: none !important;
}

@media (min-width: 1024px) {
  .lozano-exp-arrow {
    display: flex;
    opacity: 0.55;
  }
  .lozano-exp-arrow:hover {
    background: var(--primary-gold);
    transform: scale(1.06) translateY(-50%);
    opacity: 1;
  }
  .lozano-exp-arrow--prev { left: 8px; }
  .lozano-exp-arrow--next { right: 8px; }
}

/* ============================================================
   6. WOOCOMMERCE NOTICES
   ============================================================ */

.woocommerce-notices-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.admin-bar .woocommerce-notices-wrapper {
  top: 32px;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  margin: 0;
  border-radius: 0;
}

@media (min-width: 1025px) {
  .woocommerce-notices-wrapper {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .woocommerce-message {
    animation: wc-toast-fade 4s ease forwards;
  }
}

@keyframes wc-toast-fade {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================================
   7. RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 768px) {
  .exp-card { height: 340px; }
  .exp-card__title { font-size: 1.18rem; }
  .exp-card__content { padding: 1.3rem 1.2rem 1.6rem; }

  .lozano-quick-filters {
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: 1rem;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .lozano-quick-filters::-webkit-scrollbar {
    display: none;
  }

  .quick-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .lozano-quick-filters::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
  }

  .lozano-exp-grid {
    margin-top: 0 !important;
  }

}

/* ============================================================
   8. UTILITIES & ACCESSIBILITY
   ============================================================ */

.exp-carousel-heading {
  position: relative;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   9. CHECKOUT BUTTON AND 
   ============================================================ */

body .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,
body .wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid black !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
}

/* Hide the "Ver carrito" link injected into the Add to Cart button after purchase */
.woocommerce a.added_to_cart {
    padding-top: .5em;
    display: none;
}
