/* Theme page title + header hide helper */
.fdm-hide-theme-title .page-title,
.fdm-hide-theme-title .page-title-area,
.fdm-hide-theme-title .page-title-wrap,
.fdm-hide-theme-title .page-header,
.fdm-hide-theme-title .titlebar,
.fdm-hide-theme-title .entry-header,
.fdm-hide-theme-title .breadcrumb-area,
.fdm-hide-theme-title .breadcrumbs-area,
.fdm-hide-theme-title .inner-banner,
.fdm-hide-theme-title .banner-area,
.fdm-hide-theme-title .uicore-page-title,
.fdm-hide-theme-title .uicore-page-title-wrap,
.fdm-hide-theme-title .uicore-entry-header,
.fdm-hide-theme-title .uicore-top-bar,
.fdm-hide-theme-title .uicore-header-wrapper,
.fdm-hide-theme-title .uicore-navbar,
.fdm-hide-theme-title #masthead,
.fdm-hide-theme-title header {display:none !important}

/* Generic reset only inside plugin area */
.fdm-reset,
.fdm-reset *{box-sizing:border-box}
.fdm-reset img{max-width:100%;height:auto;display:block}
.fdm-reset a{text-decoration:none}

/* Country Rows */
.fdm-country-rows{display:flex;flex-direction:column;gap:34px}
.fdm-country-row{display:flex;flex-direction:column;gap:14px}
.fdm-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fdm-country-title{margin:0;font-size:24px;font-weight:900;letter-spacing:.2px;color:#0f172a}
.fdm-row-controls{display:flex;gap:8px}
.fdm-nav-btn{width:38px;height:38px;border-radius:12px;border:1px solid rgba(15,23,42,.08);background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.08);font-size:20px;font-weight:900;cursor:pointer;line-height:1}
.fdm-nav-btn:hover{transform:translateY(-1px)}
.fdm-row-track{display:flex;gap:18px;overflow:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory;scroll-behavior:smooth}
.fdm-row-track::-webkit-scrollbar{height:8px}
.fdm-row-track::-webkit-scrollbar-thumb{background:rgba(15,23,42,.18);border-radius:999px}
.fdm-row-track .fdm-card{min-width:300px;max-width:300px;scroll-snap-align:start}
@media (max-width:520px){.fdm-row-track .fdm-card{min-width:86vw;max-width:86vw}}

