/* ==========================================================================
   Profile pages (#258): a single escort profile (single-profile.php).
   Loaded after style.css on those pages only; see ae_is_profile_layout() in
   functions.php. Agency pages do not load it.
   ========================================================================== */

/* ==========================================================================
   12. SINGLE PROFILE PAGES
   The old three-column rules (banner, .aboutme, .section-box, .valuecolumn,
   .girlinfo) went with the #246 template, which no longer prints them;
   so did the .bio float, which .ae-pf .bio undid.
   ========================================================================== */

/* Owner and admin photo grid (.girlsingle .thumbs, see single-profile.php). */
.single-escort-profile .girlsingle .thumbs {
    width: 60%;
    float: left;
}

/* 14. Media queries: phones */
@media (max-width: 768px) {
    .single-escort-profile .girlsingle .thumbs {
        width: 100%;
        float: none;
        padding: 0;
    }
}

/* ==========================================================================
   15.6 MANAGE PROFILE BAR (replaces the search bar for the profile's owner)
   ========================================================================== */

.manage-profile-bar {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    position: relative;
    z-index: 99;
    width: 100%;
    box-sizing: border-box;
}

.manage-profile-bar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.manage-profile-dropdown {
    position: relative;
    display: inline-block;
}

.manage-profile-toggle {
    background: linear-gradient(135deg, var(--primary-color, #8a2be2), var(--secondary-color, #6a0dad));
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
    letter-spacing: 0.3px;
}

.manage-profile-toggle:hover {
    opacity: 0.9;
}

.manage-profile-toggle .mpb-chevron {
    font-size: var(--fs-2xs);
    transition: transform 0.2s ease;
}

.manage-profile-toggle[aria-expanded="true"] .mpb-chevron {
    transform: rotate(180deg);
}

.manage-profile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 10px);
    box-shadow: var(--shadow-heavy);
    min-width: 230px;
    z-index: 200;
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.manage-profile-menu.open {
    display: block;
}

.manage-profile-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: background 0.15s ease;
}

