/* PartnerApp v0.7 — capa responsive. Mantiene intacta la API v0.6. */
:root {
  --pa-bg:#111827;
  --pa-panel:#1b2535;
  --pa-panel-light:#263449;
  --pa-border:#344257;
  --pa-amber:#fbbf24;
  --pa-green:#34d399;
}
*, *::before, *::after {box-sizing:border-box;}
html, body {margin:0; width:100%; max-width:100%;}
body {overflow:hidden; background:var(--pa-bg); color:#f8fafc; overscroll-behavior:none;}
body.modal-open {overflow:hidden;}
button, input, select, textarea {font-family:inherit;}
button {touch-action:manipulation;}
button:focus-visible, a:focus-visible {outline:3px solid var(--pa-amber);outline-offset:2px;}
.app-shell {width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;}
.app-header {z-index:900;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;min-height:74px;gap:14px;padding:10px clamp(16px,2.5vw,30px);background:#172233;border-bottom:1px solid #334155;box-shadow:0 2px 14px #0f172a32;}
.brand {display:flex;align-items:center;min-width:0;gap:11px;}
.brand-mark {display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;background:linear-gradient(145deg,#fbbf24,#d97706);border-radius:14px;font-size:25px;box-shadow:0 4px 14px #b4530940;}
.brand-title {font-weight:850;font-size:21px;letter-spacing:-.65px;line-height:1.15;white-space:nowrap;}
.brand-title span {color:#fbbf24;}
.brand-title small {font-size:10px;font-weight:750;letter-spacing:0;vertical-align:middle;color:#94a3b8;margin-left:3px;}
.brand-subtitle {font-size:11px;font-weight:500;letter-spacing:.06px;color:#b5c1d3;margin-top:4px;white-space:nowrap;}
.desktop-toolbar {display:flex;align-items:center;gap:10px;}
.user-navigation {display:flex;align-items:center;gap:9px;padding-left:10px;border-left:1px solid #374151;}
.user-navigation span {max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.btn {border-radius:10px;min-height:40px;line-height:1.2;transition:background-color .15s,border-color .15s;}
.btn-primary {background-color:#d97706;}
.btn-green {background-color:#047857;}
.header-add-spot {display:none;}
.map-shell {position:relative;min-height:0;flex:1 1 auto;isolation:isolate;}
#map {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;background:#b9cbd0;}
.map-help {z-index:500;position:absolute;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);display:flex;gap:9px;align-items:center;border:1px solid #ffffffce;border-radius:999px;padding:11px 18px;background:#fffefaed;box-shadow:0 4px 20px #0f172a26;color:#334155;font-size:13px;font-weight:650;white-space:nowrap;pointer-events:none;}
.map-help-icon {font-size:15px;}
.placement-banner {z-index:850;position:absolute;top:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:min(550px,calc(100% - 24px));padding:12px 15px;color:#1e293b;background:#fff9e6;border:2px solid #fbbf24;border-radius:15px;box-shadow:0 8px 24px #0f172a3b;font-size:13px;}
.placement-banner.hidden, .map-help.hidden {display:none!important;}
.placement-icon {font-size:23px;line-height:1;}
.placement-copy {flex:1;min-width:0;line-height:1.4;}
.placement-cancel {padding:9px 11px;border-radius:9px;background:#334155;color:white;font-weight:750;flex:0 0 auto;}
#map.is-placing {cursor:crosshair;}
.bottom-nav {display:none;}
.panel {background:var(--pa-panel);border-color:var(--pa-border);}
.modal {overscroll-behavior:contain;}
.modal .field {max-width:100%;min-width:0;}
.modal .boxrow {max-width:100%;overflow-wrap:anywhere;}
.account-content {display:flex;flex-direction:column;gap:10px;}
.account-summary {display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #435167;border-radius:14px;background:#111827;margin:5px 0 10px;}
.account-avatar {display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#334155;font-size:22px;flex:0 0 auto;}
.account-summary strong {display:block;font-size:15px;overflow-wrap:anywhere;}
.account-summary span:not(.account-avatar) {display:block;color:#94a3b8;font-size:12px;margin-top:3px;}
.account-link {width:100%;min-height:51px;padding:12px 15px;border:1px solid #344257;border-radius:12px;background:#111827;display:flex;justify-content:space-between;align-items:center;text-align:left;font-size:15px;font-weight:650;}
.account-link span:last-child {color:#94a3b8;font-size:22px;}
.account-logout {color:#fecaca;margin-top:8px;}
.account-prompt {font-size:14px;color:#cbd5e1;line-height:1.6;padding:2px 0 10px;}
.account-main-button {width:100%;min-height:48px;font-size:15px;}
.leaflet-popup-content-wrapper {border-radius:13px;max-width:calc(100vw - 44px);}
.leaflet-popup-content {max-width:calc(100vw - 85px);overflow-wrap:anywhere;}
.leaflet-control-zoom a {width:38px!important;height:38px!important;line-height:38px!important;}

@media(max-width:1100px) and (min-width:768px) {
  .app-header {flex-wrap:wrap;gap:9px;}
  .desktop-toolbar {flex-wrap:wrap;justify-content:flex-end;}
  .user-navigation {gap:5px;}
  .brand-subtitle {display:none;}
  .desktop-toolbar .btn {padding:9px 11px;}
}

@media(max-width:767px) {
  .app-header {min-height:65px;padding:9px 15px 9px 13px;gap:10px;}
  .brand {gap:10px;}
  .brand-mark {width:42px;height:42px;border-radius:13px;font-size:23px;}
  .brand-title {font-size:21px;}
  .brand-subtitle {font-size:10px;margin-top:3px;letter-spacing:0;}
  .desktop-toolbar {display:none!important;}
  .header-add-spot {display:flex;align-items:center;gap:6px;flex:0 0 auto;border-radius:12px;padding:8px 12px 8px 9px;min-height:43px;background:#f59e0b;color:#1f2937;font-size:13px;font-weight:800;box-shadow:0 2px 9px #0f172a26;}
  .header-add-icon {display:grid;place-items:center;font-size:24px;font-weight:500;line-height:1;width:22px;height:22px;}
  .map-help {bottom:15px;max-width:calc(100% - 32px);font-size:11px;font-weight:650;padding:9px 12px;white-space:normal;text-align:center;line-height:1.35;border-radius:14px;}
  .leaflet-control-container .leaflet-top.leaflet-left {top:10px;left:10px;}
  .leaflet-control-zoom a {width:43px!important;height:43px!important;line-height:43px!important;font-size:20px!important;}
  .leaflet-control-attribution {font-size:9px!important;max-width:calc(100vw - 10px);white-space:normal;}
  .bottom-nav {z-index:950;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;flex:0 0 auto;min-height:69px;padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px));border-top:1px solid #344256;background:#172233;box-shadow:0 -4px 16px #0f172a26;}
  .bottom-item {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:59px;padding:5px 1px;border-radius:13px;color:#b5c0cf;font-size:11px;font-weight:700;}
  .bottom-icon {font-size:22px;line-height:24px;display:block;filter:grayscale(.1);}
  .bottom-item.active {background:#394352;color:#fbbf24;}
  .bottom-item.active .bottom-icon {filter:none;}
  .placement-banner {top:14px;width:calc(100% - 24px);font-size:12px;padding:11px;gap:9px;align-items:center;}
  .placement-cancel {font-size:12px;min-height:39px;}
  .modal {padding:0!important;align-items:flex-end!important;justify-content:center!important;background:#020617b3;}
  .modal .panel {max-width:none!important;width:100%!important;max-height:92vh;max-height:92dvh;border-radius:22px 22px 0 0;border-left:0;border-right:0;border-bottom:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:22px 17px calc(22px + env(safe-area-inset-bottom,0px));background:#1b2535;box-shadow:0 -12px 50px #0009;}
  .modal:not(.hidden) .panel {animation:pa-sheet-in .18s ease-out;}
  .modal-close {position:sticky;top:0;float:right;margin:-6px -3px -39px 4px;z-index:4;display:grid;place-items:center;width:40px;height:40px;background:#334155;border:1px solid #56667a;border-radius:50%;color:#fff;font-size:27px;line-height:1;}
  .modal h2 {font-size:19px;line-height:1.3;padding-right:50px;margin-bottom:15px;}
  .modal .note {font-size:12px;line-height:1.5;}
  .modal .field {min-height:46px;font-size:16px!important;padding:12px 12px;line-height:1.35;}
  .modal textarea.field {min-height:88px;resize:vertical;}
  .modal .hint {font-size:12px;line-height:1.35;margin-bottom:7px;color:#c8d4e5;}
  .modal .btn {min-height:46px;font-size:14px;padding:11px 14px;}
  .modal .boxrow {padding:13px;border-radius:13px;}
  #offersList {grid-template-columns:minmax(0,1fr)!important;}
  #spotForm > .flex:last-child, #tripForm > .flex:last-child {gap:9px;justify-content:stretch;}
  #spotForm > .flex:last-child > *, #tripForm > .flex:last-child > * {flex:1 1 0;}
  .itinerary-row .field {min-width:0;}
  .itinerary-row .grid {grid-template-columns:minmax(0,1fr)!important;}
  #mineList .boxrow .btn, #offersList .boxrow .btn {width:100%;}
}
@media(max-width:410px) {
  .brand-title {font-size:19px;}
  .brand-subtitle {font-size:9px;}
  .brand-mark {width:38px;height:38px;font-size:21px;}
  .header-add-spot {font-size:12px;padding:7px 9px;min-height:40px;}
  #spotForm .grid, #tripForm .grid {grid-template-columns:minmax(0,1fr)!important;}
  .bottom-item {font-size:10.5px;}
}
@media(max-width:340px) {
  .brand-title {font-size:17px;}
  .brand-subtitle {font-size:8.5px;}
  .brand {gap:7px;}
  .header-add-spot {gap:2px;padding:7px;}
}
@media(max-height:540px) and (max-width:767px) {
  .app-header {min-height:54px;padding-top:5px;padding-bottom:5px;}
  .brand-subtitle {display:none;}
  .bottom-nav {min-height:58px;}
  .bottom-item {min-height:46px;gap:1px;}
  .bottom-icon {font-size:17px;line-height:19px;}
  .modal .panel {max-height:95dvh;}
  .map-help {display:none;}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important;}
}
@keyframes pa-sheet-in {from {transform:translateY(14px);opacity:.75;}to {transform:translateY(0);opacity:1;}}

/* PartnerApp v0.8 - fichas, galería, comentarios y estrellas */
.spot-popup {min-width:190px;max-width:260px;}
.spot-popup p {margin:8px 0;font-size:12px;}
.spot-popup-action {background:#d97706;color:white;border:0;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:700;cursor:pointer;width:100%;}
.spot-detail-panel {max-width:850px;}
.spot-hero {display:grid;grid-template-columns:minmax(0, 1fr) minmax(190px,.9fr);gap:15px;align-items:stretch;}
.spot-cover,.spot-no-cover {width:100%;height:205px;border-radius:14px;object-fit:cover;background:#374151;}
.spot-no-cover {display:grid;place-items:center;font-size:64px;}
.spot-hero-copy {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-width:0;}
.spot-category {display:inline-block;border-radius:8px;background:#374151;color:#fcd34d;padding:7px 10px;text-transform:capitalize;font-size:13px;}
.spot-hero-copy>strong {font-size:16px;color:#fde68a;}
.spot-section {background:#111827;border:1px solid #354358;border-radius:14px;padding:17px;min-width:0;}
.spot-section h3 {font-size:16px;font-weight:750;color:#f8fafc;margin:0 0 12px;}
.spot-section p {font-size:14px;line-height:1.6;color:#e2e8f0;}
.spot-preline,.spot-attribute strong,.spot-comment p {white-space:pre-wrap;overflow-wrap:anywhere;}
.spot-attributes {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px;margin-top:15px;}
.spot-attribute {display:flex;flex-direction:column;gap:5px;padding:11px 12px;border:1px solid #374151;border-radius:10px;}
.spot-attribute span {color:#94a3b8;font-size:11px;}
.spot-attribute strong {font-size:13px;font-weight:500;color:#e2e8f0;}
.spot-gallery {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:12px;}
.spot-photo {min-width:0;border-radius:12px;background:#243247;overflow:hidden;}
.spot-photo img {width:100%;height:150px;object-fit:cover;display:block;}
.photo-caption {padding:9px;display:flex;justify-content:space-between;gap:6px;color:#cbd5e1;font-size:11px;overflow-wrap:anywhere;}
.photo-caption button,.spot-comment button {font-size:11px;text-decoration:underline;color:#fca5a5;}
.photo-upload-label {display:inline-block;cursor:pointer;margin:8px 0 5px;border-radius:10px;padding:11px 15px;background:#d97706;color:white;font-size:13px;font-weight:700;}
.photo-upload-label input {position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;}
.rating-row {display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:6px 0 12px;}
.rating-star {font-size:38px;color:#64748b;line-height:1;min-width:43px;min-height:48px;cursor:pointer;}
.rating-star.selected,.rating-star:hover {color:#fbbf24;}
.rating-star:focus-visible {outline:2px solid #fbbf24;outline-offset:2px;border-radius:6px;}
.spot-comments {display:flex;flex-direction:column;gap:10px;margin-top:16px;}
.spot-comment {border:1px solid #374151;background:#1e293b;border-radius:11px;padding:12px;}
.spot-comment p {margin:8px 0;color:#e2e8f0;}
.comment-top {display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:13px;}
.comment-top span {font-size:11px;color:#94a3b8;white-space:nowrap;}
.comment-form {display:flex;flex-direction:column;align-items:stretch;gap:10px;}
.comment-form button {align-self:flex-end;}
@media(max-width:767px){
  .spot-hero {grid-template-columns:minmax(0,1fr);}
  .spot-cover,.spot-no-cover {height:190px;}
  .spot-hero-copy {gap:8px;}
  .spot-attributes {grid-template-columns:minmax(0,1fr);}
  .spot-gallery {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .spot-photo img {height:140px;}
  .spot-section {padding:13px;}
  .rating-star {font-size:34px;min-width:42px;}
}
@media(max-width:350px){.spot-gallery {grid-template-columns:minmax(0,1fr) minmax(0,1fr);} .spot-photo img {height:105px;}}

/* v0.9 – selector ES/EN adaptativo */
.language-control{display:flex;align-items:center;gap:5px;flex:0 0 auto;padding:7px 8px;border:1px solid #526176;border-radius:10px;background:#263449;color:#fff;min-height:40px;}
.language-icon{font-size:16px;line-height:1;}
.language-control select{color:#fff;background:transparent;border:0;outline:none;font-size:13px;font-weight:700;cursor:pointer;min-width:35px;}
.language-control select option{color:#111827;background:#fff;}
.language-control:focus-within{outline:2px solid #fbbf24;outline-offset:2px;}
@media(max-width:767px){
 .app-header{gap:7px;padding-left:10px;padding-right:10px;}
 .brand{margin-right:auto;gap:7px;}
 .brand-mark{width:35px;height:35px;font-size:19px;border-radius:10px;}
 .brand-title{font-size:18px;}
 .brand-subtitle{display:none;}
 .language-control{gap:3px;padding:6px 5px;min-height:38px;}
 .language-icon{font-size:14px;}
 .language-control select{font-size:12px;min-width:32px;}
 .header-add-spot{gap:3px;min-height:38px;padding:6px 8px;font-size:12px;}
 .header-add-icon{width:18px;font-size:21px;}
}
@media(max-width:350px){
 .brand-mark{display:none;}
 .brand-title{font-size:17px;}
 .brand-title small{display:none;}
 .header-add-spot{padding:6px 7px;}
}

/* PartnerApp v0.10 - enlaces sociales y detalle de viajes */
.spot-popup-share {width:100%;margin-top:7px;padding:9px 12px;border:1px solid #d97706;border-radius:9px;background:#fff7ed;color:#92400e;font-size:12px;font-weight:700;cursor:pointer;}
.share-card-actions,.trip-actions {display:flex;flex-wrap:wrap;align-items:center;gap:9px;}
.share-card-actions .btn,.trip-actions .btn {flex:0 1 auto;}
.share-panel {max-width:520px;}
.share-item-title {font-size:17px;font-weight:700;line-height:1.45;margin:0 0 20px;color:#f8fafc;overflow-wrap:anywhere;}
.share-url-row {display:flex;align-items:center;gap:8px;margin-bottom:18px;}
.share-url-row .field {flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;}
.share-channels {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.share-channel {display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:12px 10px;border:1px solid #4b5563;border-radius:12px;background:#111827;color:#f8fafc;text-align:center;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer;}
.share-channel:hover {background:#374151;border-color:#f59e0b;}
.share-channel span {font-size:20px;line-height:1;}
.share-native-button {width:100%;margin-top:16px;min-height:50px;}
.share-note {margin-top:12px;min-height:30px;line-height:1.5;overflow-wrap:anywhere;}
.trip-detail-main {display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:17px;border:1px solid #374151;background:#111827;border-radius:14px;}
.trip-detail-meta {display:flex;gap:11px;flex-wrap:wrap;color:#fbbf24;font-size:13px;font-weight:650;}
.trip-long-description,.trip-notes {white-space:pre-wrap;overflow-wrap:anywhere;color:#e2e8f0;line-height:1.6;font-size:14px;}
.trip-itinerary-item {border-top:1px solid #374151;padding:13px 0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;}
.trip-itinerary-item:first-of-type {border-top:0;}
.trip-itinerary-item strong {font-size:13px;color:#fbbf24;}
.trip-itinerary-item p {margin:0;}
.trip-spot-link {border:0;background:transparent;color:#93c5fd;text-decoration:underline;cursor:pointer;font-size:14px;text-align:left;}
@media(max-width:767px) {
  .share-url-row .btn {min-height:46px;flex:0 0 auto;}
  .share-channels {grid-template-columns:repeat(2,minmax(0,1fr));}
  .share-channel {min-height:55px;}
  .trip-actions {width:100%;}
  .trip-actions .btn {flex:1 1 135px;}
}
@media(max-width:340px) {
  .share-url-row {flex-wrap:wrap;}
  .share-url-row .field,.share-url-row .btn {width:100%;flex:1 1 100%;}
}

/* PartnerApp v0.11 - perfil deportivo e historial */
.profile-panel{max-width:820px;}
.profile-hero{display:flex;gap:18px;align-items:center;padding:19px;border-radius:15px;background:#111827;border:1px solid #3e4a60;}
.profile-avatar{width:80px;height:80px;flex:0 0 80px;border-radius:50%;background:#35465d;display:grid;place-items:center;font-size:37px;overflow:hidden;}
.profile-avatar img{width:100%;height:100%;object-fit:cover;}
.profile-hero-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px;}
.profile-hero-body h3{font-size:22px;font-weight:800;line-height:1.2;overflow-wrap:anywhere;}
.profile-hero-body p{color:#cbd5e1;font-size:13px;}
.profile-status{font-size:11px;font-weight:650;color:#fcd34d;}
.profile-bio{line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#e2e8f0;font-size:14px;}
.profile-actions,.profile-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;}
.profile-form-actions{justify-content:flex-end;padding:5px 0;}
.profile-private-info{font-size:12px;color:#94a3b8;border-left:3px solid #64748b;padding:8px 13px;background:#111827;border-radius:8px;}
.profile-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.profile-data-grid section:last-child{grid-column:1 / -1;}
.profile-tags,.profile-socials{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.profile-tag{border:1px solid #45576e;color:#e2e8f0;background:#243247;padding:7px 9px;border-radius:20px;font-size:12px;}
.profile-socials a{border:1px solid #48617d;color:#c8e5ff;padding:9px 14px;text-decoration:none;border-radius:10px;font-size:13px;}
.profile-socials a:hover,.profile-socials a:focus-visible{background:#2e455f;}
.profile-fields-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.profile-fields-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
.profile-check{display:flex;align-items:center;gap:10px;color:#e2e8f0;line-height:1.4;font-size:13px;cursor:pointer;}
.profile-check input{width:18px;height:18px;flex:0 0 18px;accent-color:#d97706;}
.profile-equipment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.profile-gear-item{border:1px solid #3c4d63;border-radius:9px;padding:10px;}
.profile-section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:10px;}
.profile-section-head h3{margin:0;}
.profile-activity-list{display:flex;flex-direction:column;gap:9px;}
.profile-activity-card{display:flex;align-items:center;gap:12px;text-align:left;width:100%;border:1px solid #3d4e65;border-radius:12px;background:#1c2a3c;padding:13px;cursor:pointer;min-height:73px;}
.profile-activity-card:hover,.profile-activity-card:focus-visible{border-color:#f59e0b;outline:none;}
.profile-activity-emoji{font-size:26px;flex:0 0 30px;}
.profile-activity-text{flex:1;display:flex;flex-direction:column;min-width:0;gap:3px;}
.profile-activity-text strong{color:#f8fafc;font-size:14px;overflow-wrap:anywhere;}
.profile-activity-text span{color:#cbd5e1;font-size:12px;}
.profile-activity-text small{color:#94a3b8;font-size:11px;overflow-wrap:anywhere;}
.profile-activity-next{font-size:24px;color:#fbbf24;}
.profile-danger{color:#fecaca;background:#5c2931;}
.profile-map-link{display:inline-block;color:#a5d8ff;text-decoration:underline;font-size:13px;}
.activity-pin-map{width:100%;height:225px;border-radius:10px;border:1px solid #475569;overflow:hidden;}
.profile-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
.profile-activity-photo{position:relative;display:flex;flex-direction:column;align-items:stretch;border-radius:10px;overflow:hidden;background:#26374f;min-height:120px;}
.profile-activity-photo img{width:100%;height:145px;object-fit:cover;}
.profile-activity-photo button{font-size:11px;color:#fecaca;text-align:center;padding:8px;border-top:1px solid #475569;}
@media(max-width:767px){
  .profile-panel{padding:16px;}
  .profile-hero{padding:13px;gap:12px;}
  .profile-avatar{width:62px;height:62px;flex-basis:62px;font-size:30px;}
  .profile-hero-body h3{font-size:19px;}
  .profile-data-grid{grid-template-columns:minmax(0,1fr);}
  .profile-data-grid section:last-child{grid-column:auto;}
  .profile-fields-3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .profile-photos{grid-template-columns:repeat(2,minmax(0,1fr));}
  .profile-activity-photo img{height:132px;}
  .profile-actions .btn{flex:1 1 auto;min-height:43px;}
  .activity-pin-map{height:210px;}
}
@media(max-width:350px){
  .profile-fields-2,.profile-fields-3,.profile-equipment-grid{grid-template-columns:minmax(0,1fr);}
  .profile-actions .btn{width:100%;}
  .profile-photos{gap:7px;}
  .profile-activity-photo img{height:100px;}
}

/* PartnerApp v0.12 - public profile directory & private messaging */
.bottom-item{position:relative;}
.community-nav-unread{position:absolute;top:1px;right:18%;width:9px;height:9px;background:#f59e0b;border-radius:50%;border:1px solid #172233;}
.community-badge{display:inline-flex;min-width:18px;height:18px;padding:1px 5px;border-radius:999px;background:#b45309;color:white;align-items:center;justify-content:center;font-size:11px;}
.community-panel{max-width:850px;min-width:0;}
.community-tabs{display:flex;gap:9px;margin-bottom:15px;border-bottom:1px solid #374151;padding:0 0 13px;}
.community-tab{min-height:43px;padding:10px 16px;border-radius:10px;border:1px solid #475569;background:#273548;color:#cbd5e1;font-weight:700;font-size:14px;}
.community-tab.active{background:#d97706;border-color:#f59e0b;color:#fff;}
.community-pane{min-width:0;}
.community-search-form{display:grid;gap:11px;margin-bottom:16px;padding:14px;border:1px solid #475569;background:#121e2f;border-radius:13px;}
.community-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.community-search-form>.btn{justify-self:start;}
.community-people-list,.community-conversations{display:flex;flex-direction:column;gap:10px;}
.community-person,.community-conversation{border:1px solid #3d4b61;border-radius:13px;background:#111827;padding:13px;display:flex;align-items:center;gap:12px;min-width:0;}
.community-conversation{width:100%;text-align:left;cursor:pointer;min-height:76px;}
.community-avatar{display:grid;place-items:center;flex:0 0 45px;width:45px;height:45px;border-radius:50%;background:#4b5563;color:#fff;font-size:19px;font-weight:800;}
.community-person-main,.community-conversation-main{flex:1;min-width:0;}
.community-person-main strong,.community-conversation-main strong{display:block;color:#f8fafc;font-size:15px;overflow-wrap:anywhere;}
.community-person-main p,.community-conversation-main p{font-size:12px;color:#b2bfce;line-height:1.5;margin:4px 0;overflow-wrap:anywhere;}
.community-person-main .community-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.community-person-actions{display:flex;flex-direction:column;gap:7px;flex-shrink:0;}
.community-person-actions .btn{font-size:12px;padding:9px;}
.community-inbox-head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:0 0 14px;}
.community-thread-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #3f4b60;}
.community-thread-person{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere;}
.community-thread-person strong{font-size:15px;}
.community-message-list{display:flex;flex-direction:column;gap:11px;max-height:46dvh;min-height:190px;overflow:auto;padding:15px 3px;scroll-behavior:smooth;}
.community-bubble{max-width:min(88%,480px);padding:11px 13px;border-radius:13px;background:#334155;align-self:flex-start;overflow-wrap:anywhere;}
.community-bubble.mine{background:#065f46;align-self:flex-end;}
.community-bubble p{font-size:14px;line-height:1.45;white-space:pre-wrap;margin:0;}
.community-bubble time{display:block;text-align:right;color:#cbd5e1;font-size:10px;margin-top:7px;}
.community-compose{display:flex;align-items:end;gap:9px;border-top:1px solid #41516b;padding-top:12px;}
.community-compose .hint{position:absolute;width:1px;height:1px;overflow:hidden;}
.community-compose textarea{flex:1;min-width:0;min-height:54px;resize:vertical;}
.community-compose button{flex:0 0 auto;}
.community-more{margin:12px auto;display:block;}
.community-settings-card{margin:15px 0;}
.community-settings-card .profile-check{font-size:14px;font-weight:650;}
.community-settings-card p{margin:12px 0;}
.community-settings-card button{margin-top:11px;}
.community-blocked-item{padding:9px 0;border-bottom:1px solid #41516b;display:flex;justify-content:space-between;gap:10px;align-items:center;}
@media(max-width:767px){
 .bottom-item{font-size:10px;padding:5px 0;}
 .bottom-icon{font-size:20px;line-height:22px;}
 .community-panel{display:flex;flex-direction:column;min-height:55dvh;}
 .community-tab{flex:1;font-size:13px;}
 .community-person{flex-wrap:wrap;gap:10px;}
 .community-person-actions{width:100%;flex-direction:row;}
 .community-person-actions .btn{flex:1;}
 .community-thread-head .btn{font-size:12px;padding:7px;}
 .community-filter-row{grid-template-columns:minmax(0,1fr);}
 .community-compose .btn{padding:10px 12px;}
 .community-message-list{min-height:190px;max-height:39dvh;}
 .community-inbox-head{align-items:flex-start;}
}
@media(max-width:350px){.bottom-item{font-size:9px;}.bottom-icon{font-size:18px;}.community-conversation{padding:10px;}}

/* Close control stays in the top-right even when the dialog itself uses flex layout. */
.community-panel .modal-close{position:absolute;top:12px;right:12px;float:none;margin:0;z-index:6;}
@media(max-width:767px){.community-panel .modal-close{top:10px;right:12px;}}

/* v0.13 - Ubicación de salidas y marcadores temporales */
.trip-location-card{border-color:#64748b;}
.trip-location-map{width:100%;height:260px;min-height:260px;border-radius:12px;border:1px solid #64748b;overflow:hidden;z-index:0;background:#e2e8f0;}
.trip-location-map .leaflet-control-attribution{font-size:9px!important;}
.trip-location-area{min-width:0;}
.trip-map-toggle{width:100%;text-align:center;}
.trip-location-coords{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.trip-location-coords .field{font-variant-numeric:tabular-nums;font-size:13px;}
.partner-trip-pin{background:none;border:none;}
.partner-trip-pin span{display:grid;place-items:center;width:38px;height:38px;background:#059669;border:3px solid #fff;border-radius:50% 50% 50% 6px;transform:rotate(-45deg);box-shadow:0 4px 12px #0f172a88;font-size:21px;}
.partner-trip-pin span b{display:block;transform:rotate(45deg);font-size:21px;}
.trip-map-popup{min-width:185px;max-width:250px;color:#111827;}
.trip-map-popup h3{font-weight:800;font-size:14px;margin:6px 0;overflow-wrap:anywhere;}
.trip-map-popup p{margin:5px 0;line-height:1.35;}
.trip-map-popup button{margin-top:9px;}
.trip-location-detail{font-weight:700;color:#e2e8f0;overflow-wrap:anywhere;}
.trip-location-external{color:#93c5fd;text-decoration:underline;font-size:13px;}
@media(max-width:767px){
 .trip-location-map{height:245px;min-height:245px;}
 .trip-location-coords{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px;}
 .trip-location-coords .field{font-size:12px!important;min-width:0;padding:9px 7px;}
}
@media(max-width:350px){.trip-location-coords{grid-template-columns:minmax(0,1fr)!important;}}


/* PartnerApp v0.14 - panel de inicio: mapa, mensajes, salidas */
.home-dashboard{flex:1;min-height:0;display:flex;flex-direction:column;gap:13px;padding:17px clamp(12px,1.7vw,24px) 19px;overflow:hidden;background:radial-gradient(ellipse at top left,#20344a 0%,#111827 50%);}
.home-headline{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:67px;padding:0 2px;}
.home-eyebrow{font-size:10px;letter-spacing:1.3px;font-weight:800;color:#fbbf24;margin:0 0 4px;}
.home-headline h1{font-size:clamp(19px,2.1vw,27px);font-weight:850;line-height:1.1;letter-spacing:-.45px;margin:0;}
.home-headline p:last-child{font-size:12px;color:#bdc8d7;margin:5px 0 0;line-height:1.3;}
.home-return{white-space:nowrap;border:1px solid #fbbf24;background:#2b3647;color:#f8d373;border-radius:11px;min-height:44px;padding:10px 14px;font-weight:800;font-size:13px;}
.home-panels{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.85fr) minmax(290px,1fr);gap:13px;flex:1;min-height:0;}
.home-widget{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:1px solid #374963;border-radius:18px;background:#1c293b;box-shadow:0 12px 30px #070e1d35;}
.home-widget-head{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:75px;padding:13px 14px;border-bottom:1px solid #3b4a60;flex:0 0 auto;background:#223249;}
.home-widget-heading{display:flex;align-items:center;gap:10px;min-width:0;}
.home-widget-symbol{font-size:24px;display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:#132337;}
.home-widget-heading h2{font-size:15px;font-weight:800;line-height:1.25;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.home-widget-heading p{font-size:10px;color:#a9bed2;line-height:1.2;margin-top:4px;}
.home-heading-actions{display:flex;align-items:center;gap:5px;}
.home-expand-btn{flex:0 0 auto;border:1px solid #64748b;color:#f1f5f9;background:#35465f;font-size:12px;font-weight:750;padding:9px 10px;border-radius:10px;min-height:38px;}
.home-expand-btn:hover,.home-return:hover{background:#485b76;}
.home-map-widget .map-shell{flex:1;min-height:0;}
.home-map-widget .map-help{white-space:normal;font-size:11px;max-width:calc(100% - 38px);text-align:center;padding:8px 11px;}
.home-list{display:flex;flex-direction:column;gap:8px;padding:11px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#63758d #1c293b;}
.home-empty{color:#cbd5e1;font-size:13px;line-height:1.5;padding:14px;background:#132136;border:1px solid #344961;border-radius:12px;}
.home-message-row{display:flex;align-items:center;gap:11px;text-align:left;border-radius:12px;padding:12px 10px;width:100%;background:#172436;border:1px solid #31445b;min-height:72px;}
.home-message-row:hover,.home-offer-card:hover{border-color:#738aa4;background:#22334b;}
.home-message-avatar{display:grid;place-items:center;border-radius:50%;height:40px;width:40px;background:linear-gradient(135deg,#b45309,#dd9b35);font-size:16px;font-weight:850;color:#111827;flex:0 0 auto;}
.home-message-meta{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;}
.home-message-meta strong{font-size:13px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-message-meta span{font-size:11px;color:#aec0d2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-count,.home-message-unread{border-radius:999px;min-width:22px;height:22px;padding:2px 6px;background:#f59e0b;color:#182232;display:grid;place-items:center;font-size:11px;font-weight:850;}
.home-widget-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:11px 13px;border-top:1px solid #374963;flex-shrink:0;}
.home-foot-action{background:transparent;border:0;font-size:12px;color:#facc66;font-weight:800;text-align:left;min-height:35px;}
.home-post-action{border-radius:9px;padding:10px 9px;background:#047857;font-size:12px;font-weight:800;white-space:nowrap;}
.home-offer-card{border-radius:12px;padding:13px;background:#152336;border:1px solid #35465e;display:flex;flex-direction:column;gap:8px;}
.home-offer-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.home-offer-kind{font-size:10px;font-weight:800;color:#81e6b8;}
.home-offer-date{font-size:10px;color:#bacadd;text-align:right;}
.home-offer-card h3{font-size:14px;font-weight:800;line-height:1.35;overflow-wrap:anywhere;}
.home-offer-card p{font-size:12px;line-height:1.4;color:#d2dce6;overflow-wrap:anywhere;}
.home-offer-bottom{display:flex;gap:7px;flex-wrap:wrap;align-items:center;}
.home-offer-bottom .btn{font-size:12px;min-height:36px;padding:8px 10px;flex:1;}
.home-offer-bottom .btn:disabled{opacity:.72;}
.home-owner-requests{margin:10px 11px 0;flex-shrink:0;}
.home-owner-requests button{width:100%;border-radius:10px;display:flex;justify-content:space-between;gap:9px;text-align:left;align-items:center;padding:11px 12px;background:#443619;border:1px solid #cc9345;color:#ffecbd;font-size:12px;font-weight:750;}
.home-owner-requests button span{white-space:nowrap;}
.home-dashboard[data-view="map"] .home-panels,.home-dashboard[data-view="messages"] .home-panels,.home-dashboard[data-view="offers"] .home-panels{grid-template-columns:minmax(0,1fr);}
.home-dashboard[data-view="map"] .home-widget:not([data-home-panel="map"]),
.home-dashboard[data-view="messages"] .home-widget:not([data-home-panel="messages"]),
.home-dashboard[data-view="offers"] .home-widget:not([data-home-panel="offers"]){display:none;}
.home-dashboard[data-view]:not([data-view="home"]) .home-expand-btn{display:none;}
.home-dashboard[data-view]:not([data-view="home"]) .home-headline p:last-child{display:none;}
.home-dashboard[data-view="offers"] .home-offer-card{padding:17px;}
.home-dashboard[data-view="offers"] .home-offer-card h3{font-size:17px;}
.home-dashboard[data-view="offers"] .home-offer-card p{font-size:13px;}
@media(min-width:768px) and (max-width:1120px){
 .home-panels{grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);grid-template-rows:1fr 1fr;}
 .home-map-widget{grid-row:span 2;}
 .home-widget-head{min-height:69px;padding:9px;}
 .home-widget-heading{gap:6px;}.home-widget-heading h2{font-size:13px;}
 .home-widget-symbol{width:34px;height:34px;font-size:19px;}
 .home-expand-btn{font-size:11px;padding:7px;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-panels{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);}
 .home-dashboard[data-view]:not([data-view="home"]) .home-map-widget{grid-row:auto;}
}
@media(max-width:767px){
 .home-dashboard{overflow-y:auto;overscroll-behavior:contain;gap:9px;padding:10px 10px 14px;-webkit-overflow-scrolling:touch;}
 .home-headline{padding:1px 5px;min-height:59px;}
 .home-eyebrow{font-size:9px;letter-spacing:.9px;}
 .home-headline h1{font-size:19px;}
 .home-headline p:last-child{font-size:11px;max-width:340px;}
 .home-panels{flex:0 0 auto;display:flex;flex-direction:column;gap:11px;min-height:0;}
 .home-widget{overflow:hidden;min-height:0;flex:0 0 auto;}
 .home-widget-head{min-height:60px;padding:10px 11px;}
 .home-widget-heading h2{font-size:14px;}
 .home-widget-heading p{font-size:10px;}
 .home-widget-symbol{height:36px;width:36px;font-size:19px;}
 .home-expand-btn{padding:8px;font-size:11px;min-height:36px;}
 .home-map-widget .map-shell{flex:0 0 auto;height:24dvh;min-height:160px;}
 .home-list{overflow:visible;max-height:none;gap:7px;padding:9px;}
 .home-message-row{min-height:61px;padding:9px;}
 .home-message-avatar{height:34px;width:34px;}
 .home-offer-card{padding:11px;}
 .home-list-widget .home-list>.home-message-row:nth-child(n+2),.home-list-widget .home-list>.home-offer-card:nth-child(n+2){display:none;}
 .home-dashboard[data-view]:not([data-view="home"]){overflow:hidden;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-headline{min-height:45px;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-headline h1{font-size:18px;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-headline .home-eyebrow{display:none;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-return{font-size:12px;white-space:normal;text-align:center;max-width:160px;min-height:41px;padding:8px;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-panels{flex:1;min-height:0;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-widget{flex:1;min-height:0;}
 .home-dashboard[data-view="map"] .home-map-widget .map-shell{height:auto;min-height:0;flex:1;}
 .home-dashboard[data-view="messages"] .home-list,.home-dashboard[data-view="offers"] .home-list{overflow-y:auto;flex:1;min-height:0;}
 .home-dashboard[data-view="messages"] .home-list>.home-message-row:nth-child(n+2),.home-dashboard[data-view="offers"] .home-list>.home-offer-card:nth-child(n+2){display:flex;}
}
@media(max-width:375px){
 .home-widget-heading p{display:none;}
 .home-widget-heading h2{font-size:13px;}
 .home-widget-symbol{height:32px;width:32px;}
 .home-expand-btn{padding:7px;}
 .home-dashboard[data-view]:not([data-view="home"]) .home-headline h1{font-size:16px;}
}
