/* =========================
   RESET / BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overscroll-behavior-x: none;
  touch-action: pan-y;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #fff;
  color: #222;
}

/* Remove huge gap between category strip and breadcrumb */
#catStripWrapper,
.cat-strip-container {
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
}

/* Ensure no top-margin pushes breadcrumb downward */
.breadcrumb,
.breadcrumb-wrapper,
.page-header,
.page-header-text-block {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Reset default heading margins that often create hidden gaps */
h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Standard content width wrapper */
.page-container,
.breadcrumb,
.main-title,
.page-text,
.deals-section,
.newsletter-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   HEADER / CTA
========================= */
#headerWrapper {
  width: 100%;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: relative;
  z-index: 10;
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out;
}

/* Fixed CTA state (used on scroll up) */
#headerWrapper.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Hidden fixed CTA (pre/post animation) */
#headerWrapper.fixed:not(.header-cta-visible) {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Visible fixed CTA (fade / slide in) */
#headerWrapper.fixed.header-cta-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spacer for when header becomes fixed */
#headerSpacer {
  height: 0;
  margin: 0;
  padding: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  padding: 0;
  margin: 0;
}

/* .logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
} */

/* .logo-mark {
  width: 40px;
  height: 40px;
} */


/* Force logo image to scale inside the 32×32 circle */
.logo-mark img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* Logo */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  /* border: 2px solid #0f2e23; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 50px;
  height: 50px;
  stroke: #0f2e23;
  fill: none;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f2e23;
  text-decoration: none;
}

.logo-and-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}




.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f3f3;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid #0f2e23;
}

/* Small search icon */
.search-pill svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}



.search-pill input {
  border: none;
  outline: none;
  font-size: 15px;
  padding: 4px 6px;
  color: #0f2e23;
  width: 160px;
}

.search-pill input::placeholder {
  color: #0f2e23;
  opacity: .6;
}



/* =========================
   CATEGORY STRIP
========================= */
.category-container {
  position: relative;
  padding: 12px 24px;
}

/* Left / Right chevrons */
.chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffffdd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chevron-left {
  left: 12px;
}

.chevron-right {
  right: 12px;
}

/* Category strip */
.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 48px; /* room for chevrons */
  flex-wrap: nowrap;
  overscroll-behavior-x: contain;

}

/* CATEGORY STRIP REWORK — ICON ABOVE TEXT */
.cat-item {
  display: flex;
  flex-direction: column;      /* stack icon above text */
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 16px;
  border: 1px solid #eee;
  flex-shrink: 0;
  cursor: pointer;
  min-width: 90px;             /* ensures consistent vertical layout */
}

/* Icon: 30x30, keep original stroke/fill colors */
.cat-item svg,
.cat-icon {
  width: 30px !important;
  height: 30px !important;
  flex-shrink: 0;
}

/* Label text: 18px and #0F2E23 */
.cat-item span {
  font-size: 18px;
  color: #0F2E23;
  text-transform: none;
  white-space: nowrap;
}


/* =========================
   BREADCRUMB + TITLES
========================= */
.breadcrumb {
  margin-top: 22px;
  font-size: 14px;
  color: #666;
}

.main-title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 600;
}

.page-text {
  margin-top: 10px;
  margin-bottom: 24px;
  font-size: 15px;
}

.page-text ul {
  margin-left: 32px;   /* ≈ 0.5 inch on most screens */
  padding-left: 0;
}


/* =========================
   DEALS GRID
========================= */
.deals-section {
  margin-top: 8px;
}

.deals-header {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 0 24px 24px;
}

/* Card shell */
.deal-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Featured border accent */
.deal-card.featured {
  border-color: #673de6;
  box-shadow: 0 0 0 2px rgba(103, 61, 230, 0.12);
}

/* Expired state (desaturate slightly) */
.deal-card.expired {
  opacity: 0.65;
}

/* Top image block */
.deal-image {
  position: relative;
}

.deal-image-clip {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.deal-image-inner {
  height: 180px;
  background-position: center;
  background-size: cover;
}

/* Featured badge */
.deal-featured-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  color: #8b5cf6;
}

/* Deal featured badge pin */
.deal-featured-pin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Favorite heart button */
.deal-favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
}

.deal-favorite svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #7a7a7a;
  stroke-width: 1.8;
}

.deal-favorite.favorited svg {
  fill: #f6c343;
  stroke: #f6c343;
}

/* Price pill */
.deal-price-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 12px;
}

.deal-price-pill span {
  font-weight: 600;
}

/* Card body */
.deal-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deal-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Category within card */
.deal-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
}

.deal-category-icon,
.deal-category-icon svg {
  width: 16px !important;
  height: 16px !important;
}