.manage-profile-menu li a:hover {
    background: var(--hover-bg, rgba(255,255,255,0.07));
    color: var(--gold, #d4af37);
}

.manage-profile-menu li a .icon {
    font-size: var(--fs-base);
    width: 18px;
    text-align: center;
    color: var(--primary-color, #8a2be2);
    flex-shrink: 0;
}

.manage-profile-menu li a:hover .icon {
    color: var(--gold, #d4af37);
}

.manage-profile-menu li.ok {
    padding: 10px 18px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .manage-profile-bar {
        padding: 8px 12px;
    }

    .manage-profile-bar-container {
        padding: 0;
    }

    .manage-profile-toggle {
        font-size: var(--fs-sm);
        padding: 9px 18px;
    }

    .manage-profile-menu {
        min-width: 200px;
    }
}

/* ==========================================================================
   PROFILE PAGE (#246, option A "gallery first")
   Photo mosaic, then details on the left and a contact card on the right
   that stays in view. Phones: swipe strip, contact under the name, and a
   Phone + WhatsApp bar (section "Profile contact", #112). Replaces the
   Phase 2 three-column layout.
   ========================================================================== */

/* position: sticky needs these clearfix wrappers to stop clipping. */
body.single-escort-profile .contentwrapper,
body.single-escort-profile .body,
body.single-escort-profile .bodybox {
    overflow: visible;
}

body .bodybox.ae-pf {
    max-width: 1240px;
    margin: 0 auto 40px !important; /* 15.5 pins bodybox side margins to 0 */
    padding: 8px 0 0 !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text-gray);
}

.ae-pf .ae-pf-adminnote {
    margin-bottom: 16px;
}

/* --- Gallery ------------------------------------------------------------- */

.ae-pf-gallery-wrap {
    position: relative;
}

/* #263: a row of up to four portrait tiles. Most uploads are portrait, so
   cover-cropping trims little. Eight half-columns, each tile spans two, so
   fewer photos keep the same tile size and sit centred (see --kN below). */
.ae-pf-gallery {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.ae-pf-tile {
    position: relative;
    grid-column: span 2;
    aspect-ratio: 2 / 3;
    margin: 0;
    min-width: 0;
    background: var(--secondary-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ae-pf-tile a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    min-width: 0;
}

.ae-pf-tile img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    transition: transform var(--transition-slow);
}

.ae-pf-tile a:hover img:not(.ae-pf-tile-bg) {
    transform: scale(1.03);
}

/* Landscape and square photos: the whole photo over a blurred copy. */
.ae-pf-tile--fit img {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center;
}

.ae-pf-tile--fit .ae-pf-tile-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    object-position: center;
    filter: blur(24px) brightness(0.55);
    transform: scale(1.15);
}

.ae-pf-gallery .ae-pf-tile--main {
    float: none;
    width: auto;
}

.ae-pf-tile--extra {
    display: none;
}

/* Fewer than four photos: same tile size, row centred. --kN = tiles after the first. */
.ae-pf-gallery--k2 .ae-pf-tile:first-child { grid-column: 2 / span 2; }
.ae-pf-gallery--k1 .ae-pf-tile:first-child { grid-column: 3 / span 2; }
.ae-pf-gallery--k0 .ae-pf-tile:first-child { grid-column: 4 / span 2; }

.ae-pf-gallery-actions {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
}

/* Centred row: keep the buttons on the last tile. Half a tile plus gap is (100% + 8px) / 8. */
.ae-pf-gallery--k2 ~ .ae-pf-gallery-actions { right: calc(16px + (100% + 8px) / 8); }
.ae-pf-gallery--k1 ~ .ae-pf-gallery-actions { right: calc(16px + (100% + 8px) / 4); }
.ae-pf-gallery--k0 ~ .ae-pf-gallery-actions { right: calc(16px + 3 * (100% + 8px) / 8); }

/* Videos but no photo yet: the buttons sit in the flow, not over a photo. */
.ae-pf-gallery-wrap--videos-only { margin: 0; }
.ae-pf-gallery-wrap--videos-only .ae-pf-gallery-actions {
    position: static;
    transform: none;
    justify-content: flex-start;
    padding: 8px 0 16px;
}

.ae-pf-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: rgba(26, 15, 46, 0.85);
    border: 1px solid rgba(244, 232, 193, 0.3);
    color: var(--champagne);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
}

.ae-pf-gallery-btn:hover {
    border-color: var(--gold);
}

.ae-pf-gallery-btn .ae-video-play--sm {
    position: static;
    width: 18px;
    height: 18px;
    transform: none;
}

.ae-pf-gallery-verified,
.ae-pf-counter {
    display: none;
}

.ae-pf-videos[hidden] {
    display: none !important;
}

/* Owner and admin: upload zones and the delete / mark-main grid. */
.ae-pf-manage {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: var(--radius-lg);
    background: var(--secondary-bg);
}

.ae-pf-manage > summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--champagne);
    font-weight: 600;
}

.ae-pf-manage .thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    clear: both;
}

.ae-pf-manage .thumbs .profile-img-thumb-wrapper,
.ae-pf-manage .thumbs .profile-video-thumb-wrapper {
    width: auto;
    margin: 0;
    float: none;
}

.ae-pf-manage .thumbs .profile-img-thumb,
.ae-pf-manage .thumbs .profile-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
}

.ae-pf-manage .thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Two columns --------------------------------------------------------- */

.ae-pf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
        "head contact"
        "body contact";
    column-gap: 48px;
    margin-top: 32px;
    align-items: start;
}

.ae-pf-head    { grid-area: head; min-width: 0; }
.ae-pf-body    { grid-area: body; min-width: 0; }
.ae-pf-contact { grid-area: contact; }

.ae-pf-titlerow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.ae-pf .ae-pf-name {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-4xl);
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--champagne);
}

