/* ==================================================
MODERN RESPONSIVE FOUNDATION
Mobile-First | Clean Layout | Travel/Deals Theme
================================================== */

/* =========================
DESIGN TOKENS
========================= */
:root {
--bg: #f6f8fb;
--surface: #ffffff;
--surface-alt: #f9fbfd;

--text: #1f2937;
--text-light: #6b7280;

--primary: #146eb4;
--primary-dark: #0f5a94;

--success: #6cc24a;
--warning: #ff9900;

--border: #e5e7eb;

--radius-sm: 10px;
--radius-md: 14px;
--radius-lg: 18px;

--shadow-sm: 0 2px 8px rgba(0,0,0,.06);
--shadow-md: 0 8px 24px rgba(0,0,0,.08);

--container: 1400px;
}

/* =========================
RESET
========================= */
*,
*::before,
*::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
color: var(--text);
background: var(--bg);
font-family:
Inter,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
overflow-x: hidden;
}

img {
max-width: 100%;
display: block;
}

/* =========================
LAYOUT
========================= */

#index-layout {
display: flex;
flex-direction: column;
gap: 24px;
max-width: var(--container);
margin: 0 auto;
padding: 16px;
}

#index-left,
#index-right {
width: 100%;
}

#index-left {
display: flex;
flex-direction: column;
gap: 24px;
}

/* Desktop */
@media (min-width: 992px) {
#index-layout {
flex-direction: row;
align-items: flex-start;
gap: 32px;
padding: 32px;
}

#index-left {
flex: 2.5;
min-width: 0;
}

#index-right {
flex: 1;
min-width: 320px;
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
}

/* =========================
PANELS
========================= */

.contour-block,
#homeReminderPanel,
.gift-finder,
#destinationCarousel,
#travelPanel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
}

.contour-block {
padding: 20px;
}

.contour-block h2,
.contour-block h3 {
margin-top: 0;
color: var(--text);
}

/* =========================
HERO
========================= */

.home-hero {
padding: 28px;
border-radius: 24px;

background:
linear-gradient(
135deg,
#ddeaf5,
#bfd4e6
);

box-shadow: var(--shadow-md);
}

/* =========================
DEAL GRID
========================= */

#index-left .grid {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}

@media (min-width: 650px) {
#index-left .grid {
grid-template-columns:
repeat(
auto-fit,
minmax(240px, 1fr)
);
}
}

/* =========================
DEAL CARD
========================= */

.deal-card {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 16px;

transition:
transform .2s ease,
box-shadow .2s ease;

box-shadow: var(--shadow-sm);
}

.deal-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
}

.deal-card img {
width: 100%;
height: 180px;
object-fit: contain;
}

.deal-card h3 {
font-size: 1rem;
line-height: 1.4;

margin: 14px 0;

display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;

overflow: hidden;
}

.deal-price {
font-size: 1.4rem;
font-weight: 800;
color: var(--primary);
}

/* =========================
BUTTONS
========================= */

.remind-me-btn,
.home-action-btn,
.gf-btn,
.ld-remind-save,
.view-basket-btn,
#viewBasketBtn,
.home-basket-btn,
.deal-button {
display: inline-flex;
align-items: center;
justify-content: center;

min-height: 42px;

padding: 10px 18px;

border-radius: 10px;
border: none;

background: var(--primary);
color: white;

font-weight: 600;
text-decoration: none;

cursor: pointer;

transition:
background .2s ease,
transform .15s ease;
}

.remind-me-btn:hover,
.home-action-btn:hover,
.gf-btn:hover,
.ld-remind-save:hover,
.view-basket-btn:hover,
#viewBasketBtn:hover,
.home-basket-btn:hover,
.deal-button:hover {
background: var(--primary-dark);
}

.deal-card .deal-button,
.deal-card .remind-me-btn {
width: 100%;
margin-top: 10px;
}

/* =========================
LOGO
========================= */

#logo-area {
background: transparent;
}

#logo-area img {
width: clamp(120px, 10vw, 180px);
height: auto;
}

/* =========================
CATEGORY BAR
========================= */

#billboard-categories {
display: flex;
gap: 12px;

overflow-x: auto;

padding-bottom: 8px;

scrollbar-width: none;
}

#billboard-categories::-webkit-scrollbar {
display: none;
}

/* =========================
REMIND PANEL
========================= */

.ld-remind-panel {
overflow: hidden;

max-height: 0;

background: white;

border-radius: 12px;
border: 1px solid var(--border);

transition:
max-height .35s ease,
padding .35s ease;
}

.ld-remind-panel.open {
max-height: 300px;
padding: 16px;
}

.ld-remind-panel select {
width: 100%;
}

