/*--------------- top slider ---------------*/
.section-container {
    width: 100%;
    padding: 5px;
}
/* Container & Entrance Animation */
.top-ad-banner-section {
  width: 100%;
  margin: 12px auto 16px;
  padding: 0 0;
  animation: slideDownFade 0.6s ease-out forwards;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ad-banner-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 40%, #93c5fd 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.ad-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px 24px;
}

/* Close Button */
.ad-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  color: #1e293b;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.ad-close-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Internal Grid Layout */
.ad-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Left Flash Sale Text Graphic */
.ad-left-badge {
  text-align: center;
  font-family: 'Arial Black', sans-serif;
  line-height: 0.9;
  user-select: none;
}

.flash-text {
  font-size: 26px;
  font-weight: 900;
  color: #1d4ed8;
  text-shadow: 2px 2px 0px #ffffff;
  letter-spacing: 1px;
}

.sale-text {
  font-size: 32px;
  font-weight: 900;
  color: #2563eb;
  text-shadow: 2px 2px 0px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightning-icon {
  color: #eab308;
  font-style: normal;
  animation: pulseGlow 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #eab308); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 6px #facc15); }
}

/* Center Text & Pill Badges */
.ad-center-info {
  text-align: center;
  flex: 1;
}

.ad-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.ad-main-title span {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.ad-time-pills {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #0284c7;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.ad-time-pills .divider {
  opacity: 0.5;
}

/* Right Tag */
.ad-badge-tag {
  background-color: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ad-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .ad-right-graphic {
    display: none;
  }
  
  .ad-main-title {
    font-size: 18px;
  }
  
  .ad-main-title span {
    font-size: 16px;
  }
  
  .ad-time-pills {
    font-size: 12px;
    padding: 6px 14px;
    gap: 8px;
  }
}
/*---------------- HERO SLIDER --------------*/
/* Outer Positioning Context Wrapper */
.hero-slider-container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Rounded Mask Wrapper */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background-color: #0f172a;
    touch-action: pan-y; /* Allows vertical scrolling while enabling horizontal swipes */
    user-select: none;  /* Prevents text selection while swiping */
    -webkit-user-select: none;
}

/* Sliding Track */
.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile / Small Screen Styles (Default) */
.hero-slide-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    min-height: 200px; /* Reduced height for mobile (was 300px) */
    padding: 20px 16px; /* Reduced internal padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    text-decoration: none;
}

/* Gradient Overlay for Text Visibility */
.hero-slide-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-brand-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    margin-bottom: 6px;
}

.hero-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.hero-caption {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0 0 16px 0;
}

/* View More Button inside Card */
.hero-view-btn {
    display: inline-block;
    background-color: #0284c7;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.hero-view-btn:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
}

/* Prev / Next Arrows (Visible on Larger Screens) */
.slider-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 16px; }
.next-arrow { right: 16px; }

@media (min-width: 768px) {
    .slider-arrow {
        display: flex;
    }
    .hero-slide-card {
        min-height: 360px;
        padding: 40px 40px;
    }
    .hero-main-title {
        font-size: 30px;
    }
    .hero-slide-card {
        min-height: 360px; /* Full height on larger screens */
        padding: 40px 40px;
    }

    .hero-brand-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .hero-main-title {
        font-size: 30px;
        margin-bottom: 6px;
    }

    .hero-caption {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-view-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* Dots Navigation Underneath Banner */
.hero-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.slider-dot {
    width: 20px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 32px;
    background-color: #0f172a;
}


/*--------- PLOTTED LAYOUT -------------*/
/* Container and Wrapper */
.plotted-slider-container {
    margin-top: 24px;
}
.layout-slider-section {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 12px;
}

.layout-slider-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #f8fafc;
}

/* Horizontal Scroll Track (CSS Scroll Snap) */
.layout-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.layout-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Individual Slide */
.layout-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  scroll-snap-align: start;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.layout-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay Gradient for Text Contrast */
.layout-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
}

/* Text Content */
.layout-slide-content {
  position: relative;
  z-index: 3;
  padding: 24px 32px;
  max-width: 60%;
}

.layout-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.layout-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.layout-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.layout-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Pagination Indicators */
.layout-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}