.ae-pf-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ae-pf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: var(--fs-xs);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--card-bg);
    color: var(--champagne);
}

.ae-pf-badge--verified  { background: var(--success); color: var(--white); }
.ae-pf-badge--available { background: var(--gold); color: var(--primary-bg); }
.ae-pf-badge--new       { background: var(--champagne); color: var(--primary-bg); }
.ae-pf-badge--private   { background: var(--error); color: var(--white); }

.ae-pf .ae-pf-tagline {
    margin: 8px 0 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--fs-xl);
    line-height: 1.35;
    color: var(--light-gray);
}

.ae-pf .ae-pf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 14px 0 0;
    font-size: var(--fs-sm);
    color: var(--light-gray);
}

.ae-pf-meta-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ae-pf-meta-loc svg {
    flex: none;
    color: var(--gold);
}

.ae-pf-meta a,
.ae-pf .currently-on-tour-in a {
    color: var(--light-gray);
    text-decoration: underline;
    text-decoration-color: rgba(244, 232, 193, 0.35);
    text-underline-offset: 3px;
}

.ae-pf-meta a:hover {
    color: var(--champagne);
}

.ae-pf-today {
    color: #7fd3a6;
    font-weight: 600;
}

.ae-pf-today[hidden] {
    display: none !important;
}

.ae-pf .profile-tour-line,
.ae-pf .currently-on-tour-in {
    margin: 10px 0 0;
    padding: 0;
    background: none;
    border: 0;
    font-size: var(--fs-sm);
    color: var(--light-gray);
}

.ae-pf .ae-pf-price-sm {
    display: none;
}

/* --- Contact card -------------------------------------------------------- */

.ae-pf-contact {
    position: sticky;
    top: 104px; /* below the 80px sticky header */
    align-self: start;
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: var(--secondary-bg);
}

body.admin-bar .ae-pf-contact {
    top: 136px;
}

/* An open enquiry form can be taller than the window. */
.ae-pf-contact.is-form-open {
    position: static;
}

.ae-pf-from-label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.ae-pf-from-price {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--champagne);
}

.ae-pf-from-unit {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--text-gray);
}

.ae-pf-actions {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.ae-pf-contact > .ae-pf-actions:first-child {
    margin-top: 0;
}

.ae-pf-actions-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
}

.ae-pf .ae-pf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.ae-pf .ae-pf-btn--phone {
    background: var(--gold);
    border: 2px solid var(--gold);
    color: var(--primary-bg);
}

.ae-pf .ae-pf-btn--phone:hover {
    background: var(--gold-light);
    color: var(--primary-bg);
}

.ae-pf .ae-pf-btn--line {
    flex-direction: column;
    gap: 2px;
    min-height: 56px;
    padding: 4px 6px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ae-pf .ae-pf-btn--line:hover,
.ae-pf .ae-pf-btn--line[aria-expanded="true"] {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
}

.ae-pf .ae-pf-btn--quiet {
    min-height: 44px;
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--light-gray);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ae-pf .ae-pf-social,
.ae-pf .ae-pf-mention {
    margin: 12px 0 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.ae-pf .ae-pf-social a {
    color: var(--gold-light);
}

.ae-pf-contact .ae-enquiry {
    margin-top: 14px;
}

.ae-pf-contact .lockedsection {
    margin-top: 16px;
}

.ae-pf-fav {
    margin-top: 14px;
}

.ae-pf-safety--card {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.ae-pf .ae-pf-safety-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--champagne);
}

.ae-pf-safety-title svg {
    color: var(--gold);
}

.ae-pf .ae-pf-tips {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: var(--fs-sm);
    color: var(--text-gray);
}

.ae-pf .ae-pf-guides {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ae-pf .ae-pf-guides li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ae-pf .ae-pf-guides a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0;
    min-width: 0;
    color: var(--gold-light);
}

.ae-pf .ae-pf-guides a::after {
    content: "\00a0\2192";
}

/* --- Left column sections ------------------------------------------------ */

.ae-pf .ae-pf-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 32px 0 0;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
}