/* =========================
FOOTER
========================= */

/* =============================== */
/* FULL-WIDTH HORIZONTAL FOOTER    */
/* =============================== */

.bottom-trust-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 40px 60px !important;

    background: #ffffff !important;  /* white */
    color: #000000 !important;       /* black */

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 60px !important;
}

/* Make each section inside footer behave like columns */
.bottom-trust-section > * {
    flex: 1 !important;
}

/* Headings */
.bottom-trust-section h3,
.bottom-trust-section h4 {
    color: #000 !important;
    border: none !important;
    margin-bottom: 10px !important;
}

/* Text */
.bottom-trust-section p {
    color: #333 !important;
}

/* Links */
.bottom-trust-section a {
    color: #000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.bottom-trust-section a:hover {
    text-decoration: underline !important;
}

/* Remove all <hr> lines */
.bottom-trust-section hr {
    display: none !important;
}

.bottom-trust-section {
    margin-top: 20px !important;   /* move it down */
}
.bottom-trust-section {
    border-radius: 12px 12px 0 0 !important; 
    /* TL   TR   BR BL */
}

/* =============================== */
/* DESKTOP / ONLINE MEDIA VERSION  */
/* =============================== */

@media (min-width: 1024px) {
    .bottom-trust-section {
        display: flex;
        flex-direction: column;
        gap: 24px;

        margin: 40px auto;
        max-width: var(--container);
        padding: 28px;

        background: white;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
    }

    .bottom-trust-section .trust-col {
        flex: 1;
    }

    .bottom-trust-section {
        flex-direction: row;
        flex-wrap: wrap;
    }
}


/* =========================
NOTIFICATIONS
========================= */

#notif-wrapper {
position: relative;
}

#notif-panel {
position: absolute;
right: 0;
top: 42px;

width: 280px;

background: white;

border-radius: 14px;

box-shadow:
0 12px 32px rgba(0,0,0,.15);

padding: 16px;

z-index: 9999;
}

.notif-badge {
position: absolute;
top: -6px;
right: -6px;

min-width: 18px;
height: 18px;

display: flex;
align-items: center;
justify-content: center;

background: #ef4444;
color: white;

border-radius: 999px;

font-size: 11px;
font-weight: 700;
}

/* =========================
MODAL
========================= */

.welcome-lang {
position: fixed;
inset: 0;

display: none;

align-items: center;
justify-content: center;

background: rgba(0,0,0,.55);

z-index: 100000;
}

.welcome-lang:not(.hidden) {
display: flex;
}

.welcome-lang-box {
width: min(90vw, 600px);

padding: 24px;

border-radius: 20px;

background: white;

text-align: center;

box-shadow:
0 20px 50px rgba(0,0,0,.2);
}

/* =========================
CAROUSEL
========================= */

.carousel-wrapper {
position: relative;

overflow: hidden;

border-radius: 14px;

height: 220px;
}

.carousel-slide img {
width: 100%;
height: 320px;
object-fit: cover;
}

.carousel-arrow {
position: absolute;
top: 50%;

transform: translateY(-50%);

border: none;

border-radius: 999px;

background: rgba(255,255,255,.9);

cursor: pointer;
}

.carousel-arrow.left {
left: 10px;
}

.carousel-arrow.right {
right: 10px;
}

/* =========================
MOBILE POLISH
========================= */

@media (max-width: 767px) {

.home-hero {
padding: 20px;
}

.carousel-wrapper {
height: 180px;
}

.carousel-slide img {
height: 180px;
}

iframe {
width: 100%;
height: 220px;
}

.welcome-lang-row {
flex-direction: column;
gap: 10px;
}

.welcome-lang-btn {
width: 100%;
}
}

/* ==================================================
FLOATING MERENGUE PLAYER — FINAL VERSION
================================================== */

#fmp-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 16px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fmp-notes {
  font-size: 20px;
  line-height: 1;
}

.fmp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fmp-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmp-progress {
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}

.fmp-progress-bar {
  width: 0;
  height: 100%;
  background: #ffb347;
  transition: width 0.15s linear;
}

.fmp-btn {
  border: none;
  outline: none;
  cursor: pointer;

  width: 34px;
  height: 34px;

  border-radius: 999px;
  background: #ffb347;
  color: #000;

  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
/* =============================== */
/* REMIND-ME DRAWER                */
/* =============================== */

.ld-remind-panel {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #ddd;
    color: #111 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    margin-top: 18px;
}

.ld-remind-panel.open {
    max-height: 260px;
    padding: 16px;
}
/* =============================== */
/* LOGO AREA                       */
/* =============================== */

#logo-area img {
    width: 8%;
    height: auto;
}
/* =============================== */
/* BUTTON SYSTEM (FINAL OVERRIDES) */
/* =============================== */

