/* =====================================================================
   APD 16.0 · Detalle de alojamiento, galería, reputación y perfiles.
   Conserva la lógica nativa de Homey y aplica la experiencia visual APD.
   ===================================================================== */

html.apd16-modal-open,
body.apd16-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Acciones principales ------------------------------------------------ */
body.single-listing .apd52-text-action {
    border: 0;
    background: transparent;
}
body.single-listing .apd52-text-action .apd52-icon {
    width: 18px;
    height: 18px;
}
body.single-listing .apd52-text-action.add_fav.is-saved .apd52-icon,
body.single-listing .apd52-text-action.add_fav.is_favorite .apd52-icon,
body.single-listing .apd52-text-action.add_fav.fav-added .apd52-icon {
    color: #0d2b6c;
    fill: #7cc70a;
    stroke: #0d2b6c;
}

/* Favorito entre huéspedes ------------------------------------------- */
body.single-listing .apd13-guest-favorite {
    overflow: hidden;
    background: linear-gradient(112deg, #fff 0%, #fff 72%, #f4f8ff 100%) !important;
}
body.single-listing .apd13-laurel {
    color: #7cc70a !important;
    font-family: Georgia, serif;
}
body.single-listing .apd13-favorite-count span {
    text-decoration: none !important;
}

/* Reputación del anfitrión ------------------------------------------- */
body.single-listing .apd52-host-grid {
    align-items: start !important;
}
body.single-listing .apd16-host-card {
    min-height: 292px;
    padding: 30px 26px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 118px !important;
    align-items: center !important;
    gap: 26px !important;
    border: 1px solid #e3e3e3 !important;
    background: #fff !important;
    box-shadow: 0 7px 26px rgba(0, 0, 0, .11) !important;
}
body.single-listing .apd16-host-identity {
    min-width: 0;
    text-align: center;
}
body.single-listing .apd16-host-avatar-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
}
body.single-listing .apd16-host-avatar-wrap img {
    width: 112px !important;
    height: 112px !important;
    display: block;
    object-fit: cover;
    border-radius: 999px;
}
body.single-listing .apd16-verified-badge {
    position: absolute;
    right: 1px;
    bottom: 3px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #0d2b6c;
    font-size: 15px;
    font-weight: 800;
}
body.single-listing .apd16-host-identity h3 {
    margin: 0 !important;
    color: #222 !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: -.04em !important;
}
body.single-listing .apd16-host-identity p {
    margin: 6px 0 2px !important;
    color: #444 !important;
    font-size: 14px !important;
}
body.single-listing .apd16-host-identity small {
    color: #0d2b6c;
    font-size: 12px;
    font-weight: 700;
}
body.single-listing .apd16-host-stats {
    margin: 0 !important;
    display: grid;
    gap: 0;
}
body.single-listing .apd16-host-stats > div {
    padding: 13px 0;
    border-bottom: 1px solid #dedede;
}
body.single-listing .apd16-host-stats > div:last-child {
    border-bottom: 0;
}
body.single-listing .apd16-host-stats dd,
body.single-listing .apd16-host-stats dt {
    margin: 0;
}
body.single-listing .apd16-host-stats dd {
    color: #222;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 750;
}
body.single-listing .apd16-host-stats dt {
    margin-top: 4px;
    color: #717171;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
}
body.single-listing .apd16-reputation-line {
    margin: 16px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
body.single-listing .apd16-reputation-line > span {
    min-height: 34px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #dedede;
    border-radius: 999px;
    color: #444;
    background: #fff;
    font-size: 12px;
}
body.single-listing .apd16-reputation-line .apd52-icon {
    width: 14px;
    height: 14px;
    color: #7cc70a;
    fill: currentColor;
}
body.single-listing .apd16-verified-stay {
    color: #0d2b6c;
    font-weight: 650;
}

/* Evaluaciones -------------------------------------------------------- */
body.single-listing .apd52-rating-overview {
    display: grid !important;
    grid-template-columns: 1.25fr repeat(6, minmax(78px, 1fr)) !important;
    align-items: stretch !important;
    gap: 0 !important;
    border-top: 1px solid #e2e2e2 !important;
    border-bottom: 1px solid #e2e2e2 !important;
}
body.single-listing .apd52-rating-overview > div {
    min-height: 112px;
    padding: 20px 17px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-left: 1px solid #e2e2e2 !important;
}
body.single-listing .apd52-rating-overview > div:first-child {
    border-left: 0 !important;
}
body.single-listing .apd52-rating-overview .apd52-rating-main strong {
    font-size: 36px !important;
    letter-spacing: -.05em;
}
body.single-listing .apd52-rating-overview > div:not(.apd52-rating-main) strong {
    font-size: 19px !important;
}
body.single-listing .apd52-rating-overview span {
    line-height: 1.25 !important;
}
body.single-listing .apd52-review-card {
    min-width: 0;
}
body.single-listing .apd52-review-card header img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 999px;
}
body.single-listing .apd52-review-stars {
    color: #0d2b6c !important;
    letter-spacing: 1px;
}