.ae-pf .ae-pf-facts dt,
.ae-pf .ae-pf-interests dt {
    margin: 0;
    font-size: var(--fs-xs);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.ae-pf .ae-pf-facts dd,
.ae-pf .ae-pf-interests dd {
    margin: 2px 0 0;
    font-weight: 600;
    color: var(--champagne);
    overflow-wrap: anywhere;
}

.ae-pf-section,
.ae-pf .ae-week {
    margin-top: 40px;
}

.ae-pf .ae-pf-section h2,
.ae-pf .ae-week h2,
.ae-pf .ae-reviews-head h2,
.ae-pf-more h2 {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(var(--fs-2xl), 2.2vw, var(--fs-3xl));
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--champagne);
    text-align: left;
}

.ae-pf h3,
.ae-pf .ae-pf-section h3 {
    margin: 20px 0 8px;
    padding: 0;
    border: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-lg);
    letter-spacing: 0;
    color: var(--champagne);
    text-align: left;
}

.ae-pf .ae-pf-name {
    border: 0;
    padding: 0;
}

.ae-pf h1::after,
.ae-pf h2::after,
.ae-pf h3::after {
    display: none;
}

.ae-pf .bio {
    padding: 0;
    background: none;
    border: 0;
}

.ae-pf .ae-bio-text {
    max-width: 68ch;
    line-height: 1.7;
    color: var(--text-gray);
}

.ae-pf .ae-pf-interests {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.ae-pf .ae-pf-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-base);
    background: none;
}

.ae-pf .ae-pf-rates-table th,
.ae-pf .ae-pf-rates-table td {
    padding: 12px 12px 12px 0;
    text-align: left;
    background: none;
    border: 0;
}

.ae-pf .ae-pf-rates-table thead th {
    padding-top: 0;
    padding-bottom: 10px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.ae-pf .ae-pf-rates-table tbody tr {
    border-top: 1px solid rgba(244, 232, 193, 0.12);
}

.ae-pf .ae-pf-rates-table tbody th {
    font-weight: 600;
    color: var(--light-gray);
}

.ae-pf .ae-pf-rates-table td {
    color: var(--champagne);
}

.ae-pf .ae-pf-na {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.ae-pf .ae-pf-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ae-pf .ae-pf-chips li {
    margin: 0;
    padding: 6px 14px;
    list-style: none;
    border-radius: var(--radius-full);
    border: 1px solid rgba(244, 232, 193, 0.25);
    font-size: var(--fs-sm);
    color: var(--light-gray);
}

.ae-pf .ae-pf-extra {
    margin: 0;
    color: var(--text-gray);
}

.ae-pf-safety--inline {
    display: none;
}

.ae-pf .ae-pf-tours .addedtours {
    margin-top: 4px;
}

/* #247: the parent's tour rows are floats; contain them so nothing after
   the tours block wraps around them. */
.ae-pf .ae-pf-tours {
    display: flow-root;
}

/* Full width under the two columns (#247), spaced like .ae-pf-more. */
.ae-pf .ae-reviews {
    clear: both;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.ae-pf .ae-reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.ae-pf .ae-reviews-head h2 {
    margin: 0;
}

.ae-pf .ae-reviews-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Review buttons: the outlined .btn-secondary look (10.1). */
.ae-pf .ae-reviews .pinkbutton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    background: transparent;
    box-shadow: none;
    color: var(--gold);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
}

.ae-pf .ae-reviews .pinkbutton:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    transform: none;
}

.ae-pf .ae-reviews input.pinkbutton[type="submit"] {
    background: var(--gradient-champagne);
    color: var(--black-rich);
}

.ae-pf .ae-reviews-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 12px;
}

.ae-pf .ae-reviews-empty p {
    margin: 0;
    color: var(--text-muted);
}

