/* ============================================================
   GLOBAL THEME — WHITE PREMIUM (EDGE TO EDGE)
============================================================ */

/* ================= TOKENS ================= */

:root{
  --bg:#ffffff;
  --paper:#ffffff;
  --paper-soft:#f8fafc;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;

  --brand:#6d28d9;
  --brand-soft:#ede9fe;

  --gold:#d4af37;

  --radius:14px;
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --shadow-soft:0 6px 18px rgba(2,6,23,.06);
}

/* ================= RESET ================= */

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,system-ui,sans-serif;
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

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

.page-wrap,
.container,
.wrap{
  width:100%;
  max-width:none;
  margin:0;
  padding-left:clamp(14px,2vw,32px);
  padding-right:clamp(14px,2vw,32px);
}

/* main-layout controls its own padding */
.main-layout{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}

/* Main grid with sidebar */

.main-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:28px;
  align-items:start;
}

@media(max-width:1000px){
  .main-layout{grid-template-columns:1fr}
}

/* ================= GLOBAL GRIDS ================= */

.profiles-grid,
.grid-auto{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:22px;
}

@media(min-width:1600px){
  .profiles-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
}

/* ================= CARDS ================= */

.escort-card{
  background:var(--paper);
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  transition:.25s ease;
}

.escort-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(2,6,23,.14);
  border-color:var(--brand);
}

.escort-card img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
}

.escort-meta-block{padding:12px}

.meta-row{
  display:flex;
  justify-content:space-between;
  font-size:.85rem;
  margin-bottom:4px;
}

.meta-row .name{font-weight:700}
.meta-row .location,
.meta-row .age{color:var(--muted)}
.meta-row .price{color:var(--brand);font-weight:700}

/* ================= MINI CARDS ================= */

.mini-profile{
  background:var(--paper);
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  padding:8px;
  transition:.25s ease;
}

.mini-profile:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(2,6,23,.14);
}

.mini-img-wrap{
  width:100%;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:10px;
  margin-bottom:6px;
}
.mini-img-wrap img{width:100%;height:100%;object-fit:cover}

.mini-name{font-size:.82rem;font-weight:700}
.mini-extra{display:flex;justify-content:space-between;font-size:.75rem}
.mini-location{color:var(--muted)}
.mini-price{color:var(--brand);font-weight:700}

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