/* Title / description */
.deal-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.deal-description {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

/* Footer row (date + status) */
.deal-footer-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.deal-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #fee2e2;
  color: #b91c1c;
}

/* =========================
   SHOW MORE BUTTON
========================= */
.deals-more-container {
  padding: 8px 24px 24px;
  text-align: center;
}

.trip-button {
  display: inline-block;
  margin: 0 auto;
  padding: 12px 20px;
  background: #673de6;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   NEWSLETTER SECTION
========================= */
/* ============================================
   NEWSLETTER SECTION — REDUCED VERTICAL SPACING
============================================ */

.newsletter-section {
    margin-top: 20px;          /* reduced from 48 */
    padding: 20px 0;           /* reduced from 48 */
    background: linear-gradient(to right, #faf7ff, #fff7f4);
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    flex-direction: column;
    gap: 28px;                 /* reduced from 50px */
    align-items: flex-start !important;    /* no vertical stretch */
}





/* Desktop layout keeps the horizontal feel */
@media (min-width: 900px) {
    .newsletter-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;             /* smaller than original 50px */
    }
}





.newsletter-left {
  flex: 2 1 500px;   /* grows bigger than right column */
  max-width: 560px;
  align-self: flex-start !important;     /* each column only as tall as its own content */
}



.newsletter-left h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.newsletter-left p {
  font-size: 14px;
  margin-bottom: 8px;
}

.newsletter-left small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: #555;
}

/* ----------------------------- */
/* Newsletter Form – FINAL CLEAN */
/* ----------------------------- */

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* EMAIL INPUT */
.newsletter-form input[type="email"] {
    flex: 1 1 360px;        /* widened default width */
    max-width: 480px;       /* allows ~50% larger visual width */
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

/* SUBMIT BUTTON */
.newsletter-form button[type="submit"] {
    padding: 10px 20px;
    background: #673de6;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;  /* keeps button on one line */
}

/* DISABLED STATE */
.newsletter-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
}

/* =========================
   SOCIAL GRID
========================= */





.newsletter-right {
    flex: 1 1 350px;   /* allows room for 2 column grids of 160 */
    align-self: flex-start !important;     /* each column only as tall as its own content */
}


.newsletter-right h4 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}


/* SOCIAL GRID — MORE RESPONSIVE */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
  width: 100%;
}


.social-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  color: #111827;
  background: var(--social-bg, #f4f4f4);
}

/* Force social icons to have readable color */
.social-grid a svg {
    width: 20px;
    height: 20px;
    color: #111;          /* ensures twitter stroke becomes visible */
    stroke: currentColor; /* override missing stroke attribute */
    fill: currentColor;
    margin-right: 8px;
    /* flex-shrink: 0; */
}


/* small icons */
.social-grid svg {
  width: 18px;
  height: 18px;
}


/* Medium screens: force exactly 2 columns */
@media (min-width: 720px) and (max-width: 1099px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens: allow 3–4 compact columns */
@media (min-width: 1100px) {
  .social-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}


/* Individual platform colors via CSS var */
.social-facebook {
  --social-bg: #eef3ff;
}

.social-instagram {
  --social-bg: #f7efff;
}

.social-whatsapp {
  --social-bg: #e9fff2;
}

.social-tiktok {
  --social-bg: #eaffff;
}

.social-twitter {
  --social-bg: #f5f5f5;
}

.social-rss {
  --social-bg: #fff2e6;
}

/* Pinterest */
.social-pinterest {
  --social-bg: #ffeef2; /* soft red/pink */
}

/* YouTube */
.social-youtube {
  --social-bg: #ffefef; /* soft red tint */
}





/* =========================
   RESPONSIVE TWEAKS
========================= */
@media (max-width: 600px) {
  .topbar {
    padding: 0 16px;
  }

  .category-container {
    padding: 8px 8px 12px;
  }

  .deals-grid {
    padding: 0 16px 16px;
  }

  .deals-more-container {
    padding: 8px 16px 24px;
  }
}

/* ============================================================
   Footer cards + copyright
============================================================ */
.footer-extra {
  padding: 32px 0 16px;
}

.footer-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-card {
  flex: 1 1 0;
  min-width: 220px;
}

.footer-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-card p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-badge {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  display: inline-flex;
  flex-direction: column;
  font-size: 0.8rem;
  max-width: 170px;
}

.app-badge span:first-child {
  font-size: 0.7rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 4px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #222222;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer-copy {
  text-align: center;
  padding: 12px 16px 24px;
  font-size: 0.85rem;
  color: #0f2e23;
  border-top: 1px solid #f0f0f0;
}



/* ================================================================
   FOOTER & NEW CARDS SECTION
================================================================ */

.footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.footer-card {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    padding: 16px;
    border-radius: 10px;
}

.footer-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-card a {
    display: block;
    text-decoration: none;
    color: #0F2E23;
    margin-bottom: 6px;
}

.footer-card a:hover {
    color: #0095ff;
}

/* Copyright */
#copyright {
    text-align: center;
    font-size: 14px;
    color: #0F2E23;
    padding: 20px 0;
}

