/* BYT HERO — all screens — single source */

.byt-hero-image-section{position:relative;width:100%;overflow:visible;background:transparent;display:flex;align-items:flex-end}
.byt-hero-bg{position:absolute;inset:0;z-index:0;overflow:hidden}
.byt-hero-swiper{position:absolute;inset:0;width:100%;height:100%}
.byt-hero-swiper .swiper-wrapper,.byt-hero-swiper .swiper-slide{width:100%;height:100%}
.byt-hero-swiper .swiper-slide{position:relative;overflow:hidden}
.byt-slide-link{position:absolute;inset:0;z-index:2;display:block;cursor:pointer;text-decoration:none;background:transparent}
.byt-hero-picture{display:block;width:100%;height:100%}
.byt-hero-picture img,.byt-hero-fallback-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.byt-hero-overlay{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to bottom,rgba(8,18,38,0.20) 0%,rgba(8,18,38,0.12) 30%,rgba(8,18,38,0.58) 68%,rgba(8,18,38,0.90) 100%)}
.byt-hero-headline{position:relative;z-index:2;width:100%;text-align:center;pointer-events:none}
.byt-hero-title{font-weight:700;color:#fff;line-height:1.2;margin:0 0 0.25rem;letter-spacing:-0.02em;text-shadow:0 2px 16px rgba(0,0,0,0.55)}
.byt-hero-subtitle{color:rgba(255,255,255,0.88);margin:0;text-shadow:0 1px 6px rgba(0,0,0,0.4)}
.byt-slider-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:10;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.18);border:1px solid rgba(255,255,255,0.25);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 0.18s}
.byt-slider-next{right:0.75rem}.byt-slider-prev{left:0.75rem}
[dir="rtl"] .byt-slider-next{right:auto;left:0.75rem}
[dir="rtl"] .byt-slider-prev{left:auto;right:0.75rem}
.byt-slider-btn:hover{background:rgba(255,255,255,0.32)}