.remind-me-btn,
.home-action-btn,
.gf-btn,
.ld-remind-save,
.view-basket-btn,
#viewBasketBtn,
.home-basket-btn {
    background: #D8D6D2 !important;
    color: #1A1A1A !important;
    border: 1px solid #B8B5AF !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
}

.remind-me-btn:hover,
.home-action-btn:hover,
.gf-btn:hover,
.ld-remind-save:hover,
.view-basket-btn:hover,
#viewBasketBtn:hover,
.home-basket-btn:hover {
    background: #C9C7C2 !important;
    border-color: #A9A6A0 !important;
}
/* =============================== */
/* HERO SECTION                    */
/* =============================== */

.home-hero {
    width: 100%;
    padding: 32px 24px;
    background: linear-gradient(135deg, #D8D6D2, #B8B5AF);
    color: #333;
    border-radius: 18px;
    margin: 20px auto 30px auto;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
/* =============================== */
/* RIGHT SIDE PANELS               */
/* =============================== */

#homeReminderPanel,
.gift-finder {
    background: linear-gradient(135deg, #DDEAF5, #BFD4E6);
    border: 1px solid #B8B5AF;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    color: #1A1A1A;
}
/* =============================== */
/* CATEGORY BAR                    */
/* =============================== */

#billboard-categories {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: px !important;
    white-space: nowrap !important;
}
/* =============================== */
/* TRAVEL PANEL                    */
/* =============================== */

#travelPanel,
#travelPanel * {
    color: #1A1A1A !important;
}

#travelPanel {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
}


.updated {
    font-size: 12px;
    color: #777;
}

#homeRightMegaPanel,
#homeRightMegaPanel * {
    color: #333 !important;
}
/* =============================== */
/* NEW SCRIPT                      */
/* =============================== */

/* Add spacing between View Deal and Remind Me buttons */
.deal-card .deal-button + .remind-me-btn {
    margin-top: 10px !important;
}

/* Add spacing between View Deal and Buy Now (RTS) */
.deal-card .deal-button + .rts-buy-now {
    margin-top: 10px !important;
}
.deal-card {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(4px) !important;
}

#notif-panel.hidden {
    display: none !important;
}


[data-i18n="amazon_travel_essentials"] {
    color: #ffffff !important;
}
.pill-link {
    padding: 6px 14px;
    background: #146EB4; /* Amazon accent */
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}
.pill-link {
    position: relative;
    top: -10px; /* the sweet spot */
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.amazon-card .updated {
    color: #2b2b2b !important;
}
/* Nuclear override for updated date — WHITE version */
.updated {
    color: #ffffff !important;              /* pure white */
    opacity: 1 !important;                  /* ignore parent opacity */
    mix-blend-mode: normal !important;      /* stop blending with backgrounds */
    filter: none !important;                /* kill brightness/contrast filters */
    -webkit-text-fill-color: #ffffff !important; /* Safari override */
    background: none !important;            /* prevent highlight tinting */
}
.page-controls {
    background: rgba(0, 0, 0, 0.25);   /* soft transparent black */
    backdrop-filter: blur(10px);        /* glass effect */
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;               /* optional: smooth edges */
    padding: 6px 10px;                 /* optional: breathing room */
}

/* FIREFOX MOBILE SCROLL FIX */
@supports (-moz-appearance: none) {

    #billboard-categories {
        display: block !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        min-width: max-content !important;
        scrollbar-width: thin !important;

        /* Center the pills */
        text-align: center !important;

        /* Remove right-side white gap during scroll */
        overflow-clip-margin: 0 !important;
        overflow: clip auto !important;
    }

    #billboard-categories .pill-tab {
        display: inline-block !important;
    }

    #travel-section {
        background-attachment: scroll !important;
    }
}
.firebaseui-container,
.firebaseui-card-content,
.firebaseui-idp-button {
    background: #000 !important;
    color: #fff !important;
}
/* Fullscreen transparent backdrop */
.welcome-lang {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.welcome-lang:not(.hidden) {
    display: flex;
}

/* Glass‑blur modal box */
#welcomeLangModal .welcome-lang-box {
    background: rgba(30, 144, 255, 0.28); /* translucent blue */
    backdrop-filter: blur(8px);
    border-radius: 22px;
    padding: 30px 28px;
}

/* Lifted welcome text */
#welcomeLangModal .welcome-blurb {
    margin-top: -55px;
    margin-bottom: 50px;
}

/* Green buttons */
#welcomeLangModal .welcome-lang-btn {
    background-color: #4CAF50;
    color: white;
    font-weight: 700;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