.top-link {
  color: #0f2e23;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}

.top-link:hover {
  color: #0095ff;   /* electric blue */
  font-weight: 700;
}

.register-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid #0095ff;
  color: #0095ff;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.register-btn:hover {
  background: #0095ff;
  color: #fff;
}

.icon-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover {
  opacity: .7;
}



/* App store badges */
.app-badge img {
    width: 165px;       /* recommended by Apple */
    height: auto;
    display: block;
    margin-bottom: 14px;
}


/* .app-badge img {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
} */

.app-badge img:hover {
    transform: scale(1.06);
}


.footer-card .app-badge:last-child img {
    width: 185px;       /* Google Play recommended width */
}

/* ================================================
   CLEAN APP STORE / GOOGLE PLAY BADGE STYLING
   ================================================ */

.footer-card .app-badge {
    display: inline-block;        /* prevents full-width block frame */
    padding: 0;                    /* remove accidental internal spacing */
    margin: 6px 0;                 /* small visual spacing between the two */
    background: none;              /* kill any inherited bg */
    border: none;                  /* kill unintended border */
    box-shadow: none;              /* kill any inherited shadow */
    outline: none;                 /* remove highlight outlines */
}

.footer-card .app-badge img {
    display: block;                /* prevents inline whitespace gap */
    width: auto;                   /* ensure native badge size */
    height: auto;
    max-width: 200px;              /* optional: keeps them consistent */
}

/* Hover effect - subtle lift */
.footer-card .app-badge:hover img {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}


/* ==========================================
   FINAL FIX — CLEAN APP STORE BADGE BLOCKS
   ========================================== */

.footer-card .app-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 6px 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: auto !important;
    height: auto !important;
}

/* Remove ANY inherited height/width from parent wrappers */
.footer-card .app-badge > div,
.footer-card .app-badge > svg,
.footer-card .app-badge > img {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Apple badge recommended dimensions */
.footer-card .app-badge img.appstore-img {
    width: 140px !important;   /* Looks best inside footer layout */
    height: auto !important;
}

/* Google Play recommended dimensions */
.footer-card .app-badge img.playstore-img {
    width: 160px !important;
    height: auto !important;
}

/* Hover lift animation */
.footer-card .app-badge img:hover {
    transform: translateY(-2px);
    transition: transform 0.20s ease;
}

/* ======================================================
   FINAL APP STORE + GOOGLE PLAY BADGE FIX
   Ensures perfect sizing, spacing, alignment, & no distortion
====================================================== */

.footer-card .app-buttons {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

/* Badge wrapper */
.footer-card .app-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

/* Both badges reset */
.footer-card .app-badge img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-height: 55px !important;     /* keeps consistent visual size */
    object-fit: contain !important;  /* prevents distortion */
    margin: 0 !important;
    padding: 0 !important;
}

/* Apple App Store recommended ratio */
.footer-card img.appstore-img {
    max-width: 140px !important;
}

/* Google Play recommended ratio */
.footer-card img.playstore-img {
    max-width: 180px !important;
}

/* Simple lift on hover */
.footer-card .app-badge img:hover {
    transform: translateY(-2px);
    transition: 0.18s ease-in-out;
}

/* FORCE SAME BADGE SIZE — FINAL FIX */
.footer-card img.appstore-img,
.footer-card img.playstore-img {
    max-width: 160px !important;   /* identical width */
    max-height: 55px !important;   /* identical height */
    object-fit: contain !important;
}

/* FIX: Remove huge vertical gap between newsletter and social grid */
.newsletter-right {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.newsletter-right h4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.social-grid {
    margin-top: 10px !important;  /* reduced from 20px */
}

/* FIX: Prevent huge vertical gap in constrained widths */
@media (min-width: 900px) and (max-width: 1180px) {
    .newsletter-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
}

/* FIX HUGE GAP BETWEEN NEWSLETTER + SOCIAL GRID
   at mid-width breakpoints */
@media (min-width: 900px) and (max-width: 1400px) {

    .newsletter-container {
        display: flex;
        flex-direction: row;
        align-items: flex-start !important;
        gap: 32px !important;
    }

    .newsletter-left,
    .newsletter-right {
        align-self: flex-start !important;
    }
}
.newsletter-left small {
    margin-top: 4px !important;
}

.newsletter-container {
    align-items: flex-start !important;
}

.newsletter-left,
.newsletter-right {
    align-self: flex-start !important;
}