/* Search section */
.byt-search-section{width:100%;overflow:visible}
.byt-search-inner{width:100%;margin:0 auto;overflow:visible}
.byt-tabs{display:flex;border-bottom:2px solid #e8edf2;margin-bottom:1rem}
.byt-tab{padding:0.875rem 1.25rem;font-size:0.9375rem;font-weight:600;color:#6b7280;background:transparent;border:none;border-bottom:3px solid transparent;margin-bottom:-2px;cursor:pointer;white-space:nowrap;transition:color 0.18s,border-color 0.18s}
.byt-tab--active{color:#2563eb;border-bottom-color:#2563eb}
.byt-tab:hover{color:#1e40af}
.byt-panel{display:flex;flex-direction:column;gap:0.625rem}
.byt-panel[hidden]{display:none}
.byt-search-form{display:flex;gap:0.5rem}
.byt-field{position:relative;display:flex;align-items:center}
.byt-field-icon{position:absolute;left:0.875rem;color:#9ca3af;pointer-events:none;z-index:1}
[dir="rtl"] .byt-field-icon{left:auto;right:0.875rem}
.byt-input{width:100%;padding:0 1rem 0 2.75rem;border:1px solid #ebebeb;border-radius:12px;font-size:0.9375rem;color:#111111;background:#fff;outline:none;transition:border-color 0.18s,box-shadow 0.18s}
[dir="rtl"] .byt-input{padding:0 2.75rem 0 1rem}
.byt-input::placeholder{color:#9ca3af}
.byt-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,0.10)}
.byt-select{width:100%;padding:0 1.75rem 0 0.875rem;border:1px solid #ebebeb;border-radius:12px;font-size:0.875rem;font-weight:400;color:#111111;background:#fff;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5rem center;background-size:14px;outline:none;transition:border-color 0.18s,box-shadow 0.18s}
.byt-select:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,0.10)}
.byt-search-btn{display:flex;align-items:center;justify-content:center;gap:0.5rem;padding:0 1.75rem;background:#2563eb;color:#fff;border:none;border-radius:50px;font-weight:600;font-size:0.9375rem;cursor:pointer;white-space:nowrap;transition:background 0.18s;flex-shrink:0}
.byt-search-btn:hover{background:#1d4ed8}
.byt-pills{display:flex;gap:0.4rem;margin-top:0.75rem;position:relative;z-index:1}
.byt-pill{display:inline-flex;align-items:center;padding:0.3rem 0.875rem;background:#eff6ff;border:1px solid #bfdbfe;border-radius:100px;color:#1d4ed8;font-size:0.8125rem;font-weight:500;text-decoration:none;white-space:nowrap;transition:background 0.15s}
.byt-pill:hover{background:#dbeafe;color:#1e40af;text-decoration:none}

/* Mobile < 768px: split layout — image top, search below */
@media (max-width:767px){
  .byt-hero-image-section{height:62vw;min-height:260px;max-height:360px}
  .byt-hero-headline{padding:0 1rem 1.5rem}
  .byt-hero-title{font-size:clamp(1.375rem,6.5vw,1.75rem);font-weight:800;line-height:1.1}
  .byt-hero-subtitle{font-size:0.75rem}
  .byt-search-section{background:#fff;border-bottom:1px solid #f1f5f9;padding:0}
  .byt-search-inner{padding:1rem 0.875rem 1.25rem;max-width:100%;background:#fff;border-radius:0;box-shadow:none;margin-top:0}
  .byt-search-form{flex-direction:column;gap:0.5rem}
  .byt-field,.byt-field--location{width:100%}
  .byt-input,.byt-select{height:48px}
  .byt-search-btn{width:100%;height:48px}
  .byt-pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .byt-pills::-webkit-scrollbar{display:none}
  .byt-pill{flex-shrink:0}
}

/* Tablet 768–1023px */
@media (min-width:768px) and (max-width:1023px){
  .byt-hero-image-section{height:72vh;min-height:440px;max-height:620px}
  .byt-hero-headline{padding:0 1.5rem 12.5rem}
  .byt-hero-title{font-size:clamp(1.625rem,3vw,2.375rem);font-weight:800;letter-spacing:-0.03em}
  .byt-hero-subtitle{font-size:clamp(0.875rem,1.5vw,1rem)}
  .byt-search-section{margin-top:-180px;position:relative;z-index:20;background:transparent;border:none;padding:0 1.5rem 1.5rem}
  .byt-search-inner{background:#fff;border-radius:12px;box-shadow:0 4px 24px rgba(0,0,0,0.14),0 1px 6px rgba(0,0,0,0.08);padding:1.25rem 1.5rem 1.25rem;max-width:620px;overflow:visible}
  .byt-search-form{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:0.5rem}
  .byt-field--location{flex:3;min-width:0}
  .byt-field:not(.byt-field--location){flex:1;min-width:100px}
  .byt-input,.byt-select{height:46px}
  .byt-search-btn{height:46px;width:auto;min-width:90px}
  .byt-pills{flex-wrap:wrap}
}

/* Desktop >= 1024px */
@media (min-width:1024px){
  .byt-hero-image-section{height:84vh;min-height:580px;max-height:900px}
  .byt-hero-headline{padding:0 2rem 15rem}
  .byt-hero-title{font-size:clamp(1.875rem,3.5vw,3rem);font-weight:800;letter-spacing:-0.03em}
  .byt-hero-subtitle{font-size:clamp(0.875rem,1.5vw,1.0625rem)}
  .byt-search-section{margin-top:-220px;position:relative;z-index:20;background:transparent;border:none;padding:0 2rem 0;margin-bottom:-1px}
  .byt-search-inner{background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,0.22),0 4px 12px rgba(0,0,0,0.12);padding:1.375rem 1.75rem 1.25rem;max-width:720px;overflow:visible}
  .byt-search-form{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:0.5rem}
  .byt-field--location{flex:3.5;min-width:0}
  .byt-field:not(.byt-field--location){flex:1.2;min-width:110px}
  .byt-input,.byt-select{height:48px}
  .byt-search-btn{height:48px;width:auto;min-width:110px}
  .byt-pills{flex-wrap:wrap}
}

/* Large desktop >= 1440px */
@media (min-width:1440px){
  .byt-hero-image-section{height:85vh;max-height:960px}
  .byt-search-section{margin-top:-240px}
  .byt-search-inner{max-width:740px}
}


/* ── Custom Dropdown (.byt-dd-*) ──────────────────────────────── */
.byt-dd-wrap{position:relative;z-index:200}
.byt-dd-trigger{width:100%;height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 0.875rem;border:1px solid #ebebeb;border-radius:12px;background:#fff;font-size:0.875rem;color:#9ca3af;cursor:pointer;text-align:start;transition:border-color 0.18s,box-shadow 0.18s;gap:0.375rem;overflow:hidden;white-space:nowrap}
.byt-dd-trigger.has-value{color:#111111}
.byt-dd-trigger:focus,.byt-dd-trigger[aria-expanded="true"]{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,0.10);outline:none}
.byt-dd-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.byt-dd-caret{flex-shrink:0;color:#9ca3af;transition:transform 0.18s}
.byt-dd-trigger[aria-expanded="true"] .byt-dd-caret{transform:rotate(180deg)}
.byt-dd-wrap{position:relative!important}.byt-dd-panel{position:fixed;min-width:160px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,0.13),0 2px 6px rgba(0,0,0,0.06);z-index:99999;list-style:none;margin:0;padding:0.375rem 0;display:none;max-height:260px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}
.byt-dd-wrap.open .byt-dd-panel{display:block}body>.byt-dd-panel{display:block}
.byt-dd-opt{padding:0.625rem 1rem;font-size:0.9rem;color:#111;cursor:pointer;transition:background 0.12s}
.byt-dd-opt:hover{background:#eff6ff;color:#2563eb}
.byt-dd-opt.selected{background:#eff6ff;color:#2563eb;font-weight:600}
[dir="rtl"] .byt-dd-trigger{text-align:end}
[dir="rtl"] .byt-dd-panel{left:0;right:0}

/* ── Trust Stat Badges (.byt-hero-stats / .byt-stat-badge) ────── */
.byt-hero-stats{display:flex;gap:0.625rem;justify-content:center;flex-wrap:wrap;margin-top:0.75rem;pointer-events:none}
.byt-stat-badge{display:flex;flex-direction:column;align-items:center;padding:0.35rem 0.875rem;background:rgba(255,255,255,0.14);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.28);border-radius:8px;min-width:72px}
.byt-stat-val{font-size:1rem;font-weight:800;color:#fff;line-height:1.1}
.byt-stat-lbl{font-size:0.625rem;color:rgba(255,255,255,0.82);margin-top:2px;text-align:center;white-space:nowrap}
@media(max-width:767px){
  .byt-hero-stats{gap:0.4rem;margin-top:0.5rem}
  .byt-stat-badge{padding:0.3rem 0.625rem;min-width:60px}
  .byt-stat-val{font-size:0.875rem}
  .byt-stat-lbl{font-size:0.5625rem}
}
@media(min-width:768px){.byt-stat-val{font-size:1.125rem}}

.byt-dd-wrap.open{z-index:9999}




/* ── RTL: Search card ────────────────────────────────────────────── */
/* IMPORTANT: direction:rtl is inherited from <html dir="rtl">.
   With direction:rtl, flex-direction:row already flows right→left naturally.
   Adding flex-direction:row-reverse double-reverses back to LTR — wrong.
   So: NO flex-direction overrides on .byt-tabs, .byt-pills, or .byt-dd-trigger. */

/* Dropdown trigger & options: text alignment only */
[dir="rtl"] .byt-dd-trigger          { text-align: end; }
[dir="rtl"] .byt-dd-label            { text-align: right; }
[dir="rtl"] .byt-dd-opt              { text-align: right; }

/* Hero headline alignment */
[dir="rtl"] .byt-hero-headline       { text-align: right; }
