/* Global responsive hardening for all pages */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe,
embed,
object,
svg {
  max-width: 100%;
  height: auto;
}

a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
small,
label,
button {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Prevent layout blowouts from fixed-width children */
.all,
.all-topnav,
.all-body,
.contentwrapper,
.body,
.bodybox,
.sidebar-left,
.sidebar-right,
.footer,
.header-top-bar,
.slider,
.sliderall,
.quicksearch,
.dropdownlinks,
.form-styling,
.form-styling .form-input,
.form-styling .form-input .input,
.form-styling .form-input .textarea,
.form-styling .form-input select,
.girlsingle,
.girlsingle .girlinfo,
.girlsingle .aboutme,
.girlsingle .contact,
.girlsingle .thumbs,
.review-wrapper,
.theblog,
.registerpage,
.woocommerce,
.woocommerce-page {
  max-width: 100%;
  min-width: 0;
}

/* Better default width on smaller laptops */
@media (max-width: 1366px) {
  .body {
    margin-left: 220px;
    margin-right: 220px;
  }

  .sidebar-left,
  .sidebar-right {
    width: 220px;
  }

  .sidebar-right {
    margin-left: -220px;
  }
}

@media (max-width: 1200px) {
  .body {
    margin-left: 200px;
    margin-right: 200px;
  }

  .sidebar-left,
  .sidebar-right {
    width: 200px;
  }

  .sidebar-right {
    margin-left: -200px;
  }
}

/* Tablet and below */
@media (max-width: 1024px) {
  .header-top-bar {
    padding: 12px;
  }

  .header-top-bar .header-nav,
  .header-top-bar .subnav-menu-wrapper,
  .header-top-bar .subnav-menu {
    width: 100%;
    min-height: 0;
  }

  .header-top-bar .header-nav .header-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    float: none;
  }

  .header-top-bar .header-nav .header-menu li {
    float: none;
  }

  .header-top-bar .header-nav .header-menu li a {
    padding: 4px 10px;
    line-height: 1.6em;
  }

  .girl {
    width: 33.33%;
  }

  .girl.tour-thumb {
    width: 33.33%;
  }

  .girlsingle .girlinfo,
  .girlsingle .girlinfo.l,
  .girlsingle .girlinfo.r,
  .girlsingle.agency-profile .bigimage,
  .girlsingle.agency-profile .agencydetails,
  .girlsingle.agency-profile .agencydetails.agencydetails-noimg {
    width: 100% !important;
    float: none;
    padding-left: 0;
    padding-right: 0;
  }

  .girlsingle .thumbs .profile-video-thumb-wrapper,
  .girlsingle .thumbs .profile-img-thumb-wrapper {
    width: 33.33%;
  }

  .theblog img,
  .image-next-to-review {
    float: none;
    margin: 10px 0;
  }

  .agencydetails,
  .agency-page .agencydetails,
  .agency-page .bigimage {
    width: 100%;
    float: none;
  }

  .registerpage .usertype {
    width: 100%;
    margin: 0 0 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .body {
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .sidebar-left,
  .sidebar-right {
    width: 100%;
    margin-left: 0;
  }

  .girl {
    width: 50%;
    padding: 4px;
  }

  .girl.tour-thumb,
  .girlsingle .thumbs .profile-video-thumb-wrapper,
  .girlsingle .thumbs .profile-img-thumb-wrapper {
    width: 50%;
  }

  .header-top-bar .subnav-menu li,
  .header-top-bar .subnav-menu li a {
    float: none;
    display: inline-block;
  }

  .footer .widgetbox,
  .footer .widgetbox p,
  .widgetadbox,
  .widgetadbox p {
    text-align: center;
  }

  .form-styling .form-label,
  .form-styling .form-input,
  .form-styling .form-input .input,
  .form-styling .form-input .textarea,
  .form-styling .form-input select,
  .addreviewform textarea,
  .addreviewform .starratingoption {
    width: 100% !important;
  }

  .table-responsive,
  .woocommerce table.shop_table,
  .woocommerce table.shop_table_responsive,
  .listagencies,
  .edit-user-types .see-all-users-table,
  .addedtours,
  .addedblacklistedclients {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-addspace img,
  .logo img,
  .slider .slide .girlimg img {
    width: 100%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .girl,
  .girl.tour-thumb,
  .girlsingle .thumbs .profile-video-thumb-wrapper,
  .girlsingle .thumbs .profile-img-thumb-wrapper {
    width: 100%;
  }

  .header-top-bar {
    padding: 10px;
  }

  .header-top-bar .header-nav .header-menu {
    gap: 4px;
  }

  .header-top-bar .header-nav .header-menu li a {
    font-size: 13px;
    padding: 3px 8px;
  }

  .bodybox {
    padding: 12px;
  }

  .girlsingle .profile-title,
  .registerpage .pagetitle {
    font-size: 1.5em;
    line-height: 1.3em;
  }

  .popular-areas-list,
  .footer-menu,
  .emirates-list {
    grid-template-columns: 1fr;
  }
}

/* ── Logo size reduction ─────────────────────────────────────────────── */
.logo .brand-logo-main {
  font-size: 18px !important;
  letter-spacing: 0.2px !important;
}

.logo .brand-logo-tag {
  font-size: 9px !important;
  letter-spacing: 1px !important;
  margin-top: 1px !important;
}

@media (max-width: 768px) {
  .logo .brand-logo-main {
    font-size: 15px !important;
  }

  .logo .brand-logo-tag {
    display: none !important;
  }
}

/* ── Single-column profile grid on mobile ────────────────────────────── */
@media (max-width: 480px) {
  .profile-section .profile-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .profile-section .profile-card img {
    height: 200px;
    object-fit: cover;
    object-position: top center;
  }
}

/* ── Escort listing cards: 2-per-row on mobile, no image clipping ─────── */
@media (max-width: 768px) {
  .girl {
    width: calc(50% - 4px) !important;
    float: left !important;
    box-sizing: border-box;
    padding: 4px !important;
    padding-bottom: 10px !important;
  }

  .girl .thumb {
    float: none !important;
    display: block;
    width: 100% !important;
  }

  .girl .thumb .thumbwrapper {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .girl .thumb .thumbwrapper a {
    display: block;
    width: 100%;
    line-height: 0;
  }

  .girl .thumb .thumbwrapper a img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
}

/* ── Premium header behavior: desktop full nav, mobile hamburger drawer ─ */
.header-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
  position: relative;
}

.header-top-bar .logo {
  float: none !important;
}

.ies-mobile-utility {
  display: none;
}

@media (min-width: 769px) {
  .header-top-bar {
    background: linear-gradient(135deg, #0e0a0e 0%, #1b1019 55%, #120b11 100%);
    border: 1px solid #3a1d2f;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    border-radius: 14px;
    padding: 10px 16px;
  }

  .header-top-bar .hamburger-menu {
    display: none !important;
  }

  .header-top-bar .header-nav,
  .header-top-bar .subnav-menu-wrapper {
    display: block !important;
    position: static !important;
  }

  .header-top-bar .header-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-top-bar .header-nav .header-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    float: none;
  }

  .header-top-bar .header-nav .header-menu > li > a,
  .header-top-bar .subnav-menu > li > a,
  .header-top-bar .subnav-menu > li > button {
    border-radius: 10px;
    transition: background-color 0.22s ease, color 0.22s ease;
  }

  .header-top-bar .header-nav .header-menu > li > a:hover,
  .header-top-bar .subnav-menu > li > a:hover,
  .header-top-bar .subnav-menu > li > button:hover {
    background: rgba(255, 79, 154, 0.14);
    color: #ffd2e7;
  }
}

@media (max-width: 768px) {
  .header-top-bar {
    background: linear-gradient(135deg, #0d090d 0%, #150d13 60%, #110b11 100%);
    border: 1px solid #5e2645;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    padding: 10px 12px;
  }

  .header-top-bar .header-nav,
  .header-top-bar .subnav-menu-wrapper {
    display: none !important;
  }

  .header-top-bar .hamburger-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto !important;
    order: 9;
    float: none !important;
    cursor: pointer;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffc8e0;
    background: rgba(255, 79, 154, 0.12);
    border: 1px solid rgba(255, 79, 154, 0.35);
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  /* Replace theme icon font glyph with stable 3-line menu icon */
  .header-top-bar .hamburger-menu .icon-menu {
    width: 16px;
    height: 12px;
    display: inline-block;
    position: relative;
    font-size: 0;
  }

  .header-top-bar .hamburger-menu .icon-menu::before,
  .header-top-bar .hamburger-menu .icon-menu::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #ffc8e0;
  }

  .header-top-bar .hamburger-menu .icon-menu::before {
    top: 0;
    box-shadow: 0 5px 0 0 #ffc8e0;
  }

  .header-top-bar .hamburger-menu .icon-menu::after {
    bottom: 0;
  }

  /* Hamburger drawer panel */
  .header-top-bar.menu-open .header-nav {
    display: block !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100% !important;
    max-height: 82vh;
    overflow-y: auto;
    padding: 0;
    background: #0d090d;
    border: 1px solid rgba(255, 79, 154, 0.45);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(255,79,154,0.08) inset;
  }

  /* Hide subnav original list inside drawer (utility replaces it) */
  .header-top-bar.menu-open .header-nav .subnav-menu-wrapper {
    display: none !important;
  }

  /* ── Mobile Utility Block ── */
  .ies-mobile-utility {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(255, 79, 154, 0.15);
  }

  /* Search row */
  .ies-mobile-search {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .ies-mobile-search input {
    flex: 1;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 79, 154, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #ffe8f3;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
  }

  .ies-mobile-search input:focus {
    border-color: #ff4f9a;
  }

  .ies-mobile-search input::placeholder {
    color: #7a5068;
  }

  .ies-mobile-search button {
    flex-shrink: 0;
    min-width: 42px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #e8347e 0%, #ff6baa 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(232, 52, 126, 0.35);
  }

  /* City select row */
  .ies-mobile-city select {
    width: 100%;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 79, 154, 0.3);
    background: rgba(10, 5, 10, 0.7);
    color: #ffe8f3;
    padding: 0 36px 0 14px;
    font-size: 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ff4f9a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 8px;
  }

  /* Auth row */
  .ies-mobile-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ies-mobile-auth button {
    height: 38px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
  }

  .ies-mobile-auth button:not(.ies-secondary) {
    background: linear-gradient(135deg, #e8347e 0%, #ff6baa 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 52, 126, 0.3);
  }

  .ies-mobile-auth .ies-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffc8e0;
    border: 1px solid rgba(255, 79, 154, 0.3);
  }

  /* ── Nav section label ── */
  .ies-nav-label {
    display: block;
    padding: 10px 14px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 79, 154, 0.65);
  }

  /* ── Accordion sub-menu toggle ── */
  .header-top-bar.menu-open .header-nav .header-menu > li.has-submenu > a {
    justify-content: space-between;
  }

  .ies-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 79, 154, 0.1);
    color: #ff4f9a;
    font-size: 18px;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.22s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .header-top-bar.menu-open .header-nav .header-menu > li.ies-open > a .ies-submenu-toggle {
    background: rgba(255, 79, 154, 0.2);
    transform: rotate(90deg);
  }

  /* Sub-dropdowns hidden by default (accordion, overflow driven by JS maxHeight) */
  .ies-submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
  }

  /* Nav links */
  .header-top-bar.menu-open .header-nav .header-menu {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0;
    padding: 0 8px 10px;
  }

  .header-top-bar.menu-open .header-nav .header-menu > li {
    display: block !important;
    float: none !important;
    width: 100%;
    list-style: none;
    margin: 1px 0;
    padding: 0;
  }

  .header-top-bar.menu-open .header-nav .header-menu > li > a {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 10px 14px !important;
    border-radius: 10px;
    color: #e8d4df !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    margin: 0;
  }

  .header-top-bar.menu-open .header-nav .header-menu > li > a:hover,
  .header-top-bar.menu-open .header-nav .header-menu > li > a:focus {
    background: rgba(255, 79, 154, 0.1);
    color: #ffc8e0 !important;
  }

  /* Sub-dropdowns inside mobile nav */
  .header-top-bar.menu-open .header-nav .header-menu ul {
    position: static !important;
    display: block !important;
    width: 100%;
    margin: 0 0 4px 10px;
    padding: 0;
    background: transparent !important;
    border-left: 2px solid rgba(255, 79, 154, 0.2);
    padding-left: 8px;
  }

  /* Override theme's min-width:200px, background:#3e3938 on sub-menu items */
  .header-top-bar.menu-open .header-nav .header-menu ul li,
  .header-top-bar.menu-open .header-nav .header-menu ul > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    float: none !important;
    position: relative;
  }

  .header-top-bar.menu-open .header-nav .header-menu ul li a,
  .header-top-bar.menu-open .header-nav .header-menu ul > li > a,
  .header-top-bar.menu-open .header-nav .header-menu .current_page_item ul li a {
    display: block !important;
    float: none !important;
    min-width: 0 !important;
    background: transparent !important;
    color: #c7a4b8 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    border-radius: 8px;
    border: none !important;
    text-shadow: none !important;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .header-top-bar.menu-open .header-nav .header-menu ul li a:hover,
  .header-top-bar.menu-open .header-nav .header-menu ul > li > a:hover {
    background: rgba(255, 79, 154, 0.08) !important;
    color: #ffb8d4 !important;
    border: none !important;
  }

  /* Hide float-clearing divs that break mobile layout */
  .header-top-bar.menu-open .header-nav .header-menu .clear {
    display: none !important;
  }
}

/* ── Desktop city select in header ─────────────────────────────────────── */
/* ── City always hidden (lives in hamburger only) & hide desktop search icon ── */
.ies-desktop-city {
  display: none !important;
}

@media (min-width: 769px) {
  .subnav-menu-icon:has(a[title="Search"]) {
    display: none !important;
  }
}