.layout-slider-dots .dot {
  width: 32px;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.layout-slider-dots .dot.active {
  background-color: #0f172a;
}

/* Responsive Scaling for Mobile */
@media (max-width: 640px) {
  .layout-slide {
    min-height: 180px;
  }
  
  .layout-slide-content {
    max-width: 80%;
    padding: 16px 20px;
  }
  
  .layout-title {
    font-size: 20px;
  }
  
  .layout-subtitle {
    font-size: 16px;
  }
  
  .layout-desc {
    font-size: 11px;
  }
}
/*-------------- section 2-1--FLATS----------------*/
/* Container Box with the soft mint green background shield */
.trends-container {
  width: auto;
  max-width: 1200px;
  margin: 16px;
  padding: 20px;
  background-color: #e1f4ec; /* Mint-green containment container layer */
  border-radius: 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.trends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
/* Heading Style */
.trends-main-heading {
  margin: 0 0 16px 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.4px;
}
/* Right Top Arrow Button */
.selection-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #000000;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.selection-arrow-btn:hover {
  transform: scale(1.05);
  background-color: #1e293b;
}

.selection-arrow-btn svg {
  width: 18px;
  height: 18px;
}


/* --- SMALL SCREEN SETUP (2x2 Grid Layout Reference Image 1) --- */
/* Card Grid Layout - Force 4 items in 1 row */
.trends-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px;
}

