/* LOST iN Membership landing page — ported from lostin-membership.html mockup.
 * Every class is `lm-`-prefixed AND every rule is scoped under #lostin-membership
 * so neither the active theme nor the msd-travel results stylesheet (which styles
 * generic names like .hotel-card / .hotel-name / .section / .nav) can bleed in or out.
 * Match the mockup exactly — do not restyle. */

#lostin-membership { --lm-navy:#0D1F3C; --lm-blue:#1B3A6B; --lm-blue-light:#EEF2F8; --lm-blue-mid:#c5d8f5; --lm-white:#ffffff; --lm-off:#fafcff; --lm-grey-1:#f5f5f3; --lm-grey-2:#e8e8e8; --lm-grey-3:#999; --lm-grey-4:#555; --lm-text:#0D1F3C; }

/* box-sizing only — do NOT blanket-reset margin/padding, or it out-specifies the
   Tailwind utility classes on embedded widgets (the msd-travel search, the modals)
   and destroys their layout + dropdowns. Reset margins only on our own text tags. */
#lostin-membership, #lostin-membership * { box-sizing: border-box; }
#lostin-membership h1, #lostin-membership h2, #lostin-membership h3, #lostin-membership h4, #lostin-membership p { margin: 0; }
#lostin-membership { font-family: 'Inter', sans-serif; color: var(--lm-text); background: var(--lm-white); line-height: 1.5; }
#lostin-membership img { max-width: 100%; }

/* msd-travel signup/login modals rendered by this plugin so the Join CTAs open a
   real modal on this page. Force-hidden until opened — beats Tailwind's `flex`
   class, which otherwise wins by load order and flashes the modal open. Unscoped
   on purpose (targets only msd-travel's .auth-popup modals). */
.auth-popup.modal-hidden { display: none !important; }

/* Force the Elementor container that wraps this plugin to full width / no side
   padding, so every section background and the hero band run edge to edge. */
