/* Layout measurements from uaeescort.com at 390–1707px viewports.
   Load after styles.css. Page-specific rules use the SSR body classes. */

.site-header {
  height: 78px;
  padding: 0 20px;
  position: relative;
  top: auto;
  flex-wrap: nowrap;
}
.brand-logo {
  display: block;
  width: 194px;
  height: 50px;
  object-fit: contain;
}
.brand-fallback { display: none; }
.brand.logo-failed .brand-fallback { display: flex; flex-direction: column; }
.main-nav {
  justify-content: center;
  gap: 30px;
}
.main-nav a { font-size: 13.5px; }

/* The source keeps a blank 250px rail to the right of the content. */
.page-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  align-items: stretch;
}
.page-shell::after {
  content: "";
  display: block;
  min-width: 0;
  background: #242221;
  border-left: 1px solid #353231;
}
.sidebar {
  width: auto;
  min-width: 0;
  min-height: calc(100vh - 78px);
}
.main-content {
  min-width: 0;
  max-width: none;
  padding: 20px 20px 60px;
}
.quick-cities a {
  display: inline-block;
  margin-right: 7px;
  border-bottom: 1px dotted #aaa;
  color: #e7e7e7;
  line-height: 1.4;
}
.quick-cities a:hover { color: #f3aa58; }

/* Listing cells have 5px inner gutters; the source grid itself has no gap. */
.listing-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.profile-card {
  min-width: 0;
  margin: 5px 5px 8px;
}
.photo-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
}
.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 5px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .18);
  font-size: 34px;
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow: 0 2px 4px #000;
  pointer-events: none;
}
.card-caption { height: 66px; padding: 8px 5px; }
.pagination { max-width: none; }
.pagination a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #4c4541;
  background: #302d2c;
  color: #fff;
}
.pagination a.active,
.pagination a:hover { background: #e7a145; color: #111; }
.category-chips { max-width: none; }
.category-chips a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 18px;
  background: #f4c944;
  color: #211a12;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.category-chips a:hover { background: #f2a85c; }
.below-section,
.intro-text { max-width: none; }

/* Keep the H1 first in source order while showing the homepage card grid first. */
.page-home .main-content {
  display: flex;
  flex-direction: column;
}
.page-home .listing-grid { order: 0; }
.page-home .pagination { order: 1; }
.page-home .home-intro { order: 2; margin-top: 32px; }
.page-home .listing-count { order: 3; margin-top: 12px; }
.page-home .below-section { order: 4; }

/* All-escorts places the title and category pills on one horizontal row. */
.page-all .quick-cities { display: none; }
.page-all .listing-intro,
.page-category .listing-intro {
  width: 100%;
  max-width: none;
  margin: 19px 0 16px;
}
.page-all .listing-heading-row,
.page-category .listing-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 43px;
}
.page-all .listing-heading-row h1,
.page-category .listing-heading-row h1 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 24px;
  line-height: 43px;
}
.page-all .listing-heading-row .category-chips,
.page-category .listing-heading-row .category-chips {
  justify-content: flex-end;
  margin: 0;
}
.page-all .listing-intro h2,
.page-category .listing-intro h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.page-all .listing-intro p,
.page-category .listing-intro p {
  min-height: 44px;
  margin: 35px 0 16px;
  color: #aaa6a5;
  font-size: 15px;
  line-height: 1.45;
}
.page-all .listing-count { display: none; }