.listing-block,
.side-panel,
.mini-section{
  background:var(--paper);
  border-radius:18px;
  padding:18px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

/* ================= SIDEBAR ================= */

.main-right{
  display:flex;
  flex-direction:column;
  gap:22px;
}

@media(min-width:992px){
  .main-right{position:sticky;top:90px}
}

/* ================= SORT BAR ================= */

.pro-sort{
  background:var(--paper-soft);
  border-radius:14px;
  padding:14px 18px;
  border:1px solid var(--line);
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.pro-sort select{
  flex:1;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
}

/* ================= HEADER (NEW WHITE) ================= */

.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header-top{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  gap:14px;
  align-items:center;
  padding:10px clamp(14px,2vw,32px);
}

.header-logo a{
  font-weight:800;
  font-size:20px;
  color:var(--brand);
}

.header-search form{display:flex;gap:6px}

.header-search input{
  width:100%;
  padding:8px 10px;
  border-radius:6px;
  border:1px solid var(--line);
}

.header-search button{
  background:var(--brand);
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:6px;
}

.header-ad img{height:38px;border-radius:8px}

.header-auth{display:flex;gap:8px}

.btn-auth{
  padding:6px 12px;
  border-radius:6px;
  border:1px solid var(--brand);
  color:var(--brand);
  font-size:13px;
}

.btn-register{background:var(--brand);color:#fff}

/* ================= NAV BAR ================= */

.header-nav{
  border-top:1px solid var(--line);
  background:#fff;
}

.nav-menu{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:center;
  padding:10px clamp(14px,2vw,32px);
  list-style:none;
}

.nav-menu a{
  font-size:13px;
  color:var(--brand);
}

.nav-menu a:hover{text-decoration:underline}

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

.footer{
  background:#f8fafc;
  border-top:1px solid var(--line);
  padding:40px clamp(14px,2vw,32px) 14px;
  color:var(--muted);
}

.footer-top{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:30px;
}

.footer-logo{font-weight:800;font-size:1.1rem;color:var(--brand)}
.footer-text{font-size:.8rem}

.footer-col h4{font-size:.85rem;margin-bottom:8px;color:var(--ink)}
.footer-col a{font-size:.8rem;color:var(--muted)}
.footer-col a:hover{color:var(--brand)}

.footer-bottom{
  text-align:center;
  margin-top:18px;
  padding-top:10px;
  border-top:1px solid var(--line);
  font-size:.75rem;
}

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

@media(max-width:768px){

  .header-top{
    grid-template-columns:1fr;
    gap:10px;
  }

  .header-auth{justify-content:flex-end}

  .main-layout{grid-template-columns:1fr}

  .footer-top{grid-template-columns:1fr 1fr}
}

@media(max-width:520px){
  .footer-top{grid-template-columns:1fr}
}
/* ============================================================
   VISIBILITY HELPERS
============================================================ */

.desktop-only{display:block}
.mobile-only{display:none}

@media(max-width:900px){
  .desktop-only{display:none}
  .mobile-only{display:block}
}

/* ============================================================
   HEADER SHELL
============================================================ */

.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:1000;
}

/* ============================================================
   TOP HEADER ROW
============================================================ */

.header-top{
  display:grid;
  grid-template-columns:auto 1fr auto auto auto;
  gap:12px;
  align-items:center;
  padding:10px clamp(14px,2vw,32px);
}

/* LOGO */

.header-logo a{
  font-weight:800;
  font-size:20px;
  color:var(--brand);
}

/* ============================================================
   SEARCH
============================================================ */

.header-search form{
  display:flex;
  gap:6px;
  width:100%;
}

.header-search input{
  flex:1;
  padding:9px 12px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#fff;
  font-size:.9rem;
}

.header-search button{
  background:var(--brand);
  color:#fff;
  border:none;
  padding:9px 16px;
  border-radius:8px;
  cursor:pointer;
  transition:.2s ease;
}

.header-search button:hover{
  opacity:.9;
}

/* ============================================================
   TOP BANNER AD
============================================================ */

.header-ad img{
  height:40px;
  width:auto;
  border-radius:8px;
  display:block;
}

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

.header-auth{
  display:flex;
  gap:8px;
}

.btn-auth{
  padding:7px 14px;
  border-radius:8px;
  border:1px solid var(--brand);
  color:var(--brand);
  font-size:13px;
  background:#fff;
}

.btn-register{
  background:var(--brand);
  color:#fff;
}

/* ============================================================
   MOBILE BURGER
============================================================ */

.mobile-burger{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:6px 10px;
  font-size:22px;
  cursor:pointer;
}

/* ============================================================
   DESKTOP NAV BAR
============================================================ */

.header-nav{
  border-top:1px solid var(--line);
  background:#fff;
}

.nav-menu{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:18px;
  padding:10px clamp(14px,2vw,32px);
  list-style:none;
}

.nav-menu a{
  font-size:13px;
  color:var(--brand);
  padding:4px 2px;
}

.nav-menu a:hover{
  text-decoration:underline;
}

/* ============================================================
   MOBILE DRAWER OVERLAY
============================================================ */

.global-drawer{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(6px);
  z-index:9999;

  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}

.global-drawer.open{
  opacity:1;
  pointer-events:auto;
}

/* ============================================================
   DRAWER PANEL (RIGHT SLIDE)
============================================================ */

.drawer-panel{
  position:absolute;
  top:0;
  right:0;
  height:100vh;
  width:86vw;
  max-width:360px;

  background:#fff;
  border-left:1px solid var(--line);
  box-shadow:-30px 0 80px rgba(2,6,23,.25);

  padding:18px 18px 26px;
  overflow-y:auto;

  transform:translateX(100%);
  transition:transform .35s ease;
}

.global-drawer.open .drawer-panel{
  transform:translateX(0);
}

/* Prevent scroll */
body.drawer-open{overflow:hidden}

/* ============================================================
   DRAWER HEADER
============================================================ */

.drawer-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

.drawer-btn{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:4px 10px;
  font-size:18px;
  cursor:pointer;
}

/* ============================================================
   DRAWER NAV
============================================================ */

.drawer-nav{margin-top:10px}

.drawer-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.drawer-list a{
  font-size:15px;
  color:var(--ink);
  padding:6px 2px;
}

.drawer-list a:hover{
  color:var(--brand);
}

/* ============================================================
   DRAWER AUTH
============================================================ */

.drawer-auth{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.drawer-auth a{
  display:block;
  margin-bottom:10px;
  font-weight:600;
  color:var(--brand);
}

/* ============================================================
   MOBILE HEADER LAYOUT
============================================================ */

@media(max-width:900px){

  .header-top{
    grid-template-columns:auto 1fr auto;
  }

  .header-ad,
  .header-auth{
    display:none;
  }

  .header-search input{
    font-size:.85rem;
  }

  .header-search button{
    padding:8px 12px;
  }

}

/* ============================================================
   SAFE TOUCH TARGETS
============================================================ */

button,a{
  -webkit-tap-highlight-color:transparent;
}

.header-ad img{
  max-height:40px;
  width:auto;
  border-radius:8px;
}

/* ============================================================
COMPACT PREMIUM COUNTRY → CITY SELECTOR (FIXED DROPDOWN)
============================================================ */

.cc-strip{
  width:100%;
  background:linear-gradient(180deg,#f0fdf8,#e6fbf2);
  padding:14px clamp(12px,2vw,32px) 18px;
  border-bottom:1px solid #cdeee2;
  position:relative; /* important for overall stacking */
  z-index:2;
}

/* TOP BAR */
.cc-top{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}

/* WRAP anchors dropdown */
.cc-country-wrap{
  position:relative;
  min-width:320px;
}

/* COUNTRY SELECT */
.cc-country-select{
  background:#fff;
  border:1px solid #bfe6d6;
  border-radius:10px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.82rem;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(2,6,23,.06);
  transition:.2s ease;
}

.cc-country-select:hover{
  border-color:#10b981;
  box-shadow:0 6px 14px rgba(16,185,129,.16);
}

.cc-arrow{ margin-left:auto; font-size:14px; opacity:.55; }

/* DROPDOWN (now positioned relative to cc-country-wrap) */
.cc-country-dropdown{
  position:absolute;
  left:0;
  top:calc(100% + 8px);
  width:100%;
  background:#fff;
  border:1px solid #bfe6d6;
  border-radius:12px;
  box-shadow:0 18px 36px rgba(2,6,23,.22);
  padding:6px;
  display:none;
  z-index:9999;
}

.cc-country-dropdown.open{ display:block; }

.cc-country-dropdown button{
  display:block;
  width:100%;
  text-align:left;
  padding:8px 12px;
  background:#fff;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-size:.82rem;
  transition:.15s ease;
}

.cc-country-dropdown button:hover{
  background:#ecfdf5;
  color:#047857;
}

/* ACTION PILLS */
.cc-actions{ display:flex; gap:8px; flex-wrap:wrap; }

.cc-pill{
  padding:7px 12px;
  border-radius:999px;
  border:1px solid #bfe6d6;
  background:#fff;
  font-size:.72rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  box-shadow:0 2px 6px rgba(2,6,23,.06);
  transition:.2s ease;
}

.cc-pill:hover{ box-shadow:0 6px 14px rgba(2,6,23,.18); }

.cc-available{ color:#dc2626; border-color:#fecaca; background:#fff7f7; }
.cc-verified{ color:#047857; border-color:#bbf7d0; background:#ecfdf5; }
.cc-filters{ background:#047857; color:#fff; border:none; }

/* CITY GRID */
.cc-cities{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:8px;
}

/* Prevent flash before JS */
.cc-city{ display:none; }

.cc-city{
  background:#fff;
  border:1px solid #bfe6d6;
  border-radius:999px;
  padding:6px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.72rem;
  cursor:pointer;
  transition:.2s ease;
  box-shadow:0 2px 6px rgba(2,6,23,.06);
}

.cc-city:hover{
  border-color:#10b981;
  box-shadow:0 6px 14px rgba(16,185,129,.22);
  transform:translateY(-1px);
}

.cc-city-name{
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cc-count{
  background:#facc15;
  color:#000;
  font-size:.65rem;
  padding:2px 6px;
  border-radius:999px;
  font-weight:800;
  margin-left:6px;
}

/* MOBILE */
@media(max-width:768px){

  .cc-top{ grid-template-columns:1fr; gap:8px; }

  .cc-country-wrap{ min-width:0; width:100%; }

  .cc-actions{ justify-content:space-between; }

  .cc-cities{
    grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
    gap:8px;
  }
}

/* ============================================================
COUNTRY SELECT — OPEN STATE POLISH
============================================================ */

/* Active field when open */
.cc-country-wrap.open .cc-country-select{
  border-color:#10b981;
  box-shadow:0 0 0 3px rgba(16,185,129,.18);
}

/* Rotate arrow */
.cc-country-wrap.open .cc-arrow{
  transform:rotate(180deg);
  transition:.2s ease;
}

/* Arrow default transition */
.cc-arrow{ transition:.2s ease; }

/* Highlight selected country in dropdown */
.cc-country-dropdown button.active{
  background:#ecfdf5;
  color:#047857;
  font-weight:600;
}

/* LANGUAGE FLAGS IN NAV */

.nav-lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:14px;
}

.lang-btn{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:6px 8px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.lang-btn:hover{
  background:#f1f5f9;
}

.global-drawer{
  pointer-events:none;
  opacity:0;
}

.global-drawer.open{
  pointer-events:auto;
  opacity:1;
}

.fade-start,
.fade-in{
  pointer-events:auto;
}

.fade-start::before,
.fade-start::after,
.fade-in::before,
.fade-in::after{
  pointer-events:none !important;
}