.e-con:has(#lostin-membership), .e-con-inner:has(#lostin-membership) { padding: 0 !important; max-width: 100% !important; }

/* HERO */
#lostin-membership .lm-hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #0a1428 0%, #1a2f50 40%, #0d2040 100%); background-size: cover; background-position: center; padding: 0 48px; }
#lostin-membership .lm-hero::after { content: ''; position: absolute; inset: 0; background: rgba(10, 20, 40, 0.45); z-index: 1; }
/* Same centered 1000px container as .lm-section-inner so the hero text shares the
   section content's left edge at every viewport width (no drift on wide screens). */
#lostin-membership .lm-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1000px; margin: 0 auto; padding: 88px 0; }
#lostin-membership .lm-hero-text { max-width: 680px; }
#lostin-membership .lm-hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
#lostin-membership .lm-hero-title { font-size: 56px; font-weight: 800; color: var(--lm-white); line-height: 1.0; margin-bottom: 22px; }
#lostin-membership .lm-hero-sub { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
#lostin-membership .lm-hero-ctas { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
#lostin-membership .lm-btn-primary { background: var(--lm-white); color: var(--lm-navy); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; padding: 13px 28px; border-radius: 8px; border: none; cursor: pointer; }
#lostin-membership .lm-btn-ghost { background: transparent; color: rgba(255,255,255,0.7); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; padding: 13px 0; border: none; cursor: pointer; }
#lostin-membership .lm-hero-offer { font-size: 11px; color: rgba(255,255,255,0.4); }
#lostin-membership .lm-hero-place { position: absolute; bottom: 26px; right: 34px; z-index: 3; color: #fff; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; text-align: right; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
@media (max-width: 768px) { #lostin-membership .lm-hero-place { font-size: 12px; bottom: 16px; right: 20px; } }

/* SECTIONS */
#lostin-membership .lm-section { padding: 44px 48px; }
#lostin-membership .lm-section.lm-alt { background: var(--lm-grey-1); }
#lostin-membership .lm-section-inner { max-width: 1000px; margin: 0 auto; }
#lostin-membership .lm-section-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lm-blue); margin-bottom: 10px; }
#lostin-membership .lm-section-title { font-size: 38px; font-weight: 700; color: var(--lm-navy); line-height: 1.15; margin-bottom: 16px; }
#lostin-membership .lm-section-title em { font-style: italic; font-weight: 300; }
#lostin-membership .lm-section-body { font-size: 15px; color: var(--lm-grey-4); line-height: 1.75; margin-bottom: 20px; max-width: 460px; }
#lostin-membership .lm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
#lostin-membership .lm-split.lm-flip { direction: rtl; }
#lostin-membership .lm-split.lm-flip > * { direction: ltr; }
#lostin-membership .lm-screen-ph { background: var(--lm-blue-light); border-radius: 14px; border: 1px solid var(--lm-grey-2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--lm-grey-3); text-align: center; padding: 20px; line-height: 1.7; overflow: hidden; }
#lostin-membership .lm-screen-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }

/* CITY TABS + HOTEL CARDS — copied verbatim from the deals board (lostin-deals /
   /test-members) so they are pixel-identical. */
#lostin-membership .ld-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
#lostin-membership button.ld-tab { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; padding: 8px 18px; border-radius: 100px; border: 1.5px solid #ccc; background-color: #fff; color: #888; cursor: pointer; transition: all 0.15s ease; white-space: nowrap; line-height: 1; }
#lostin-membership button.ld-tab:hover { border-color: #1B3A6B; color: #1B3A6B; }
#lostin-membership button.ld-tab.active { background-color: #1B3A6B; color: #fff; border-color: #1B3A6B; font-weight: 600; }
#lostin-membership .ld-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #e8e8e8; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
#lostin-membership .ld-card { background: #fff; display: flex; flex-direction: column; cursor: pointer; transition: background 0.15s; text-decoration: none; height: auto; border: 0; border-radius: 0; }
#lostin-membership .ld-card:hover { background: #f7f9fc; border-color: transparent; }
#lostin-membership .ld-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #EEF2F8; }
#lostin-membership .ld-thumb-placeholder { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #EEF2F8; }
#lostin-membership .ld-body { padding: 13px 14px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
#lostin-membership .ld-name { font-size: 12px; font-weight: 500; color: #0D1F3C; line-height: 1.35; margin: 0; }
#lostin-membership .ld-location { font-size: 11px; color: #999; margin: 0; font-weight: 400; }
#lostin-membership .ld-pricing { margin-top: auto; padding-top: 10px; }
#lostin-membership .ld-scratch { font-size: 11px; color: #bbb; text-decoration: line-through; margin-bottom: 3px; font-weight: 400; }
#lostin-membership .ld-row { display: flex; align-items: center; gap: 8px; }
#lostin-membership .ld-price { font-size: 17px; font-weight: 600; color: #0D1F3C; }
#lostin-membership .ld-savings { font-size: 10px; font-weight: 600; background: #1B3A6B; color: #fff; padding: 3px 7px; border-radius: 4px; letter-spacing: 0.03em; }
#lostin-membership .ld-fade-in { animation: lostinFadeIn 0.2s ease; }
@keyframes lostinFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* SEARCH BAR — wrapper is margin only; the msd-travel search brings its own UI.
   No overflow:hidden here (it would clip the autocomplete dropdown). */
#lostin-membership .lm-search-wrap { margin-bottom: 10px; }
/* Hide the msd "Around my area" geolocation item on this page only (JS shows it
   inline, so !important is needed to override). */
#lostin-membership .msd-around-me { display: none !important; }

/* CITY GUIDES */
#lostin-membership .lm-see-cities { font-size: 13px; font-weight: 500; color: var(--lm-blue); text-decoration: underline; cursor: pointer; }
#lostin-membership .lm-cities-drawer { overflow: hidden; max-height: 0; transition: max-height 0.35s ease, opacity 0.3s ease; opacity: 0; }
#lostin-membership .lm-cities-drawer.open { max-height: 800px; opacity: 1; }
#lostin-membership .lm-region { margin-bottom: 20px; }
#lostin-membership .lm-region-label { font-size: 10px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--lm-blue); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #f0f0f0; }
#lostin-membership .lm-city-list { display: flex; flex-wrap: wrap; gap: 6px; }
#lostin-membership .lm-city-row { font-size: 12px; font-weight: 500; color: var(--lm-navy); background: var(--lm-blue-light); border: 0.5px solid var(--lm-blue-mid); padding: 4px 12px; border-radius: 100px; }
#lostin-membership .lm-city-row.lm-soon { color: #5C0000; background: #FADEDC; border-color: #D98080; }
#lostin-membership .lm-guides-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
#lostin-membership .lm-guide-col { display: flex; flex-direction: column; gap: 12px; }
#lostin-membership .lm-guide-img { background: var(--lm-blue-light); border-radius: 12px; aspect-ratio: 4/3; width: 100%; object-fit: cover; display: block; }
#lostin-membership .lm-guide-cap { font-size: 13px; font-weight: 600; color: var(--lm-navy); text-align: center; }
#lostin-membership .lm-free-bar { margin-top: 24px; background: #E6E48D; border-radius: 12px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#lostin-membership .lm-free-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(13,31,60,0.5); margin-bottom: 5px; }
#lostin-membership .lm-free-title { font-size: 16px; font-weight: 700; color: var(--lm-navy); }
#lostin-membership .lm-free-btns { display: flex; gap: 8px; flex-shrink: 0; }
#lostin-membership .lm-free-btn { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--lm-navy); background: rgba(13,31,60,0.12); border: 1px solid rgba(13,31,60,0.2); padding: 6px 14px; border-radius: 100px; text-decoration: none; white-space: nowrap; }

/* PRICING */
#lostin-membership .lm-pricing-wrap { max-width: 580px; margin: 0 auto; }
#lostin-membership .lm-pricing-intro { text-align: center; margin-bottom: 40px; }
#lostin-membership .lm-pricing-intro .lm-section-title { text-align: center; }
#lostin-membership .lm-pricing-sub { font-size: 15px; color: var(--lm-grey-4); text-align: center; line-height: 1.7; margin-top: 10px; }
#lostin-membership .lm-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#lostin-membership .lm-price-card { border: 1px solid var(--lm-grey-2); border-radius: 14px; padding: 28px; background: var(--lm-white); }
#lostin-membership .lm-price-header { height: 80px; padding-bottom: 16px; }
#lostin-membership .lm-price-card.lm-featured { border: 2px solid var(--lm-navy); position: relative; }
#lostin-membership .lm-price-card.lm-featured::before { content: 'Best Trips'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--lm-navy); color: var(--lm-white); font-size: 10px; font-weight: 600; padding: 3px 14px; border-radius: 100px; letter-spacing: 0.06em; white-space: nowrap; }
#lostin-membership .lm-price-tier { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lm-grey-3); margin-bottom: 10px; }
#lostin-membership .lm-price-amount { font-size: 44px; font-weight: 700; color: var(--lm-navy); line-height: 1; margin-bottom: 0; display: inline-flex; align-items: center; }
#lostin-membership .lm-price-amount sup { font-size: 26px; vertical-align: baseline; line-height: 1; }
#lostin-membership .lm-price-was { font-size: 18px; font-weight: 500; color: var(--lm-grey-3); text-decoration: line-through; line-height: 1; }
#lostin-membership .lm-price-divider { height: 1px; background: var(--lm-grey-2); margin-bottom: 18px; }
#lostin-membership .lm-price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
#lostin-membership .lm-pf { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; }
#lostin-membership .lm-pf-check { width: 17px; height: 17px; border-radius: 50%; background: var(--lm-blue-light); color: var(--lm-blue); display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; margin-top: 1px; font-weight: 700; }
#lostin-membership .lm-pf-check.lm-no { background: var(--lm-grey-1); color: var(--lm-grey-3); }
#lostin-membership .lm-pf-text { color: var(--lm-grey-4); line-height: 1.4; }
#lostin-membership .lm-pf-text.lm-muted { color: var(--lm-grey-3); text-decoration: line-through; }
#lostin-membership .lm-price-btn { display: block; width: 100%; padding: 13px; border-radius: 8px; border: none; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }
#lostin-membership .lm-price-btn.lm-main { background: var(--lm-navy); color: var(--lm-white); }
#lostin-membership .lm-price-btn.lm-sec { background: var(--lm-grey-1); color: var(--lm-grey-4); }
#lostin-membership .lm-price-note { font-size: 11px; color: var(--lm-grey-3); text-align: center; margin-top: 10px; line-height: 1.5; }

/* RESPONSIVE — mockup didn't define mobile; stack grids at 768, full-width cards at 480 (per spec). */
@media (max-width: 900px) {
  #lostin-membership .ld-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #lostin-membership .lm-hero { padding: 0 24px; }
  #lostin-membership .lm-hero-inner { padding: 64px 0; }
  #lostin-membership .lm-hero-title { font-size: 40px; }
  #lostin-membership .lm-section { padding: 32px 24px; }
  #lostin-membership .lm-section-title { font-size: 30px; }
  #lostin-membership .lm-split, #lostin-membership .lm-guides-2col, #lostin-membership .lm-pricing-grid { grid-template-columns: 1fr; gap: 28px; }
  #lostin-membership .lm-split.lm-flip { direction: ltr; }
  #lostin-membership .lm-free-bar { flex-direction: column; align-items: flex-start; }
  #lostin-membership .lm-search-bar { grid-template-columns: 1fr 1fr; }
  #lostin-membership .lm-sbtn { grid-column: 1 / -1; padding: 12px; }
}
@media (max-width: 480px) {
  #lostin-membership .ld-grid { grid-template-columns: 1fr; }
  #lostin-membership .lm-hero-title { font-size: 34px; }
  #lostin-membership .lm-hero-ctas { flex-direction: column; align-items: stretch; }
  #lostin-membership .lm-btn-primary { text-align: center; }
  #lostin-membership .lm-search-bar { grid-template-columns: 1fr; }
  #lostin-membership .lm-sf { border-right: none; border-bottom: 1px solid var(--lm-grey-2); }
}
