/* Keep profile cards left-aligned everywhere, including when a city has one card. */
html body #new-profiles .profiles,
html body #profiles .profiles,
html body .city-profiles-grid,
html body .massage-profile-grid,
html body .salon-grid {
  justify-content: start !important;
  justify-items: start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Tablet layout: keep profile cards uniform and left-aligned across sections. */
@media (min-width: 701px) and (max-width: 1399px) {
  html body #new-profiles .profiles,
  html body #profiles .profiles,
  html body .city-profiles-grid,
  html body .massage-profile-grid,
  html body .salon-grid {
    display: grid !important;
    width: min(100%, 1120px) !important;
    max-width: min(100%, 1120px) !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 240px)) !important;
    grid-auto-rows: auto !important;
    justify-content: start !important;
    justify-items: start !important;
    align-items: start !important;
    gap: clamp(12px, 1.5vw, 18px) !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  html body #new-profiles .profiles > a.profile.new-profile-card,
  html body #profiles .profiles > a.profile.new-profile-card,
  html body #profiles .profiles > a.profile.profile-list-card,
  html body #new-profiles .profiles > .secretik-placeholder-card,
  html body #profiles .profiles > .secretik-placeholder-card,
  html body .city-profiles-grid > a.profile.new-profile-card,
  html body .city-profiles-grid > .secretik-placeholder-card,
  html body .city-profiles-grid > .profile-list-card,
  html body .massage-profile-grid > a.profile.new-profile-card,
  html body .massage-profile-grid > a.massage-profile,
  html body .massage-profile-grid > .massage-profile,
  html body .massage-profile-grid > .secretik-placeholder-card,
  html body .massage-profile-grid > .profile-list-card,
  html body .salon-grid > a.profile.new-profile-card,
  html body .salon-grid > .secretik-placeholder-card,
  html body .salon-grid > .profile-list-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 240px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 0.70 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }

  html body .vip-carousel .profiles-track {
    gap: clamp(12px, 1.5vw, 18px) !important;
  }

  html body .vip-carousel .profiles-track > a.profile.vip-profile-card,
  html body #vip-profiles .profiles-track > a.profile.new-profile-card,
  html body #vip-profiles .profiles-track > a.profile.vip-profile-card {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 0.70 !important;
    flex: 0 0 240px !important;
  }

  .secretik-mobile-pager-v208 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 16px 0 8px !important;
  }
  .secretik-mobile-pager-v208 button {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(255,79,163,.45) !important;
    border-radius: 10px !important;
    background: #111520 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }
  .secretik-mobile-pager-v208 button:disabled { opacity: .35 !important; cursor: default !important; }
  .secretik-mobile-pager-v208 span {
    min-width: 58px !important;
    text-align: center !important;
    color: #c9ccd5 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  html body .profile.new-profile-card .profile-photo img,
  html body .profile.vip-profile-card .profile-photo img,
  html body .massage-profile .profile-photo img {
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* On tablet city pages the navigation shares one row with the logo and login. */
@media (min-width: 701px) and (max-width: 1199px) {
  html body > header.secretik-city-mobile-header {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    box-sizing: border-box !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) auto !important;
    grid-template-rows: 72px !important;
    align-items: center !important;
    gap: clamp(8px, 1.2vw, 14px) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    margin: 0 !important;
    padding: 0 clamp(10px, 2vw, 20px) !important;
    box-sizing: border-box !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner > .logo {
    position: static !important;
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 190px !important;
    min-width: 0 !important;
    max-width: 190px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    align-items: center !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner > .logo img.site-logo {
    display: block !important;
    width: 190px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 44px !important;
    object-fit: contain !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner > nav.site-main-nav {
    position: static !important;
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(7px, 1vw, 12px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    transform: none !important;
    scrollbar-width: none !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner > nav.site-main-nav > a {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    font-size: clamp(10px, 1.35vw, 14px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner > .header-actions {
    position: static !important;
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner > .header-actions > .login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 70px !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
  }
  html body > header.secretik-city-mobile-header > .container.header-inner > .header-actions > .add-button {
    display: none !important;
  }
}

/* Tablet homepage: show the complete hero photo across the screen without cover-cropping. */
@media (min-width: 701px) and (max-width: 1199px) {
  html body section.hero {
    height: clamp(320px, 42vw, 560px) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  html body section.hero .hero-photo {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    background-image:
      linear-gradient(90deg, rgba(12,4,13,.92) 0%, rgba(12,4,13,.68) 44%, rgba(12,4,13,.30) 100%),
      linear-gradient(0deg, #100711 0%, rgba(16,7,17,.02) 58%),
      url("main-hero.jpg") !important;
    background-position: center center, center center, center center !important;
    background-size: 100% 100%, 100% 100%, 100% 100% !important;
    background-repeat: no-repeat !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  html body section.hero .container {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 clamp(18px, 2.2vw, 28px) !important;
    box-sizing: border-box !important;
  }
  html body section.hero .hero-content {
    width: min(570px, 100%) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-top: clamp(32px, 5vw, 50px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