@media (max-width: 992px) {
  .trends-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .trends-grid-layout {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* Screen adjustments for mobile & small viewports */
@media (max-width: 768px) {
  .trends-container {
    padding: 12px;
  }

  .trends-grid-layout {
    gap: 6px;
  }

  .trend-title-footer {
    padding: 6px 2px;
    font-size: 0.7rem;
  }
  .trend-image-frame {
    height: 90px;
  }

  .overlay-badge {
    font-size: 0.58rem;
    padding: 2px 4px;
  }

  .type-badge {
    top: 4px !important;
    left: 4px !important;
  }

  .price-badge {
    bottom: 4px !important;
    left: 4px !important;
  }
}

/* Individual Card Styling */
a.trend-card-item {
  display: flex;
  flex-direction: column;
  background-color: #d1ebe5;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex: 0 0 300px; /* Matches proportions allowing neighboring items to peek */
  color: inherit;
}

.trend-card-item:hover {
  transform: translateY(-2px);
}

.trend-title-footer {
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Truncates long titles cleanly with ... */
}

/* Text Overlay Container Floating Over Image */
.trend-overlay-info {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}
/* Image Frame Container */
.trend-image-frame {
  position: relative !important;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.trend-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Common Badge Base - Prevents vertical/horizontal stretching */
.overlay-badge {
  position: absolute !important;
  z-index: 10;
  width: auto !important;
  height: auto !important;
  max-width: 85%;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
  box-sizing: border-box;
}

/* Flat Type Badge (Top Left) */
.type-badge {
  top: 6px !important;
  left: 6px !important;
  bottom: auto !important;
  right: auto !important;
  background-color: rgba(15, 23, 42, 0.9);
  color: #ffffff;
}

/* Price Badge (Bottom Left) */
.price-badge {
  bottom: 6px !important;
  left: 6px !important;
  top: auto !important;
  right: auto !important;
  background-color: #2563eb;
  color: #ffffff;
}
/* ----------- Container Box with soft tint background from the image -------- */
.rec-section-container {
  background: linear-gradient(180deg, #f0f5ff 0%, #f6f3ff 100%);
  border-radius: 24px;
  padding: 16px;
  margin: 16px auto;
  max-width: 1200px; /* Aligns smoothly with your banner sizing */
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Text styling */
.rec-section-title {
  margin: 0 0 14px 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

/* Horizontal scrolling track */
.rec-scroll-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px; /* Room for natural scroll clearance */
  scrollbar-width: none; /* Hide for Firefox */
  -webkit-overflow-scrolling: touch; /* Crisp scrolling physics for iOS mobile */
}

.rec-scroll-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Individual Child Cards */
a.rec-card {
  flex: 0 0 160px; /* Fixed display width ensuring the next card peeks over */
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

/* Image scaling framework within the item */
.rec-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; /* Keeps the picture window perfectly square */
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.rec-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents compression distortion of the image asset */
  object-position: center;
}

/* Text Detail block underneath the layout */
.rec-info {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-subtext {
  font-size: 0.72rem;
  color: #757575;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Gracefully shortens overflow string tags with ... */
}

.rec-maintext {
  font-size: 0.78rem;
  font-weight: 700;
  color: #212121;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blue accent class utility mapping to "View Store" style */
.text-blue {
  color: #1a73e8 !important;
}

/*---------- section 3 ------------*/
/* Container Box with the subtle blue tint background matching the image */
.selection-box-container {
  background-color: #dbe9f9;
  border-radius: 28px;
  padding: 18px;
  margin: 16px auto;
  max-width: 800px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header row layout arrangement */
.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.selection-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.4px;
}

/* Rounded black action arrow button */
.selection-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.selection-arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* Clean 2-column layout grid wrapper */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Individual grid items */
a.selection-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

/* Image container window inside the grid card */
.selection-image-box {
    position: relative !important;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selection-image-box img {
  width: 90%;
  height: 90%;
  object-fit: contain; /* Keeps transparent product images crisp and balanced */
}

/* Text elements layout wrapper */
.selection-meta {
  margin-top: 10px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.selection-label {
  font-size: 0.82rem;
  color: #4a4a4a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/*------------- section 4 ----------------*/
/* Container framework aligning with previous modules */
.spotlight-section-container {
  padding: 16px 4px;
  margin: 16px auto;
  max-width: 1200px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.spotlight-main-title {
  margin: 0 0 16px 4px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.3px;
}

/* Horizontal scrolling track mechanics */
.spotlight-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Hide for Firefox */
  -webkit-overflow-scrolling: touch;
}

.spotlight-scroll-track::-webkit-scrollbar {
  display: none; /* Hide for Chrome/Safari */
}

/* Individual Card configurations */
a.spotlight-card {
  flex: 0 0 130px; /* Gives perfect proportions for the 3-item peeking stack */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

/* Rounded square background framework */
.spotlight-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.main-promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay floating branding components */
.spotlight-brand-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 45px;
  z-index: 2;
}

.spotlight-brand-badge img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.spotlight-ad-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.6rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Typography elements underneath layout block */
.spotlight-meta {
  margin-top: 8px;
  text-align: center; /* Center-aligns copy cleanly matching the screenshot */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotlight-discount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-tagline {
  font-size: 0.8rem;
  color: #555555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*------------- section 5 orange deals ----------------*/
/* Container block styled with the vibrant dual-gradient mesh background */
.deals-section-container {
  background: linear-gradient(135deg, #ff6e30 0%, #ff6247 25%, #fca49b 75%, #fbcbc5 100%);
  border-radius: 28px;
  padding: 20px 16px;
  margin: 16px auto;
  max-width: 1200px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header layout configuration */
.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.deals-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deals-main-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

/* White round navigational arrow icon */
.deals-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.deals-arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* Horizontal scroll track configuration */
.deals-scroll-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.deals-scroll-track::-webkit-scrollbar {
  display: none;
}

/* Card Elements Layout */
a.deals-card {
  flex: 0 0 200px; /* Matches proportions allowing neighboring items to peek */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

/* Image containment setup */
.deals-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
}

.deals-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Green overlay label tag showing reduction percentages */
.deals-discount-tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #007d43;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-bottom-right-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Content blocks underneath cards */
.deals-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deals-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #222222;
  line-height: 1.5;
  height: 2rem; /* Reserves space for two-line truncations safely */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center; /* Centers text horizontally */
}
/* Subdued and slashed text markup for standard MSRP prices */
.deals-original-price {
  font-size: 0.78rem;
  color: #666666;
  text-decoration: line-through;
}
/* Container wrapper to isolate absolute arrows */
.scroll-engine-wrapper {
  position: relative;
  width: 100%;
}

/* Base styling for the arrows (hidden by default on mobile) */
.track-nav-btn {
  display: none;
  position: absolute;
  top: 35%; /* Centers vertically against the image blocks */
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #000000;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 10;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.track-nav-btn svg {
  width: 20px;
  height: 20px;
}

.track-nav-btn.prev {
  left: -20px; /* Extends slightly outside the container for a modern UI look */
}

.track-nav-btn.next {
  right: -20px;
}



/*------------- section 6 ----------------*/
/* Container Base Alignment */
.suggested-section-container {
  padding: 16px 4px;
  margin: 16px auto;
  max-width: 1200px; /* Increased max-width to allow all 6 columns to breathe nicely on big screens */
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header UI Elements */
.suggested-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.suggested-main-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.3px;
}

.suggested-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #111111;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
}

.suggested-arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* Core Fixed Grid Layout */
.suggested-fixed-grid {
  display: grid;
  /* Mobile default: 2 columns, completely static */
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
}

/* Individual Responsive Cards */
a.suggested-card {
  width: 100%; /* Spans full width of its designated grid column cell */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

/* Image + Rating Framework */
.suggested-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f7f7f7;
}

.suggested-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Star rating badge */
.suggested-rating-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #333333;
}

.suggested-rating-badge svg {
  color: #00875a;
}

/* Metadata Typography Layout */
.suggested-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.suggested-item-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggested-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.suggested-msrp-price {
  font-size: 0.78rem;
  color: #888888;
  text-decoration: line-through;
}

.suggested-current-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111111;
}

.suggested-bank-promo {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a4fc2;
  line-height: 1.2;
}
/*-------------- filter section ---------------- */
/* Base Container Layout */
.filter-menu-container {
  width: 100%;
  max-width: 1200px;
  margin: 12px auto;
  padding: 8px 4px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Horizontal Scroll Track Setup */
.filter-menu-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none; /* Hide for Firefox */
  -webkit-overflow-scrolling: touch; /* Momentum scroll on iOS */
}

.filter-menu-scroll-track::-webkit-scrollbar {
  display: none; /* Hide for Chrome/Safari */
}

/* Clickable Button Structure resetting native browser styling */
button.filter-menu-item {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 72px; /* Perfect uniform size allocation */
  outline: none;
  transition: transform 0.15s ease;
}

/* Soft 3D base platform aesthetic reflecting the source image */
.filter-icon-platform {
  position: relative;
  width: 64px;
  height: 64px;
  background: linear-gradient(to bottom, #ffffff 60%, #fbcbc5 100%);
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(251, 203, 197, 0.4), 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.filter-icon-platform img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

/* Label text below button platforms */
.filter-label-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111111;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Active Filter Component State */
button.filter-menu-item.active .filter-icon-platform {
  background: linear-gradient(to bottom, #ffffff 40%, #fca49b 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(252, 164, 155, 0.6);
}

button.filter-menu-item.active .filter-label-text {
  color: #ff6247; /* Highlights active filter text dynamically */
}

/*----------------- section 7 -------------*/
/* Container Base setup */
.discovery-feed-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Core Adaptive Fluid Layout */
.discovery-grid {
  display: grid;
  /* Small Screen Rule: Exactly 1 item per row */
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

/* Base Card Styles */
a.discovery-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Image Visual Box Frame */
.discovery-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background-color: #f6f6f6;
  border-radius: 16px;
  overflow: hidden;
}

.discovery-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Top-Left Pink Value Tag */
.discovery-tag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #d91b5c;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

/* Bottom-Left Floating Star Rating Badge */
.discovery-rating-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  padding: 3px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  color: #333333;
  gap: 3px;
}

.discovery-rating-overlay svg {
  color: #10b981; /* Green star color matching screen */
}

.rating-val {
  font-weight: 700;
}

.rating-divider {
  color: #d1d5db;
  margin: 0 1px;
}

.rating-count {
  color: #666666;
}

/* Product Typography Content Area */
.discovery-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.discovery-title-line {
  font-size: 0.88rem;
  line-height: 1.3;
  color: #444444;
}

.discovery-brand {
  font-weight: 700;
  color: #111111;
  margin-right: 4px;
}

.discovery-price-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}

.discovery-msrp {
  font-size: 0.82rem;
  color: #878787;
  text-decoration: line-through;
}

.discovery-current {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111111;
}

.discovery-promo-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a4fc2;
}


/* Responsive Desktop Media Query Breakpoints */
@media (min-width: 768px) {
  /* Mid-size tablet scaling */
  .suggested-fixed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  /* Desktop Monitor configuration: Renders all 6 inline across the display horizontally */
  .suggested-fixed-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  a.suggested-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
  }
    .filter-menu-scroll-track {
    justify-content: center; /* Centers items nicely across wider displays */
    gap: 28px;
  }
  
  button.filter-menu-item:hover {
    transform: translateY(-2px);
  }
    /* Large Screen Rule: Adapts seamlessly to 4 items per row */
  .discovery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  /* Scale up layout dimensions and card box volume significantly */
  .hero-slide-card {
    min-height: 280px; /* Big layout card profile matches your previous request */
    padding: 48px;
    background-position: center right; /* Keeps subject content anchored nicely on desktop scales */
  }
  
  .hero-slide-card::before {
    /* Slightly wider overlay block to handle expanded layout width comfortably */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0) 100%);
  }
  
  .hero-slide-content {
    max-width: 50%;
  }
  
  .hero-brand-label {
    font-size: 1.1rem;
  }
  
  .hero-main-title {
    font-size: 2.2rem;
    gap: 6px;
  }
  
  .hero-caption {
    font-size: 1.1rem;
    margin-top: 8px;
  }
  
  /* Make side-scrolling hardware controls cleanly interactive */
  .slider-control-btn {
    display: inline-flex;
  }
  
}

/* Hover effects for Desktop configurations */
@media (hover: hover) {
  a.rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
    a.selection-card:hover {
    transform: scale(1.02);
  }
  .selection-arrow-btn:hover {
    transform: translateX(3px);
  }
    a.spotlight-card:hover .main-promo-img {
    transform: scale(1.04);
    transition: transform 0.2s ease;
  }
    a.deals-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }
  .deals-arrow-btn:hover {
    transform: translateX(4px);
  }
    .track-nav-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
  }
  
  /* Reveal the arrows only when mouse hovers over the specific section */
  .scroll-engine-wrapper:hover .track-nav-btn {
    display: flex;
  }
  a.suggested-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }
}
/*---------------------- plots.php---------------------*/
.category-filter-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.category-scroll-container {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: max-content;
  padding: 4px 8px;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease;
  width: 70px;
  text-align: center;
}

.category-btn:hover {
  transform: translateY(-3px);
}

.category-img-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: #eee;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-btn span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  margin-top: 8px;
  line-height: 1.1;
  word-break: break-word;
}

/* Active Button Indicator */
.category-btn.active .category-img-box {
  border-color: #0284c7;
  background-color: #f0f9ff;
  color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.category-btn.active span {
  color: #0284c7;
  font-weight: 700;
}
/*------------------- propertyLists.php -----------------*/

        
        /* Breadcrumb & Header */
        .page-breadcrumb { font-size: 12px; color: #878787; margin-bottom: 8px; }
        .page-breadcrumb a { color: #878787; text-decoration: none; }
        .page-title { font-size: 16px; font-weight: 600; color: #212121; }

        /* Left Sidebar Filter */
        .filter-sidebar {
            background: #fff;
            border-radius: 2px;
            box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
            padding: 16px;
        }
        .filter-header { font-size: 18px; font-weight: 600; border-bottom: 1px solid #f0f0f0; padding-bottom: 12px; margin-bottom: 16px; }
        .filter-group { border-bottom: 1px solid #f0f0f0; padding-bottom: 14px; margin-bottom: 14px; }
        .filter-group-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: #212121; margin-bottom: 10px; }
        .filter-option { font-size: 14px; color: #212121; display: flex; align-items: center; margin-bottom: 8px; cursor: pointer; }
        .filter-option input { margin-right: 10px; accent-color: #2874f0; }

        /* Horizontal Mobile Filter Bar */
        .mobile-filter-bar {
            background: #fff;
            padding: 10px 16px;
            border-radius: 2px;
            box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
            margin-bottom: 12px;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            white-space: nowrap;
        }
        .mobile-filter-btn {
            background: #f0f2f5;
            border: 1px solid #e0e0e0;
            border-radius: 16px;
            padding: 6px 14px;
            font-size: 13px;
            font-weight: 500;
            color: #212121;
        }

        /* Sort Bar */
        .sort-bar {
            background: #fff;
            padding: 12px 16px;
            border-radius: 2px 2px 0 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            gap: 20px;
            font-size: 14px;
        }
        .sort-label { font-weight: 600; color: #212121; }
        .sort-opt { color: #878787; text-decoration: none; cursor: pointer; }
        .sort-opt.active { color: #2874f0; font-weight: 600; border-bottom: 2px solid #2874f0; padding-bottom: 2px; }

        /* Listing Grid & Cards */
        .property-grid {
            height: 300px;
            background: red;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 10px;
            background-color: #e0e0e0;
            border-top: 1px solid #e0e0e0;
        }
        .property-card {
            background: #fff;
            padding: 16px;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
            position: relative;
            transition: box-shadow 0.2s ease;
        }
        .property-card:hover { box-shadow: 0 3px 16px 0 rgba(0,0,0,.11); z-index: 2; }
        .card-img-box {
            width: 100%;
            height: 300px;
            position: relative;
            margin-bottom: 12px;
            overflow: hidden;
        }
        .card-img-box img { width: 100%; height: 100%; object-fit: cover; }
        .wishlist-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            color: #c2c2c2;
            font-size: 18px;
            background: #fff;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 4px rgba(0,0,0,.2);
        }
        .card-title { font-size: 12px; font-weight: 300; color: #212121; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .card-subtext { font-size: 12px; color: #878787; margin-bottom: 8px; }
        .price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
        .curr-price { font-size: 16px; font-weight: 600; color: #212121; }
        .rate-badge { font-size: 12px; color: #388e3c; font-weight: 600; }
        .assured-badge { height: 18px; vertical-align: middle; }

/* Medium & Large Screens (Tablets & Desktop) */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        min-height: 270px !important; /* Increased card height */
    }
    .card-img-box {
        height: 150px !important; /* Increased image height */
        margin-bottom: 8px !important;
    }
    .card-title {
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 2px !important;
    }

    .card-subtext {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }

    .curr-price {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .rate-badge {
        font-size: 11px !important;
    }
}