/* Mapa --------------------------------------------------------------- */
body.single-listing .apd16-map-shell,
body.single-listing .apd16-map-shell .block {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.single-listing .apd16-map-shell #homey-single-map {
    width: 100% !important;
    min-height: 470px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #eaf3e7 !important;
}
body.single-listing .apd16-map-shell .leaflet-tile-pane {
    filter: saturate(.78) contrast(.94) brightness(1.035);
}
body.single-listing .apd16-map-shell .leaflet-control-zoom,
body.single-listing .apd16-map-shell .gm-bundled-control {
    border: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .16) !important;
}
body.single-listing .apd16-map-shell .leaflet-control-zoom a {
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    color: #222 !important;
    background: #fff !important;
    font-size: 19px !important;
    line-height: 1 !important;
}
body.single-listing .apd16-map-shell .leaflet-marker-icon {
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .22));
}
body.single-listing .apd16-map-note {
    margin-top: 14px;
    display: grid;
    gap: 3px;
}
body.single-listing .apd16-map-note strong {
    color: #222;
    font-size: 15px;
}
body.single-listing .apd16-map-note span {
    color: #717171;
    font-size: 13px;
}

/* Galería completa ---------------------------------------------------- */
.apd16-gallery-modal,
.apd16-share-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.apd16-gallery-modal.is-open,
.apd16-share-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.apd16-gallery-modal {
    overflow: auto;
    color: #222;
    background: #fff;
}
.apd16-gallery-shell {
    min-height: 100%;
}
.apd16-gallery-header {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 72px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid #e7e7e7;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.apd16-gallery-header > strong {
    font-size: 16px;
    text-align: center;
}
.apd16-gallery-header > div {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}
.apd16-round-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #222;
    background: #f3f3f3;
    cursor: pointer;
}
.apd16-round-button:hover {
    background: #e9e9e9;
}
.apd16-round-button .apd52-icon {
    width: 18px;
    height: 18px;
}
.apd16-gallery-overview {
    width: min(calc(100% - 48px), 1080px);
    margin: 0 auto;
    padding: 42px 0 80px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.apd16-gallery-overview > button {
    min-height: 250px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #eee;
    cursor: zoom-in;
}
.apd16-gallery-overview > button:nth-child(3n + 1) {
    grid-column: 1 / -1;
    min-height: 570px;
}
.apd16-gallery-overview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter .18s ease;
}
.apd16-gallery-overview button:hover img {
    filter: brightness(.9);
}
.apd16-gallery-viewer {
    position: fixed;
    inset: 72px 0 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
    place-items: center;
    background: #111;
}
.apd16-gallery-viewer[hidden] {
    display: none !important;
}
.apd16-gallery-viewer figure {
    width: min(100%, 1180px);
    height: calc(100vh - 102px);
    margin: 0;
    padding: 24px 0 34px;
    display: grid;
    place-items: center;
    position: relative;
}
.apd16-gallery-viewer figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.apd16-gallery-viewer figcaption {
    position: absolute;
    right: 8px;
    bottom: 9px;
    color: #fff;
    font-size: 13px;
}
.apd16-gallery-arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 20, 20, .7);
    font-size: 29px;
    cursor: pointer;
}
.apd16-gallery-back {
    position: absolute;
    left: 24px;
    top: 20px;
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.apd16-gallery-back .apd52-icon {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

/* Compartir ----------------------------------------------------------- */
.apd16-share-modal {
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .58);
}
.apd16-share-dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: min(760px, calc(100vh - 48px));
    padding: 32px;
    overflow: auto;
    border-radius: 18px;
    color: #222;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}
.apd16-share-close {
    position: absolute;
    top: 20px;
    right: 20px;
}
.apd16-share-dialog h2 {
    margin: 0 54px 25px 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.03em;
}
.apd16-share-preview {
    padding-bottom: 24px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e1e1e1;
}
.apd16-share-preview img {
    width: 112px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
}
.apd16-share-preview strong,
.apd16-share-preview span,
.apd16-share-preview small {
    display: block;
}
.apd16-share-preview strong {
    margin-bottom: 5px;
    font-size: 15px;
}
.apd16-share-preview span,
.apd16-share-preview small {
    color: #717171;
    font-size: 12px;
    line-height: 1.4;
}
.apd16-share-grid {
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.apd16-share-grid > button {
    min-height: 66px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    color: #222;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.apd16-share-grid > button:hover {
    background: #f7f7f7;
    border-color: #222;
}
.apd16-share-grid .apd52-icon,
.apd16-share-letter {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 29px;
}
.apd16-share-letter {
    border: 1px solid #222;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 750;
}
.apd16-share-status {
    min-height: 20px;
    margin: 16px 0 0;
    color: #0d2b6c;
    font-size: 13px;
    font-weight: 650;
}

/* Perfil público de anfitrión / viajero ------------------------------- */
body.author.apd-marketplace-ui {
    color: #222;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.apd16-profile-page {
    padding: 58px 0 90px;
}
.apd16-profile-shell {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
}
.apd16-profile-hero {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: start;
    gap: 78px;
}
.apd16-profile-card {
    min-height: 360px;
    padding: 36px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px;
    align-items: center;
    gap: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}
.apd16-profile-identity {
    min-width: 0;
    text-align: center;
}
.apd16-profile-avatar {
    position: relative;
    width: 126px;
    height: 126px;
    margin: 0 auto 16px;
}
.apd16-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}
.apd16-profile-avatar span {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #0d2b6c;
    font-weight: 800;
}
.apd16-profile-identity h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -.045em;
}
.apd16-profile-identity p {
    margin: 7px 0 3px;
    color: #444;
    font-size: 14px;
}
.apd16-profile-identity small {
    color: #0d2b6c;
    font-size: 12px;
    font-weight: 700;
}
.apd16-profile-stats {
    margin: 0;
}
.apd16-profile-stats > div {
    padding: 17px 0;
    border-bottom: 1px solid #ddd;
}
.apd16-profile-stats > div:last-child {
    border-bottom: 0;
}
.apd16-profile-stats dd,
.apd16-profile-stats dt {
    margin: 0;
}
.apd16-profile-stats dd {
    font-size: 23px;
    line-height: 1;
    font-weight: 750;
}
.apd16-profile-stats dt {
    margin-top: 5px;
    color: #717171;
    font-size: 11px;
    line-height: 1.25;
}
.apd16-profile-summary {
    padding-top: 10px;
}
.apd16-profile-kicker {
    color: #0d2b6c;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.apd16-profile-summary h2 {
    margin: 8px 0 28px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.045em;
}
.apd16-profile-score-row {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.apd16-score-disc {
    --apd16-score: 0;
    width: 84px;
    height: 84px;
    display: grid;
    place-content: center;
    grid-template-columns: auto auto;
    align-items: baseline;
    border-radius: 999px;
    background: conic-gradient(#7cc70a calc(var(--apd16-score) * 1%), #e8edf3 0);
    position: relative;
}
.apd16-score-disc::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: inherit;
    background: #fff;
}
.apd16-score-disc strong,
.apd16-score-disc span {
    position: relative;
    z-index: 1;
}
.apd16-score-disc strong {
    font-size: 24px;
}
.apd16-score-disc span {
    color: #717171;
    font-size: 10px;
}
.apd16-profile-score-row > div:last-child > strong {
    font-size: 17px;
}
.apd16-profile-score-row p,
.apd16-profile-fact,
.apd16-profile-bio {
    color: #555;
    font-size: 15px;
    line-height: 1.55;
}
.apd16-profile-score-row p {
    margin: 5px 0 0;
}
.apd16-profile-fact {
    margin: 8px 0;
}
.apd16-profile-bio {
    margin-top: 20px;
}
.apd16-profile-trust,
.apd16-profile-listings,
.apd16-profile-reviews {
    margin-top: 62px;
    padding-top: 50px;
    border-top: 1px solid #ddd;
}
.apd16-profile-trust > h2,
.apd16-profile-listings > h2,
.apd16-profile-reviews > header h2 {
    margin: 0 0 28px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 720;
    letter-spacing: -.035em;
}
.apd16-profile-trust > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.apd16-profile-trust article {
    padding: 22px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 13px;
    border: 1px solid #ddd;
    border-radius: 15px;
}
.apd16-profile-trust article > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0d2b6c;
    background: #eff5ff;
    font-weight: 800;
}
.apd16-profile-trust strong {
    display: block;
    font-size: 15px;
}
.apd16-profile-trust p {
    margin: 6px 0 0;
    color: #717171;
    font-size: 13px;
    line-height: 1.45;
}
.apd16-profile-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 16px;
}
.apd16-profile-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 70px;
}
.apd16-profile-reviews > header p {
    margin: -18px 0 28px;
    color: #717171;
}
.apd16-profile-review-grid > article {
    min-width: 0;
}
.apd16-profile-review-grid article > header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.apd16-profile-review-grid header img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 999px;
}
.apd16-profile-review-grid header strong,
.apd16-profile-review-grid header span {
    display: block;
}
.apd16-profile-review-grid header span {
    margin-top: 2px;
    color: #717171;
    font-size: 12px;
}
.apd16-profile-stars {
    margin-top: 13px;
    color: #0d2b6c;
    font-size: 12px;
    letter-spacing: 1px;
}
.apd16-profile-review-grid small {
    display: inline-block;
    margin-top: 5px;
    color: #0d2b6c;
    font-weight: 650;
}
.apd16-profile-review-grid p {
    margin: 10px 0 0;
    color: #444;
    line-height: 1.55;
}
.apd16-profile-empty {
    padding: 22px;
    border: 1px solid #ddd;
    border-radius: 14px;
}
.apd16-profile-empty p {
    margin: 5px 0 0;
    color: #717171;
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
    body.single-listing .apd52-rating-overview {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    body.single-listing .apd52-rating-overview > div:nth-child(5) {
        border-left: 0 !important;
        border-top: 1px solid #e2e2e2 !important;
    }
    body.single-listing .apd52-rating-overview > div:nth-child(n + 5) {
        border-top: 1px solid #e2e2e2 !important;
    }
    .apd16-profile-hero {
        grid-template-columns: 350px minmax(0, 1fr);
        gap: 48px;
    }
}

@media (max-width: 899px) {
    body.single-listing .apd16-host-card {
        grid-template-columns: 1fr 112px !important;
    }
    body.single-listing .apd52-rating-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.single-listing .apd52-rating-overview > div {
        border-top: 1px solid #e2e2e2 !important;
    }
    body.single-listing .apd52-rating-overview > div:nth-child(odd) {
        border-left: 0 !important;
    }
    body.single-listing .apd52-rating-overview > div:first-child,
    body.single-listing .apd52-rating-overview > div:nth-child(2) {
        border-top: 0 !important;
    }
    .apd16-profile-hero {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .apd16-profile-card {
        width: min(100%, 430px);
    }
    .apd16-profile-trust > div {
        grid-template-columns: 1fr;
    }
    .apd16-profile-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body.single-listing .apd13-guest-favorite {
        grid-template-columns: 24px minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }
    body.single-listing .apd13-guest-favorite .apd13-favorite-rating,
    body.single-listing .apd13-guest-favorite .apd13-favorite-count,
    body.single-listing .apd13-guest-favorite .apd13-laurel.is-right {
        display: none !important;
    }
    body.single-listing .apd52-host-grid {
        grid-template-columns: 1fr !important;
    }
    body.single-listing .apd16-host-card {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 105px !important;
        padding: 24px 18px !important;
    }
    body.single-listing .apd16-host-avatar-wrap,
    body.single-listing .apd16-host-avatar-wrap img {
        width: 94px !important;
        height: 94px !important;
    }
    body.single-listing .apd16-host-identity h3 {
        font-size: 24px !important;
    }
    body.single-listing .apd16-map-shell #homey-single-map {
        min-height: 360px !important;
        border-radius: 12px !important;
    }
    .apd16-gallery-header {
        min-height: 62px;
        padding: 0 14px;
        grid-template-columns: auto 1fr auto;
    }
    .apd16-gallery-header > strong {
        padding: 0 8px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .apd16-gallery-header .apd52-text-action {
        width: 40px;
        overflow: hidden;
        color: transparent !important;
        gap: 0 !important;
    }
    .apd16-gallery-header .apd52-text-action .apd52-icon {
        color: #222;
        flex: 0 0 18px;
    }
    .apd16-gallery-overview {
        width: 100%;
        padding: 8px 0 62px;
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .apd16-gallery-overview > button,
    .apd16-gallery-overview > button:nth-child(3n + 1) {
        grid-column: auto;
        min-height: 310px;
    }
    .apd16-gallery-viewer {
        inset: 62px 0 0;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }
    .apd16-gallery-viewer figure {
        height: calc(100vh - 82px);
        padding: 12px 0 28px;
    }
    .apd16-gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    .apd16-gallery-back {
        left: 10px;
        top: 10px;
        width: 40px;
        padding: 0;
        justify-content: center;
        overflow: hidden;
        color: transparent;
    }
    .apd16-gallery-back .apd52-icon {
        color: #fff;
        flex: 0 0 16px;
    }
    .apd16-share-modal {
        padding: 0;
        align-items: end;
    }
    .apd16-share-dialog {
        width: 100%;
        max-height: min(86vh, 760px);
        padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }
    .apd16-share-dialog h2 {
        font-size: 22px;
    }
    .apd16-share-preview {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .apd16-share-preview img {
        width: 92px;
        height: 72px;
    }
    .apd16-share-grid {
        grid-template-columns: 1fr;
    }
    .apd16-share-grid > button {
        min-height: 58px;
    }
    .apd16-profile-page {
        padding: 30px 0 74px;
    }
    .apd16-profile-shell {
        width: calc(100% - 32px);
    }
    .apd16-profile-card {
        min-height: 320px;
        padding: 27px 20px;
        grid-template-columns: minmax(0, 1fr) 105px;
        gap: 16px;
    }
    .apd16-profile-avatar {
        width: 100px;
        height: 100px;
    }
    .apd16-profile-identity h1 {
        font-size: 25px;
    }
    .apd16-profile-summary h2 {
        font-size: 29px;
    }
    .apd16-profile-trust,
    .apd16-profile-listings,
    .apd16-profile-reviews {
        margin-top: 44px;
        padding-top: 38px;
    }
    .apd16-profile-listing-grid,
    .apd16-profile-review-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* APD 26.3: perfiles de quienes evaluaron, accesibles desde su avatar. */
.apd16-profile-page .apd26-review-profile-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: inherit !important;
    text-decoration: none !important;
}
.apd16-profile-page .apd26-review-profile-link:hover strong {
    text-decoration: underline !important;
}