/* Cards */
.fdm-item{color:inherit;text-decoration:none}
.fdm-empty{padding:18px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.fdm-card{border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.12);transition:transform .18s ease, box-shadow .18s ease}
.fdm-card:hover{transform:translateY(-4px);box-shadow:0 26px 60px rgba(15,23,42,.18)}
.fdm-card-media{height:360px;background:#dbe4f0;background-size:cover;background-position:center;position:relative;display:flex;flex-direction:column;justify-content:space-between}
.fdm-card-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.15) 0%,rgba(15,23,42,.06) 25%,rgba(15,23,42,.78) 100%)}
.fdm-card-top,.fdm-card-bottom{position:relative;z-index:2}
.fdm-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:16px}
.fdm-card-bottom{padding:18px;color:#fff}
.fdm-card-price{background:#fff;color:#0f172a;font-weight:900;padding:10px 14px;border-radius:999px;box-shadow:0 10px 25px rgba(15,23,42,.15)}
.fdm-card-badge{background:rgba(15,23,42,.82);color:#fff;font-weight:800;padding:8px 12px;border-radius:999px;font-size:12px;backdrop-filter:blur(6px)}
.fdm-card-route{font-size:22px;font-weight:900;letter-spacing:.2px;line-height:1.2}
.fdm-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:700;backdrop-filter:blur(6px)}
.fdm-card-chips{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.fdm-card-months{margin-top:12px;opacity:.95;font-size:14px}

/* Single detail - more robust and theme-proof */
body.single-flight_deal .fdm-single-wrap{max-width:1180px !important;margin:0 auto !important;padding:32px 18px 56px !important}
body.single-flight_deal .fdm-single-shell{display:flex !important;flex-direction:column !important;gap:24px !important}
body.single-flight_deal .fdm-single-hero-card{display:grid !important;grid-template-columns:minmax(320px,520px) 1fr !important;align-items:stretch !important;overflow:hidden !important;border-radius:28px !important;background:#fff !important;box-shadow:0 24px 70px rgba(15,23,42,.12) !important}
body.single-flight_deal .fdm-single-hero-media{min-height:420px !important;background:#dbe4f0 !important;background-size:cover !important;background-position:center !important}
body.single-flight_deal .fdm-single-hero-content{padding:34px !important;display:flex !important;flex-direction:column !important;justify-content:center !important;gap:0 !important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important}
body.single-flight_deal .fdm-kicker{display:inline-flex !important;align-self:flex-start !important;background:#e0f2fe !important;color:#075985 !important;padding:8px 12px !important;border-radius:999px !important;font-size:12px !important;font-weight:800 !important;margin-bottom:14px !important}
body.single-flight_deal .fdm-single-title{color:#0f172a !important;font-size:44px !important;line-height:1.06 !important;margin:0 !important;font-weight:900 !important}
body.single-flight_deal .fdm-single-sub{display:flex !important;flex-wrap:wrap !important;gap:10px !important;margin-top:16px !important}
body.single-flight_deal .fdm-single-sub .fdm-chip{background:#eef2ff !important;color:#312e81 !important}
body.single-flight_deal .fdm-single-price-row{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:18px !important;margin-top:28px !important;flex-wrap:wrap !important}
body.single-flight_deal .fdm-single-price{display:flex !important;flex-direction:column !important;gap:6px !important}
body.single-flight_deal .fdm-old{text-decoration:line-through !important;opacity:.65 !important;color:#64748b !important;font-weight:700 !important}
body.single-flight_deal .fdm-new{color:#0f766e !important;font-weight:950 !important;font-size:38px !important;line-height:1 !important}
body.single-flight_deal .fdm-cta{background:#0f766e !important;color:#fff !important;font-weight:900 !important;padding:14px 22px !important;border-radius:14px !important;text-decoration:none !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;border:none !important}
body.single-flight_deal .fdm-cta:hover{opacity:.94 !important;transform:translateY(-1px)}
body.single-flight_deal .fdm-cta.full{width:100% !important}
body.single-flight_deal .fdm-single-note{margin-top:12px !important;color:#64748b !important;font-size:13px !important}
body.single-flight_deal .fdm-cols{display:grid !important;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr) !important;gap:20px !important}
body.single-flight_deal .fdm-box{background:#fff !important;border:1px solid rgba(15,23,42,.06) !important;border-radius:22px !important;padding:24px !important;box-shadow:0 14px 34px rgba(15,23,42,.06) !important}
body.single-flight_deal .fdm-box h2,body.single-flight_deal .fdm-box h3{margin:0 0 16px !important;color:#0f172a !important;font-weight:800 !important}
body.single-flight_deal .fdm-info-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
body.single-flight_deal .fdm-info-grid>div{padding:14px 16px !important;border-radius:16px !important;background:#f8fafc !important;border:1px solid #e2e8f0 !important;color:#334155 !important}
body.single-flight_deal .fdm-rich{line-height:1.8 !important;color:#334155 !important;font-size:15px !important}
body.single-flight_deal .fdm-rich p:first-child{margin-top:0 !important}
body.single-flight_deal .fdm-sticky{position:sticky !important;top:18px !important}
body.single-flight_deal .fdm-side-price{display:flex !important;align-items:baseline !important;gap:10px !important;margin:10px 0 12px !important;flex-wrap:wrap !important}
body.single-flight_deal .fdm-small{font-size:12px !important;opacity:.75 !important;margin-top:10px !important;color:#64748b !important}

.fdm-archive{max-width:1200px;margin:0 auto;padding:26px 18px 40px}
.fdm-archive-head{margin-bottom:24px}
.fdm-archive-head h1{margin:0 0 8px;font-size:36px;color:#0f172a}
.fdm-archive-head p{margin:0;color:#64748b}

@media (max-width:920px){
  body.single-flight_deal .fdm-single-hero-card{grid-template-columns:1fr !important}
  body.single-flight_deal .fdm-single-hero-media{min-height:300px !important}
  body.single-flight_deal .fdm-single-title{font-size:32px !important}
  body.single-flight_deal .fdm-cols{grid-template-columns:1fr !important}
}
@media (max-width:560px){
  body.single-flight_deal .fdm-info-grid{grid-template-columns:1fr !important}
  body.single-flight_deal .fdm-single-wrap{padding:20px 14px 40px !important}
  body.single-flight_deal .fdm-single-hero-content{padding:22px !important}
  body.single-flight_deal .fdm-new{font-size:32px !important}
}
.fdm-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 28px;
  width: 100%;
}

.fdm-filter-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.fdm-filter-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.fdm-country-filter {
  width: 100%;
  height: 3.5rem;
  padding: 0 3.25rem 0 1rem;
  border: 1px solid #dbe2ea;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    background 0.25s ease;
}