#welcomeLangModal .welcome-lang-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

#welcomeLangModal .welcome-lang-btn:active {
    transform: translateY(0);
    background-color: #3e8e41;
}
.welcome-lang {
    background: rgba(0,0,0,0.15) !important; /* clean, bright dim */
}
.review-count {
    color: #007bff !important; /* Amazon blue */
    font-weight: 600 !important;
}
.ld-remind-save {
    position: relative !important;
    top: 1px !important;
}

/* Shared drawer button styles */
.ld-remind-panel .ld-remind-save,
.ld-remind-panel .ld-remind-cancel {
    display: inline-block !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    text-align: center !important;
    position: relative !important;
    top: 1px !important;
}

/* SAVE button */
.ld-remind-panel .ld-remind-save {
    background: #4CAF50 !important;
    color: white !important;
    border: none !important;
    width: auto !important;
}

/* CANCEL button */
.ld-remind-panel .ld-remind-cancel {
    background: #D8D6D2 !important;
    color: #1A1A1A !important;
    border: 1px solid #B8B5AF !important;
}
.remind-helper-text {
    font-size: 13px;
    color: #555;
    line-height: 1.3;
    max-width: 260px;
}

.remind-helper-text {
    background: #f3f3f3;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;      /* bigger */
    font-weight: 600;     /* bold-ish */
    color: #333;          /* darker for readability */
    margin-left: 8px;
}

.wip-banner {
  width: 100%;
  background: linear-gradient(90deg, #1ecbe1, #0fa3b1);
  color: white;
  padding: 6px 0 4px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  z-index: 2;
}




.page-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;

  width: auto;          /* prevents full-width stretching */
  margin-left: auto;    /* pushes it to the far right */
  white-space: nowrap;  /* prevents wrapping on mobile */
}

/* FORCE mega menu to scroll properly */
.mega-menu {
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: fixed !important; /* prevents clipping */
    top: 120px !important;      /* adjust if needed */
    width: 100% !important;
}
.mega-content {
    max-height: calc(90vh - 60px) !important;
    overflow-y: auto !important;
    padding-right: 12px !important;
}

/* Group Title */
.mega-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Group Description */
.mega-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* Column Titles */
.mega-col h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Links */
.mega-col a {
    display: block;
    font-size: 14px;
    color: #222;
    padding: 3px 0;
}

/* Optional: subtle background tint per group */
.mega-group {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* Base group styling */
.mega-group {
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Travel Gear */
.mega-group:nth-child(1) {
    background: rgba(0, 120, 255, 0.06); /* soft blue */
}

/* Travel Tech */
.mega-group:nth-child(2) {
    background: rgba(0, 200, 180, 0.06); /* soft teal */
}

/* Family Travel */
.mega-group:nth-child(3) {
    background: rgba(255, 220, 0, 0.08); /* soft yellow */
}

/* Resort Wear */
.mega-group:nth-child(4) {
    background: rgba(255, 150, 80, 0.07); /* soft peach */
}

/* Relaxing */
.mega-group:nth-child(5) {
    background: rgba(180, 120, 255, 0.07); /* soft lavender */
}
.mega-title {
    font-size: 20px;
    font-weight: 800; /* stronger bold */
    color: #1a1a1a;
    margin-bottom: 4px;
}
.mega-desc {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-bottom: 12px;
}

#site-identity {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #ff9a3c, #ff6f61, #ff9a3c);
  background-size: 300% 300%;
  animation: tropicalGlow 8s ease infinite;
  letter-spacing: 0.5px;
  border-radius: 6px;
  margin: 10px auto;
  width: 95%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}

@keyframes tropicalGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#travel-section {
    height: 100%;
    background-image: url('assets/logo/backsplash1.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* FIREFOX MOBILE FIX — CLEAN VERSION */
@-moz-document url-prefix() {

  html, body {
    overflow-x: hidden !important;
    -moz-text-size-adjust: 110% !important;
  }

  /* Fix category bar width */
  #billboard-categories {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  /* Fix category bar scaling */
  #billboard-categories {
    transform: scale(0.88);
    transform-origin: left center;
  }
}
/* FIREFOX FIX — KEEP LAYOUT, REMOVE INFLATION */
@-moz-document url-prefix() {

  .bottom-trust-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;

    gap: 50px !important; /* reduce Firefox gap inflation */
    padding: 20px !important;

    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .bottom-trust-section > * {
    flex: 1 1 0 !important; /* prevents stretching */
    min-width: 0 !important; /* prevents overflow */
  }
}
/* Chrome-only hack */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 600px) {
    html[lang="fr"] .nav-bar {
      transform: scale(0.92);
      transform-origin: center;
    }
  }
}