.ae-pf .review-wrapper {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
}

/* --- Below the columns --------------------------------------------------- */

.ae-pf-more {
    margin-top: 64px;
}

.ae-pf-more-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.ae-pf-more-head h2 {
    margin: 0;
}

.ae-pf-more-head a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    min-width: 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gold-light);
}

.ae-pf .ae-pf-nearby {
    margin: 20px 0 0;
    font-size: var(--fs-sm);
    line-height: 2;
}

.ae-pf-nearby > span:first-child {
    color: var(--text-muted);
}

.ae-pf-nearby a {
    color: var(--gold-light);
}

.ae-pf-foot {
    margin-top: 40px;
    text-align: center;
}

.ae-pf-foot .post-edit-link {
    display: inline-block;
    margin-bottom: 12px;
}

/* Report: a quiet text link, the form opens under it as before. */
.ae-pf .report-profile-wrapper {
    text-align: center;
}

.ae-pf .report-profile-wrapper .report-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 400;
}

.ae-pf .report-profile-wrapper .report-profile-button:hover {
    color: var(--champagne);
    background: transparent;
}

.ae-contact-bar button {
    flex: 1;
}

/* --- Narrower desktops (sidebar for logged-in users) --------------------- */

@media (max-width: 1199px) {
    .ae-pf-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        column-gap: 32px;
    }

    .ae-pf .ae-pf-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Tablets and phones: one column, contact under the name --------------- */