/* City and area pages place a short centered title immediately over cards. */
.page-city .seo-intro,
.page-area .seo-intro {
  width: 100%;
  max-width: none;
  margin: 19px 0 0;
  text-align: center;
}
.page-city .seo-intro h1,
.page-area .seo-intro h1 {
  margin: 0;
  font-size: 24px;
  line-height: 43px;
}
.page-city .seo-intro h2,
.page-city .seo-intro p,
.page-area .seo-intro h2,
.page-area .seo-intro p {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.page-city .category-chips,
.page-city .listing-count,
.page-area .category-chips,
.page-area .listing-count { display: none; }
.page-category .listing-count { display: none; }

/* Full-width profile identity and gallery. The SSR markup supplies
   .profile-header > .profile-identity + .profile-summary. */
.page-profile .profile-detail { max-width: none; }
.page-profile .profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  margin: 5px 0 16px;
}
.page-profile .profile-identity {
  width: 335px;
  flex: 0 0 335px;
  margin-top: 6px;
}
.page-profile .profile-identity h1 {
  width: 100%;
  margin: 0 0 -1px;
  line-height: 43px;
  text-align: center;
}
.page-profile .profile-tags { justify-content: flex-start; }
.page-profile .profile-tags span { font-size: 12px; padding: 5px 12px; }
.page-profile .profile-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 18px;
  height: 73px;
  margin: 5px 0 0;
}
.page-profile .profile-stats {
  width: 225px;
  height: 73px;
  flex: 0 0 225px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
}
.page-profile .profile-stats strong { font-size: 24px; }
.page-profile .profile-stats small { font-size: 12px; }
.page-profile .contact-demo {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  min-width: 305px;
  height: 70px;
  gap: 10px;
  text-align: center;
}
.page-profile .profile-call,
.page-profile .profile-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.page-profile .profile-whatsapp { min-width: 70px; color: #2bc767; }
.page-profile .profile-whatsapp [aria-hidden] { font-size: 34px; line-height: 1; }
.page-profile .profile-call { min-width: 220px; }
.page-profile .profile-phone {
  color: #edb334;
  font-size: 27px;
  font-weight: 700;
  white-space: nowrap;
}
.page-profile .contact-demo .text-link { color: #25bd62; }
.page-profile .profile-gallery-section {
  border: 0;
  background: none;
  padding: 0;
}
.page-profile .source-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 8px;
  width: 100%;
  max-width: 978px;
  margin: 0 auto 20px;
}
.page-profile .source-gallery a { display: block; min-width: 0; }
.page-profile .source-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 415;
  object-fit: cover;
  border-radius: 3px;
}
.page-profile .source-gallery > a:nth-child(5n + 1):nth-last-child(3) {
  grid-column: 2;
}
.page-profile .source-gallery + h2 { margin: 16px 0; color: #e9a75e; }
.page-profile .profile-section:not(:has(> .source-gallery)) {
  margin: 20px 0;
  padding: 20px;
  background: #3e3938;
}
.page-profile .profile-facts h2,
.page-profile .profile-section > h2 { margin: 0 0 14px; color: #eee; font-size: 17px; }
.page-profile .profile-facts p { color: #dedbd9; font-size: 15px; line-height: 1.5; }
.page-profile .profile-facts dl { margin: 16px 0 0; }
.page-profile .profile-facts dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid #514b49;
  font-size: 14px;
}
.page-profile .profile-facts dt { color: #aaa4a0; }
.page-profile .profile-facts dd { margin: 0; text-align: right; }
.page-profile .service-list {
  columns: 2;
  margin: 0;
  padding-left: 21px;
  color: #dedbd9;
  line-height: 1.85;
}
.page-profile .rates-table { width: 100%; border-collapse: collapse; }
.page-profile .rates-table th,
.page-profile .rates-table td { padding: 12px; border: 1px solid #5b5552; color: #eee; }

/* Review actions on the source sit on the page background below the rates. */
.page-profile .profile-reviews.profile-section,
.page-profile .profile-section:has(> .listing-grid) {
  margin: 30px 0 20px;
  padding: 0;
  background: none;
}
.page-profile .profile-reviews .section-title {
  align-items: flex-start;
  margin-bottom: 20px;
}
.page-profile .profile-reviews .section-title h2 {
  margin: 3px 0 0;
  padding-left: 10px;
  color: #eee;
  font-size: 17px;
  font-weight: 600;
}
.page-profile .profile-reviews .gold-button,
.page-profile .report-button,
.page-profile .report-close {
  display: inline-block;
  border: 0;
  border-radius: 20px;
  padding: 7px 17px;
  color: #fff;
  background: #d75a65;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  cursor: pointer;
}
.page-profile .profile-reviews .gold-button:hover { background: #ed7881; }
.page-profile .report-button,
.page-profile .report-close { background: #b94242; }
.page-profile .report-button:hover,
.page-profile .report-close:hover { background: #cc5656; }
.page-profile .profile-reviews > p { margin: 0 0 20px; color: #d0cbc7; font-size: 15px; }
.page-profile .review-notice {
  max-width: 720px;
  margin: 8px 0 22px;
  padding: 13px 18px;
  border-radius: 20px;
  color: #fff;
  background: #b3444e;
  line-height: 1.5;
}
.page-profile .review-notice button {
  border: 0;
  padding: 0;
  color: #fff;
  background: none;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.page-profile .report-form {
  max-width: 720px;
  margin-top: 14px;
  padding: 20px;
  border-radius: 5px;
  background: #3e3938;
}
.page-profile .report-form label { display: block; margin-bottom: 8px; color: #eee; font-size: 14px; }
.page-profile .report-form input {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid #625b57;
  color: #fff;
  background: #211e1d;
  font: inherit;
}
.page-profile .report-form > div { display: flex; justify-content: flex-end; gap: 8px; }
.page-profile .report-form .gold-button { background: #d75a65; }
.page-profile .report-form [role="status"] { margin: 12px 0 0; color: #f0c67c; }

@media (max-width: 1599px) {
  .page-profile .profile-header {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  .page-profile .profile-identity { width: 100%; flex: 0 0 auto; margin-top: 0; }
  .page-profile .profile-tags { justify-content: center; }
  .page-profile .profile-summary { height: auto; flex-direction: column-reverse; gap: 8px; margin-top: 0; }
  .page-profile .profile-stats { flex: 0 0 auto; }
  .page-profile .source-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 720px;
  }
  .page-profile .source-gallery > a:nth-child(5n + 1):nth-last-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 1409px) {
  .main-nav { gap: 8px; }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-profile .source-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 550px;
  }
}

@media (max-width: 1159px) {
  .page-profile .source-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
  }
}

@media (max-width: 1030px) {
  .site-header {
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    padding: 14px 10px;
    gap: 0;
  }
  .brand {
    width: 100%;
    height: 50px;
    min-width: 0;
    flex: 0 0 100%;
    margin: 0;
    align-items: center;
  }
  .main-nav {
    position: static;
    display: flex;
    flex: 0 0 100%;
    order: 2;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    margin-top: 10px;
    padding: 0;
    gap: 0;
  }
  .main-nav a {
    height: 25px;
    padding: 0 13px;
    font-size: 14px;
    line-height: 25px;
    white-space: nowrap;
  }
  .header-actions {
    width: 100%;
    height: 36px;
    flex: 0 0 100%;
    order: 3;
    justify-content: center;
    margin: 10px 0 0;
  }
  .menu-toggle { display: none; }
}

@media (max-width: 970px) {
  .page-shell { display: block; }
  .page-shell::after { display: none; }
  .sidebar { width: 100%; min-height: 0; border-right: 0; }
  .filter-panel { min-height: 353px; padding: 18px 20px 48px; text-align: center; }
  .filter-panel h2 {
    margin: 0 0 36px;
    text-align: center;
    font-size: 20px;
  }
  .filter-panel select {
    display: block;
    width: 100%;
    height: 49px;
    margin: 0 0 11px;
  }
  .more-filter-button { margin: 12px auto 24px; }
  .filter-actions { flex-direction: column; justify-content: center; }
  .quick-cities { min-height: 0; padding: 17px 20px; text-align: left; }
  .location-search { height: 106px; padding: 40px 18px 18px; }
  .main-content { margin-top: 10px; padding: 20px 20px 50px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-all .listing-heading-row,
  .page-category .listing-heading-row { display: block; }
  .page-all .listing-heading-row .category-chips,
  .page-category .listing-heading-row .category-chips {
    justify-content: flex-start;
    margin: 10px 0;
  }
  .page-all .listing-intro p,
  .page-category .listing-intro p { min-height: 0; margin: 12px 0; }
  .page-profile .source-gallery {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }
  .page-profile .source-gallery img { aspect-ratio: 4 / 5; }
  .page-profile .main-content { padding-top: 26px; }
  .page-profile .profile-header {
    min-height: 237px;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .page-profile .profile-identity { height: 81px; margin-top: 0; }
  .page-profile .profile-summary {
    width: 100%;
    height: 146px;
    flex-direction: column-reverse;
    gap: 0;
    margin-top: 0;
  }
  .page-profile .profile-stats { height: 73px; align-items: center; }
  .page-profile .contact-demo {
    width: 310px;
    height: 73px;
    min-width: 0;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
  }
  .page-profile .profile-call { min-width: 238px; }
  .page-profile .profile-whatsapp { min-width: 67px; }
}

@media (max-width: 420px) {
  .main-nav { gap: 0; }
  .main-nav a { font-size: 14px; }
  .header-actions { gap: 6px; }
  .brand-logo { width: 194px; height: 50px; }
  .header-actions .action-pill { display: inline-block; font-size: 13px; padding: 6px 12px; }
  .header-actions .envelope { display: grid; }
  .main-content { padding: 20px 20px 40px; }
  .listing-grid { gap: 0; }
  .profile-card { margin: 5px 5px 8px; }
  .card-caption h3 { font-size: 13px; }
  .card-caption p { font-size: 11px; }
  .page-profile .profile-phone { font-size: 24px; }
  .page-profile .profile-stats { width: 220px; }
}
