:root {
  /* VSTT theme variables */
  --vstt-main:   #000000;
  --vstt-accent: #ffffff;
  --vstt-hover:  #111111;
  --vstt-text:   #000000;
  --vstt-bg:     #ffffff;

  /* Typography Defaults */
  --vstt-font-heading: "Spezia Serif Trial", serif;
  --vstt-font-body: system-ui, -apple-system, sans-serif;
  
  --vstt-gap: 24px; /* Default gutter size */
}

/* -------------------------------------------------------------------------
   Reset & Base
------------------------------------------------------------------------- */
.vstt-features {
  color: var(--vstt-text);
  background: var(--vstt-bg);
  padding: 64px 0;
  width: 100%;
  overflow: hidden; /* Prevent horizontal scrollbar on body */
}

.vstt-features * {
  box-sizing: border-box;
}

.vstt-screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Accordion Header
------------------------------------------------------------------------- */
.vstt-features--items {
  border: 0;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.vstt-features--heading {
  margin: 0;
}

.vstt-features--heading_btn {
  align-items: flex-end;
  border: 0;
  border-top: 1px solid #d9d9d9;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px 0 32px;
  position: relative;
  background: transparent;
  width: 100%;
  cursor: pointer;
  outline: none;
  text-align: left;
}

/* Accordion Icon (+ / -) */
.vstt-features--items .vstt-features--heading_btn:after {
  content: "";
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='currentColor' d='M0 8h16M8 0v16'/%3E%3C/svg%3E");
  background-position: 50%;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  position: absolute;
  right: 0;
  top: 16px;
  transition: transform 0.3s ease, background-image 0.3s ease;
  color: var(--vstt-text);
}

.vstt-handorgel__header--opened .vstt-features--heading_btn:after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 2'%3E%3Cpath stroke='currentColor' d='M0 1h16'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

.vstt-features--heading:first-child .vstt-features--heading_btn:after {
  top: 0; /* Adjust for first item if needed */
}

.vstt-features--heading_btn:focus,
.vstt-features--heading_btn:hover {
  border-top-color: var(--vstt-hover);
}

/* Section Title */
.vstt-features--section-title {
  font-family: var(--vstt-font-heading);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--vstt-main);
}

/* Accordion Title */
.vstt-features--title {
  font-family: var(--vstt-font-heading);
  font-size: 86px;
  font-weight: 300;
  letter-spacing: -5px;
  line-height: 1.1;
  margin: 0;
  color: var(--vstt-main);
  transition: color 0.3s ease;
}

/* -------------------------------------------------------------------------
   Accordion Body (Collapsible)
------------------------------------------------------------------------- */
.vstt-handorgel__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth ease */
  opacity: 0; 
  visibility: hidden;
}