@media (max-width: 900px) {
    .ae-pf-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head" "contact" "body";
        margin-top: 18px;
    }

    .ae-pf-contact {
        position: static;
        margin-top: 16px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .ae-pf-from,
    .ae-pf-safety--card {
        display: none;
    }

    .ae-pf-contact > .ae-pf-actions {
        margin-top: 0;
    }

    .ae-pf .ae-pf-price-sm {
        display: block;
        margin: 4px 0 0;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--light-gray);
    }

    .ae-pf-safety--inline {
        display: block;
        padding: 16px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        background: var(--secondary-bg);
    }

    .ae-pf .ae-pf-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
        margin-top: 20px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    body.single-escort-profile .contentwrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body .bodybox.ae-pf {
        padding: 0 !important;
    }

    /* Full-width swipe strip with a counter and the Verified badge. */
    .ae-pf-gallery-wrap {
        margin: 0 -16px;
    }

    .ae-pf-gallery {
        display: flex;
        gap: 0;
        border-radius: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ae-pf-gallery::-webkit-scrollbar {
        display: none;
    }

    .ae-pf-gallery .ae-pf-tile,
    .ae-pf-gallery .ae-pf-tile--extra {
        display: block;
        flex: 0 0 100%;
        aspect-ratio: 4 / 5;
        border-radius: 0;
        scroll-snap-align: start;
    }

    .ae-pf-gallery-verified,
    .ae-pf-counter {
        display: inline-flex;
        position: absolute;
        bottom: 12px;
        z-index: 2;
    }

    .ae-pf-gallery-verified {
        left: 12px;
        padding: 4px 8px;
        font-size: var(--fs-2xs);
    }

    .ae-pf-counter {
        right: 12px;
        padding: 4px 10px;
        border-radius: var(--radius-full);
        background: rgba(26, 15, 46, 0.85);
        color: var(--champagne);
        font-size: var(--fs-xs);
        font-weight: 600;
    }

    /* Tapping a photo opens the lightbox; only Videos needs a button.
       Specific enough to beat the desktop --kN offsets; videos-only keeps its own layout. */
    .ae-pf-gallery-wrap:not(.ae-pf-gallery-wrap--videos-only) .ae-pf-gallery-actions {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .ae-pf-gallery-actions [data-ae-open="profile-photo"] {
        display: none;
    }

    .ae-pf .ae-pf-name {
        font-size: var(--fs-3xl);
        line-height: 1.15;
    }

    /* Verified sits over the photo instead (when there is one). */
    .ae-pf:has(.ae-pf-gallery-verified) .ae-pf-titlerow .ae-pf-badge--verified {
        display: none;
    }

    .ae-pf .ae-pf-tagline {
        margin-top: 4px;
        font-size: var(--fs-md);
    }

    .ae-pf .ae-pf-meta {
        gap: 4px 14px;
        margin-top: 8px;
    }

    .ae-pf-section,
    .ae-pf .ae-week {
        margin-top: 28px;
    }

    .ae-pf .ae-pf-section h2,
    .ae-pf .ae-week h2,
    .ae-pf .ae-reviews-head h2,
    .ae-pf-more h2 {
        font-size: var(--fs-2xl);
    }

    .ae-pf .ae-pf-rates-table {
        font-size: var(--fs-sm);
    }

    .ae-pf .ae-pf-rates-table th,
    .ae-pf .ae-pf-rates-table td {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ae-pf .ae-reviews {
        margin-top: 32px;
        padding-top: 24px;
    }

    .ae-pf-more {
        margin-top: 32px;
    }
}

/* --- Legacy overrides ------------------------------------------------------
   Section 17.2 paints every .girlsingle p/div/span/li light grey and every
   link gold with !important (still right for agency pages). The redesigned
   profile sets its own colours, so it has to answer in kind. The parent's
   .girlsingle .bigimage (312px, padding) and the .bodybox table stripes are
   reset the same way. */
.ae-pf .ae-pf-gallery .bigimage {
    max-width: none;
    display: block;
    padding: 0;
}

.ae-pf .ae-pf-rates-table,
.ae-pf .ae-pf-rates-table thead tr,
.ae-pf .ae-pf-rates-table tbody tr,
.ae-pf .ae-pf-rates-table tbody tr:nth-child(even),
.ae-pf .ae-pf-rates-table tbody tr:hover {
    margin: 0;
    background: none !important;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.ae-pf .ae-pf-rates-table thead th {
    font-family: var(--font-primary);
    color: var(--text-muted) !important;
}

.ae-pf .ae-pf-rates-table tbody th { color: var(--light-gray) !important; }
.ae-pf .ae-pf-rates-table td       { color: var(--champagne) !important; }
.ae-pf .ae-pf-rates-table .ae-pf-na { color: var(--text-muted) !important; }

.ae-pf .ae-pf-btn--phone,
.ae-pf .ae-pf-btn--phone:hover,
.ae-pf .ae-pf-badge--available,
.ae-pf .ae-pf-badge--new { color: var(--primary-bg) !important; }
.ae-pf .ae-pf-btn--line,
.ae-pf .ae-pf-btn--line:hover { color: var(--gold) !important; }
.ae-pf .ae-pf-btn--quiet,
.ae-pf .ae-pf-meta,
.ae-pf .ae-pf-meta span,
.ae-pf .ae-pf-meta a,
.ae-pf .ae-pf-tagline,
.ae-pf .ae-pf-price-sm,
.ae-pf .ae-pf-chips li,
.ae-pf .currently-on-tour-in,
.ae-pf .currently-on-tour-in a,
.ae-pf .profile-tour-line { color: var(--light-gray) !important; }
.ae-pf .ae-pf-badge--verified,
.ae-pf .ae-pf-badge--private { color: var(--white) !important; }
.ae-pf .ae-pf-meta .ae-pf-today,
.ae-pf .ae-pf-price-sm .ae-pf-today { color: #7fd3a6 !important; }
.ae-pf .ae-pf-from-label,
.ae-pf .ae-pf-social,
.ae-pf .ae-pf-social span,
.ae-pf .ae-pf-mention,
.ae-pf .ae-pf-facts dt,
.ae-pf .ae-pf-interests dt,
.ae-pf .ae-pf-nearby > span:first-child,
.ae-pf .ae-reviews-empty p,
.ae-pf .report-profile-wrapper .report-profile-button { color: var(--text-muted) !important; }
.ae-pf .ae-pf-from-price,
.ae-pf .ae-pf-safety-title,
.ae-pf .ae-pf-facts dd,
.ae-pf .ae-pf-interests dd,
.ae-pf .ae-pf-gallery-btn,
.ae-pf .ae-pf-counter,
.ae-pf .ae-pf-counter span { color: var(--champagne) !important; }
.ae-pf .ae-pf-from-unit,
.ae-pf .ae-pf-tips li,
.ae-pf .ae-pf-extra,
.ae-pf .ae-bio-text,
.ae-pf .ae-bio-text p,
.ae-pf .ae-bio-text div { color: var(--text-gray) !important; }
.ae-pf .ae-pf-guides a,
.ae-pf .ae-pf-social a,
.ae-pf .ae-pf-more-head a,
.ae-pf .ae-pf-nearby a { color: var(--gold-light) !important; }
.ae-pf .ae-reviews .pinkbutton,
.ae-pf .ae-reviews .pinkbutton span { color: var(--gold) !important; }
.ae-pf .ae-reviews input.pinkbutton[type="submit"] { color: var(--black-rich) !important; }
.ae-pf .ae-pf-gallery-wrap .ae-pf-gallery-verified { display: none; }
.ae-pf .ae-pf-more .card-info .card-tagline { color: var(--plum-accent) !important; }
.ae-pf .ae-pf-more .card-info .girl-rate-info { color: var(--gold-light) !important; }
.ae-pf .ae-pf-more .card-info .girl-name { color: var(--champagne) !important; }
.ae-pf .ae-pf-more .card-labels-top .label,
.ae-pf .ae-pf-more .card-label-verified .label { color: inherit; }

.ae-pf .ae-pf-meta a,
.ae-pf .ae-pf-social a,
.ae-pf .ae-pf-nearby a,
.ae-pf .currently-on-tour-in a {
    padding: 0; /* the phone-wide a { padding } touch rule */
    min-width: 0;
    min-height: 0;
}

.ae-pf .report-profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ae-pf .report-profile-wrapper .report-profile-button {
    float: none;
    margin: 0 auto;
}

@media (max-width: 900px) {
    /* The price line under the name repeats it. */
    .ae-pf .ae-pf-head:has(.ae-pf-price-sm) .ae-pf-meta .ae-pf-today { display: none !important; }
}

@media (max-width: 768px) {
    .ae-pf .ae-pf-gallery-wrap .ae-pf-gallery-verified { display: inline-flex; }

    /* 2 by 2 on phones. */
    .ae-pf .ae-pf-more-grid .girl:nth-of-type(n+5) { display: none !important; }
    /* #247: no lone card in the last row (3 cards show 2; a single card stays). */
    .ae-pf .ae-pf-more-grid .girl:nth-of-type(odd):not(:first-of-type):last-of-type { display: none !important; }
}

/* --------------------------------------------------------------------------
   Parent theme rules (#259) from escortwp/css/responsive.css (and its phone
   copy responsive-isphone.css), which printed after the child CSS and is not
   loaded here for logged-out visitors (ae_skips_parent_css()). The other
   parent rules these pages use are in css/parent-rules.css. The 960px
   breakpoint and values are copies, hence lint-ok; for logged-in visitors
   they repeat responsive.css exactly.
   -------------------------------------------------------------------------- */
@media (max-width: 960px) { /* lint-ok: the parent responsive.css breakpoint */
    .all-body {
        -webkit-box-orient: vertical;
    }

    .form-styling .form-label {
        padding-bottom: 5px; /* lint-ok */
    }

    .form-styling .form-label,
    .form-styling .form-input,
    .form-styling .form-input .input,
    .form-styling .form-input .textarea,
    .form-styling .form-input select {
        width: 100%;
    }

    .addedtours .tour-info-mobile,
    .addedtours .tourhead {
        display: none;
    }

    .addedtours .tour-info-mobile-clear {
        display: block;
    }
}