.vstt-handorgel__content.is-open {
  /* JS sets max-height, CSS handles opacity */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.vstt-features--infos {
  padding: 8px 0 32px;
  width: 100%;
}

/* -------------------------------------------------------------------------
   Unified Slider Styles
------------------------------------------------------------------------- */
.vstt-features--infos_slider {
  display: block; /* Always visible now */
  width: 100%;
  position: relative;
}

.vstt-features--infos_swiper {
  overflow: hidden; /* Mask the sliding track */
  width: 100%;
  cursor: grab;
  /* Touch action fix for smoother native scroll */
  touch-action: pan-y;
}

.vstt-features--infos_swiper[data-dragging="1"] {
  cursor: grabbing;
}

.vstt-track-inner {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  /* No gap here; we use padding on cards to handle gutters nicely with fractional widths */
  gap: 0; 
  will-change: transform;
}

.vstt-track-inner.vstt-anim {
  transition: transform 0.36s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Card Item 
   Width is set via JS (flex-basis) based on breakpoints (1.5 / 2.5 / 3.5)
*/
.vstt-card {
  flex-shrink: 0;
  /* Visual Gutter using padding */
  padding-right: var(--vstt-gap); 
  box-sizing: border-box;
  position: relative;
}

/* The clickable content wrapper */
/* Increased specificity to override themes */
.vstt-features a.vstt-features--info {
  display: block;
  position: relative;
  width: 100%;
  text-decoration: none !important;
  border-bottom: none !important; /* Fix for some themes adding border to links */
  
  /* Changed from #f5f5f5 to White */
  background: #ffffff; 
  overflow: hidden;
  color: #ffffff !important; /* Force white text root */
  
  /* CRITICAL FIX: Z-Index ensures link is clickable over shadows/containers */
  z-index: 10;
}

/* Aspect Ratio Enforcement */
.vstt-features--info {
  aspect-ratio: 4 / 5; /* Consistent vertical rectangle shape */
}

/* Image */
.vstt-features--info_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Hover Effect */
.vstt-features--info:hover .vstt-features--info_img,
.vstt-features--info:focus .vstt-features--info_img {
  transform: scale(1.08);
}

/* Shadow Overlay */
.vstt-features--info_shadow:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1; /* Below content, above image */
  pointer-events: none; /* Ensure clicks pass through shadow */
}

/* Content inside Card */
/* Strong specificity to ensure white text */
.vstt-features .vstt-features--info .vstt-features--info_title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  margin: 0;
  
  font-family: var(--vstt-font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #ffffff !important; /* STRICT WHITE */
  text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Legibility boost */
  word-wrap: break-word; /* Prevent overflow */
}

/* Meta Data (Price, Rating, Loc) */
.vstt-price, .vstt-rating, .vstt-location {
  display: block;
  position: absolute;
  z-index: 2;
  color: rgba(255,255,255,0.95) !important; /* Force white-ish */
  font-family: var(--vstt-font-body);
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.vstt-price { 
  top: 16px; 
  right: 16px; 
  /* Fallback black if needed, or you can change var to white */
  background: var(--vstt-main); 
  color: #fff !important; 
  padding: 4px 8px; 
  border-radius: 4px; 
  text-shadow: none; 
}
.vstt-rating { top: 16px; left: 16px; }
.vstt-location { bottom: 64px; left: 24px; font-size: 13px; opacity: 0.9; }

/* Pagination */
.vstt-features--pagination {
  margin-top: 32px;
  font-family: var(--vstt-font-body);
  font-size: 15px;
  color: var(--vstt-main);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
  
  /* CRITICAL FIX: Ensure pagination container doesn't cover cards */
  pointer-events: none; 
  position: relative;
  z-index: 5;
}

/* -------------------------------------------------------------------------
   Responsive Breakpoints
------------------------------------------------------------------------- */

/* Tablet & Smaller Desktop */
@media only screen and (max-width: 1024px) {
  :root {
    --vstt-gap: 16px; /* Smaller gutter */
  }

  .vstt-features { padding: 0 0 64px; }
  
  .vstt-features--title {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .vstt-features .vstt-features--info .vstt-features--info_title {
    font-size: 24px;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
  
  .vstt-location { bottom: 50px; left: 20px; }
}

/* Mobile */
@media only screen and (max-width: 767px) {
  :root {
    --vstt-gap: 16px;
  }

  .vstt-features--heading_btn {
    padding: 24px 0 8px;
    gap: 16px;
  }

  .vstt-features--title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  /* Aspect Ratio Adjust for Mobile */
  .vstt-features--info {
    aspect-ratio: 3 / 4; /* Slightly taller on mobile */
  }

  .vstt-features .vstt-features--info .vstt-features--info_title {
    font-size: 20px;
    line-height: 1.25;
    left: 16px; 
    right: 16px;
    bottom: 16px;
  }
  
  .vstt-location { display: none; }

  /* Ensure slider overflows visibly if desired */
  .vstt-features--infos_slider {
    margin-right: -16px; 
  }
}