:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #24332f;
    background: #f3f4f1;
    line-height: 1.5;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #bd7135; outline-offset: 4px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 20;
    padding: 12px;
    background: white;
}
.skip-link:focus { top: 8px; }
.site-header {
    background: #183c35;
    color: #fff;
    border-bottom: 1px solid #2d5149;
}
.header-inner {
    max-width: 1100px;
    margin: auto;
    min-height: 76px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.7px;
    text-decoration: none;
    white-space: nowrap;
}
nav > button { border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
nav { display: flex; align-items: center; gap: 8px; }
nav a, nav > button {
    padding: 12px 13px;
    border-radius: 6px;
    color: #e1e9e6;
    font-size: 14px;
    text-decoration: none;
}
nav a:hover, nav > button:hover, nav a[aria-current="page"] { color: #fff; background: #31534b; }
.menu-button {
    display: none;
    padding: 10px;
    border: 1px solid #6c837d;
    border-radius: 6px;
    background: transparent;
    color: white;
}
.menu-button svg { display: block; width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; }
main { max-width: 1020px; margin: 0 auto; padding: 28px 28px 56px; }
.feed { display: flex; flex-direction: column; gap: 24px; }
.card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e5e0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 3px 14px #183c3508;
}
.card-media {
    position: relative;
    flex: 0 0 0;
    width: 0;
    height: 0;
    overflow: hidden;
}
.card-media.is-loaded { flex-basis: 260px; width: 260px; height: 180px; }
.card-image { display: block; width: 260px; height: 180px; object-fit: cover; }
.card-content { flex: 1; min-width: 0; padding: 18px 24px; align-self: center; }
.card h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; list-style: none; }
.card-tags li { padding: 3px 8px; border-radius: 5px; background: #edf2ee; color: #365548; font-size: 12px; }
.card-tags .card-tag-type { background: #e2ebe5; color: #294b3d; font-weight: 600; }
.card-content > :last-child { margin-bottom: 0; }
.card-content > .card-location { margin-top: 8px; }
.card-summary { margin: 10px 0 0; color: #637069; font-size: 14px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.card-location { margin: 12px 0 0; color: #66736d; font-size: 15px; overflow-wrap: anywhere; }
.feed-status { padding: 32px 0; color: #66736d; text-align: center; }
.retry-button { display: block; margin: 0 auto 24px; padding: 10px 20px; background: #183c35; color: white; border: 0; border-radius: 6px; }
/* Páginas informativas: ancho de lectura y estilos limitados a estas vistas. */
.info-page { max-width: 740px; margin: 0 auto; line-height: 1.75; }
.info-heading { margin: 16px 0 28px; }
.info-heading h1 { margin: 0 0 12px; color: #183c35; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; }
.info-subtitle { margin: 0; color: #526c64; font-size: 19px; line-height: 1.5; }
.info-page > section { margin-top: 32px; }
.info-page h2 { margin: 0 0 14px; color: #183c35; font-size: 22px; line-height: 1.35; }
.info-page p { margin-top: 0; margin-bottom: 18px; }
.info-page ul { padding-left: 24px; margin-bottom: 18px; }
.info-page li { margin-bottom: 6px; }
.info-back { display: inline-block; min-height: 44px; padding: 10px 0; text-underline-offset: 4px; }
.info-page .info-closing { margin-top: 32px; color: #526c64; }

@media (max-width: 800px) {
    .header-inner { flex-wrap: wrap; padding: 14px 20px; gap: 12px; min-height: 70px; }
    .brand { font-size: 22px; }
    .menu-button { display: block; }
    nav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding: 4px 0; }
    nav.is-open { display: flex; }
    nav a, nav > button { min-height: 46px; }
    main { padding: 20px 20px 40px; }
    .card-content { padding: 18px 22px; }
    .card h2 { font-size: 20px; }
}

@media (max-width: 600px) {
    .header-inner { padding: 12px 16px; }
    main { padding: 16px 12px 32px; }
    .feed { gap: 20px; }
    .card { flex-direction: column; border-radius: 10px; }
    .card-media.is-loaded { width: 100%; flex: none; height: auto; aspect-ratio: 16 / 9; max-height: 210px; }
    .card-image { width: 100%; height: 100%; }
    .card-content { width: 100%; padding: 18px 20px; }
    .card h2 { font-size: 18px; }
    .card-location { margin-top: 8px; font-size: 14px; }
}

#feed-sentinel { height: 1px; }

/* Ficha: contenido principal y paneles laterales, apilados en celular. */
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: #8fa89a; }
.detail-back { display: inline-block; padding: 8px 0; margin-bottom: 20px; text-underline-offset: 4px; }
/* Adaptado de publico-info/datos/dato de RideStudio: una superficie y separadores. */
.detail-info { padding: 27px; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(24,60,53,.06); }
.detail-header-row { display: flex; align-items: flex-start; gap: 20px; }
.detail-heading { flex: 1; min-width: 0; }
.detail-heading h1 { margin: 0; font-size: clamp(29px, 4vw, 43px); line-height: 1.08; overflow-wrap: anywhere; }
.detail-type { display: inline-flex; margin: 0 0 15px; padding: 6px 11px; border-radius: 999px; background: #e8efeb; color: #183c35; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.detail-heading .card-location { margin: 13px 0 0; color: #526b60; font-size: 16px; line-height: 1.5; }
.detail-header-row .detail-share { margin: 0; flex: 0 0 auto; max-width: 45%; }
.detail-header-row .detail-share p { font-size: 14px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 25px 0 0; padding: 20px 0; border-block: 1px solid #e0e5e0; }
.detail-fact { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.detail-fact-icon { color: #526b60; }
.detail-fact-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.detail-fact dt { color: #526b60; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.detail-fact dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.detail-section { margin-top: 25px; }
.detail-section + .detail-section { padding-top: 20px; border-top: 1px solid #e0e5e0; }
.detail-section h2 { margin: 0 0 10px; font-size: 18px; }
.detail-section p { margin: 0; }
.detail-notice { margin: 24px 0 0; font-size: 14px; line-height: 1.65; color: #526b60; overflow-wrap: anywhere; }
.detail-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; color: #526b60; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.detail-actions a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 6px 0; text-underline-offset: 4px; overflow-wrap: anywhere; }
.detail-actions a:hover { color: #526b60; }
.detail-gallery { display: grid; gap: 12px; margin-bottom: 24px; }
.detail-gallery img { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: 14px; background: #e8efeb; }
.location-note { color: #6b5333; font-size: 14px; }
@media (max-width: 600px) {
    .detail-info { padding: 20px 16px; }
    .detail-header-row { flex-wrap: wrap; gap: 12px; }
    .detail-header-row .detail-share { margin-left: auto; max-width: 100%; }
    .detail-heading { flex-basis: calc(100% - 60px); }
    .detail-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .detail-gallery img { max-height: 300px; }
}

/* Buscador y filtros: controles táctiles sobre el feed. */
#feed-search { margin-bottom: 20px; }
.search-row { display: flex; gap: 10px; align-items: center; }
#search-query { min-width: 0; flex: 1; width: 100%; }
#search-query, #filters-toggle, .filter-fields select {
    min-height: 46px; padding: 10px 12px; border: 1px solid #bccbc2;
    border-radius: 8px; background: white; color: #24332f; font: inherit; font-size: 16px;
}
#filters-toggle { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
#filters-toggle { color: #111; }
#filters-toggle[aria-expanded="true"] { background: white; border-color: #b43a2f; color: #b43a2f; }
#filters-panel { margin-top: 12px; padding: 20px; border: 1px solid #d2ddd5; border-radius: 10px; background: white; }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.filter-fields label { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; }
.filter-fields select { width: 100%; }
#filters-clear { margin-top: 16px; padding: 10px 0; min-height: 44px; border: 0; background: transparent; color: #315749; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
    .filter-fields { grid-template-columns: 1fr; }
    #filters-panel { padding: 16px; }
    .search-row { gap: 8px; }
    #search-query { font-size: 16px; padding: 10px 8px; }
    #filters-toggle { padding: 10px; }
}

.distance-filter { margin-top: 20px; }
.distance-filter > label { display: block; font-weight: 600; font-size: 14px; }
.distance-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
#distance-value { font-weight: 600; }
#filter-distance { width: 100%; min-height: 44px; margin: 0; padding: 0; accent-color: #285b50; cursor: pointer; }
#location-status, .card-distance { font-size: 14px; color: #526c64; }
#location-retry { min-height: 44px; border: 1px solid #adc2ba; border-radius: 8px; background: #edf3ef; color: #254c43; padding: 8px 12px; }

.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
#feed-count { font-size: 14px; font-weight: 600; white-space: nowrap; }
#nearby-button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #adc2ba; border-radius: 50%; background: #edf3ef; cursor: pointer; font-size: 20px; }
#nearby-button:hover { background: #dceae2; }

.feed-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#map-toggle { min-width: 44px; height: 44px; border: 1px solid #adc2ba; border-radius: 22px; background: #edf3ef; color: #254c43; padding: 0 12px; font-size: 18px; }
#map-toggle[aria-pressed="true"] { font-size: 14px; }
#accommodation-map { height: clamp(340px, calc(100dvh - 340px), 720px); min-height: 340px; width: 100%; border: 1px solid #bccbc2; border-radius: 10px; z-index: 0; }
.map-marker { background: #285b50; border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 5px #3338; }
.leaflet-popup-content a { display: block; padding: 8px 0; color: #254c43; }
#map-status, #map-tiles-status { font-size: 14px; }

#nearby-button[aria-pressed="true"] { background: #285b50; border-color: #183c35; box-shadow: 0 0 0 2px #a8c8b9; }
#nearby-button[aria-busy="true"] { opacity: .7; }
.map-heading { margin-bottom: 16px; }
.map-heading h2 { margin: 0 0 6px; color: #183c35; font-size: 22px; line-height: 1.25; }
.map-heading p { margin: 0; color: #526c64; font-size: 14px; }
@media (max-width: 600px) {
    .map-heading h2 { font-size: 20px; }
    #accommodation-map { height: max(360px, calc(100dvh - 345px)); }
}

.contact-form { display: grid; gap: 18px; position: relative; }
.contact-form > label { display: grid; gap: 8px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
    min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px;
    border: 1px solid #bccbc2; border-radius: 8px; background: white; color: #24332f;
    font: inherit; font-size: 16px;
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; min-height: 46px; border: 1px solid #285b50; border-radius: 8px; padding: 10px 18px; background: #285b50; color: white; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.contact-form .contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#contact-status { margin: 0; }

/* Autenticación web: formularios independientes del feed. */
.auth-page { max-width: 540px; }
.auth-page h1 { color: #183c35; line-height: 1.25; }
.auth-page small { margin-top: -12px; color: #526c64; }
.auth-page dd { margin: 0 0 16px; overflow-wrap: anywhere; }
.auth-page dt { font-weight: 600; }
.auth-button { min-height: 46px; padding: 10px 20px; border: 0; border-radius: 8px; background: #183c35; color: white; }
.auth-button:disabled { opacity: .6; cursor: wait; }

/* Panel privado de propietarios; no modifica las tarjetas del feed. */
.owner-page { max-width: 820px; margin: auto; }
.owner-page h1 { color: #183c35; font-size: clamp(26px, 4vw, 34px); line-height: 1.25; }
.owner-page h2 { font-size: 20px; color: #183c35; margin: 12px 0 0; }
.owner-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.owner-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 8px; background: #183c35; color: white; text-decoration: none; }
.owner-card { padding: 20px; margin-top: 18px; border: 1px solid #d9e2dc; border-radius: 12px; background: white; overflow-wrap: anywhere; }
.owner-card h2 { margin-top: 0; }
.owner-card .owner-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #e9efe9; color: #365548; }
.owner-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.owner-page button, .owner-actions a { min-height: 44px; padding: 10px 14px; border: 1px solid #b9cbc0; border-radius: 8px; background: white; color: #183c35; font: inherit; text-decoration: none; }
.owner-page button:disabled { opacity: .55; cursor: wait; }
.owner-page fieldset { display: grid; gap: 18px; min-width: 0; border: 1px solid #d9e2dc; border-radius: 10px; padding: 20px; margin: 0; }
.owner-page legend { padding: 0 8px; font-weight: 650; }
.owner-page p { margin: 8px 0; }
.owner-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.owner-columns > label { min-width: 0; }
.owner-help { color: #526c64; font-size: 14px; }
.owner-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.owner-page .owner-services label { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.owner-page .owner-services input { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; }
#owner-location-map { height: 360px; width: 100%; margin-top: 12px; border-radius: 8px; border: 1px solid #b9cbc0; z-index: 0; }
.owner-page .leaflet-control-zoom a { font-size: 22px; }
.owner-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.owner-photo { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border: 1px solid #d9e2dc; border-radius: 8px; background: white; }
.owner-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; }
.owner-photo button { font-size: 14px; }
#owner-save { background: #183c35; color: white; }
@media (max-width: 600px) {
    .owner-page fieldset { padding: 14px; }
    .owner-columns, .owner-services { grid-template-columns: 1fr; }
    .owner-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-photo button { padding: 8px; overflow-wrap: anywhere; }
    #owner-location-map { height: 330px; }
}

/* Moderación: comparación legible y controles táctiles en una sola interfaz. */
.admin-page { max-width: 1000px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.admin-tabs button { flex: 1 1 220px; }
.admin-tabs button[aria-pressed="true"] { background: #183c35; color: white; }
.admin-field { padding: 14px 0; border-bottom: 1px solid #d9e2dc; }
.admin-field h3 { margin: 0 0 8px; font-size: 16px; color: #183c35; }
.admin-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.admin-field p, .admin-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-field strong { font-size: 13px; color: #526c64; }
.admin-columns > div { padding: 10px; border-radius: 6px; }
.admin-changed { background: #e7efe6; }
.admin-decision { margin: 24px 0; padding: 20px; border: 1px solid #b9cbc0; border-radius: 10px; }
.admin-history { padding: 18px 0; overflow-wrap: anywhere; }
.admin-history summary { cursor: pointer; min-height: 44px; }
.admin-user-summary { overflow-wrap: anywhere; }
#admin-more { margin-top: 20px; }
#owner-claims-section { margin-top: 32px; }
@media (max-width: 600px) {
    .admin-columns { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .admin-tabs button { flex-basis: 100%; }
    .admin-decision { padding: 14px; }
}

/* Avisos integrados y confirmaciones propias, sin bibliotecas adicionales. */
.app-notice { position: sticky; top: 12px; z-index: 900; display: flex; align-items: start; gap: 16px; padding: 14px 18px; margin-bottom: 20px; border: 1px solid #9db9a8; border-radius: 10px; background: #eaf3ed; color: #183c35; }
.app-notice p { flex: 1; margin: 8px 0; overflow-wrap: anywhere; }
.app-notice[data-kind="error"] { background: #fff0ed; border-color: #d2aaa2; color: #733629; }
.app-notice[data-kind="warning"] { background: #fff7e8; border-color: #cfbc94; color: #684f21; }
.app-notice button, .app-confirmation button { min-height: 44px; padding: 10px 16px; border: 1px solid #8fa99b; border-radius: 8px; background: white; color: #183c35; font: inherit; }
.app-confirmation { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid #b9cbc0; border-radius: 14px; background: #f8faf7; color: #24332f; }
.app-confirmation::backdrop { background: #142d26a6; }
.app-confirmation h2 { margin: 0 0 16px; color: #183c35; font-size: 22px; }
.app-confirmation p { line-height: 1.65; overflow-wrap: anywhere; }
.confirmation-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#app-confirmation-accept { background: #183c35; color: white; }
@media (max-width: 600px) {
    .app-confirmation { padding: 20px; }
    .confirmation-actions button { flex: 1 1 120px; }
    .app-notice { padding: 12px; gap: 10px; }
}

/* Datos personales dentro del único panel de alojamientos. */
.personal-data { margin-top: 32px; padding-top: 20px; border-top: 1px solid #d9e2dc; }
.personal-data dl { overflow-wrap: anywhere; }
.personal-data dt { font-weight: 600; margin-top: 12px; }
.personal-data dd { margin: 4px 0 12px; }
.password-change { margin: 24px 0; }
.password-change summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: #183c35; }

/* Aceptación explícita de términos, sin alterar el estilo de otros formularios. */
.contact-form .terms-acceptance { display: flex; align-items: flex-start; gap: 10px; font-weight: normal; padding: 10px 0; }
.contact-form .terms-acceptance input { flex: 0 0 22px; width: 22px; min-height: 22px; height: 22px; margin: 3px 0 0; accent-color: #183c35; }
.terms-acceptance span { min-width: 0; }
.terms-version { font-size: 14px; color: #526b60; }

/* Compartir una publicación sin alterar el contenido de la ficha. */
.detail-share { margin-block: 1rem; }
.detail-share p:empty { display: none; }
.detail-share input { width: 100%; max-width: 40rem; box-sizing: border-box; padding: .75rem; }

.detail-action-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.detail-share-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 12px; border: 1px solid #d9e2dc; border-radius: 12px; background: #fff; color: #183c35; cursor: pointer; }
.detail-share-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-share-button:hover { background: #e8efeb; }
.detail-share-button:focus-visible { outline: 2px solid #183c35; outline-offset: 3px; }
.detail-share-button:disabled { opacity: .6; cursor: wait; }

/* Mapa exclusivo de la ficha; tamaño estable y controles táctiles de Leaflet. */
.detail-location-map { height: 280px; width: 100%; border-radius: 12px; margin-block: 14px; background: #e8efeb; isolation: isolate; }
.detail-map-status { color: #6b5333; font-size: 14px; }
@media (max-width: 600px) { .detail-location-map { height: 240px; } }

/* Filas relacionadas: patrón compacto de otros-viajes de RideStudio. */
.nearby-lodgings { margin-top: 30px; padding-top: 24px; border-top: 1px solid #d9e2dc; }
.nearby-lodgings h2 { margin: 0 0 16px; font-size: 22px; }
.nearby-card { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px; border: 1px solid #e0e5e0; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.nearby-card:hover { border-color: #8fa89a; }
.nearby-card:focus-visible { outline: 2px solid #183c35; outline-offset: 3px; }
.nearby-card img { width: 112px; height: 112px; aspect-ratio: 1 / 1; flex: 0 0 112px; object-fit: cover; border-radius: 8px; }
.nearby-card-content { min-width: 0; overflow-wrap: anywhere; }
.nearby-card h3 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; }
.nearby-card p { margin: 3px 0 0; font-size: 14px; color: #526b60; }
.nearby-card .nearby-distance { font-weight: 600; color: #183c35; }
@media (max-width: 600px) {
    .nearby-card { gap: 12px; padding: 12px; }
    .nearby-card img { width: 76px; height: 76px; flex-basis: 76px; }
    .nearby-card h3 { font-size: 16px; }
    .nearby-card p { font-size: 13px; }
}

.detail-view-count { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; color: #526b60; font-size: 14px; white-space: nowrap; }
.detail-view-count svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.card-indicators { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: #526b60; font-size: 14px; }
.rating-indicator { color: #526b60; font-size: 14px; }
.rating-star { color: #b8860b; font-size: 20px; }
.card-views { display: inline-flex; align-items: center; gap: 5px; }
.card-views svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.detail-action-bar { flex-wrap: wrap; }
.detail-action-bar > .rating-indicator { margin-right: auto; }
.lodging-reviews { margin-top: 24px; padding: 20px; border-radius: 16px; background: #fff; overflow-wrap: anywhere; }
.traveler-review { border-bottom: 1px solid #d9e2dc; padding: 12px 0; }
.traveler-review h3 { margin: 0; font-size: 16px; }
.traveler-review p { white-space: pre-wrap; }
.review-form { margin-top: 20px; }
.lodging-reviews button { min-height: 44px; }
.rating-indicator.rating-empty { color: #858d89; font-size: 20px; }


/* Opiniones: identidad compacta y controles propios, sin alterar las tarjetas del feed. */
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #183c35; color: #fff; font-weight: 700; }
.review-identity { min-width: 0; }
.review-identity > span { font-size: 13px; color: #526b60; }
.review-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.review-meta time { color: #637069; font-size: 13px; }
.traveler-review .review-comment { margin: 8px 0 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.traveler-review .review-comment.is-expanded { display: block; overflow: visible; }
.review-text-action { padding: 5px 0; border: 0; background: transparent; color: #285b50; text-decoration: underline; text-underline-offset: 3px; }
.review-editor { margin-top: 12px; }
.review-editor:empty { display: none; }
.review-form .review-form-actions { display: flex; align-items: stretch; gap: 8px; }
.review-form .review-form-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 44px; padding: 9px 8px; font-size: 14px; white-space: nowrap; }
.review-form-actions svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review-form .review-form-actions .review-cancel { background: #fff; color: #285b50; border-color: #b9cbc0; }
.review-character-count { display: block; text-align: right; color: #637069; font-size: 12px; font-weight: normal; }
.review-character-count.is-over-limit { color: #a13c31; }


/* Recursos institucionales originales: conservar proporciones y navegación. */
.about-logo { display: block; width: 360px; max-width: 100%; height: auto; margin: 0 auto 24px; }

/* Controles de listados administrativos: una página de diez registros. */
#admin-search { margin: 18px 0; }
#admin-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
#admin-pagination[hidden] { display: none; }
#admin-pagination button { min-height: 44px; }
#admin-page-number { font-size: 14px; }

/* Denuncias y coincidencias: acciones discretas, sin modificar las tarjetas del feed. */
.report-action { margin-top: .65rem; min-width: 0; }
.report-action > p:empty { display: none; }
.report-form { max-width: 36rem; margin-top: .5rem; }
.report-form textarea, .duplicate-warning { overflow-wrap: anywhere; }
.duplicate-warning { margin-top: .8rem; padding: .8rem; border-left: 3px solid #34765b; background: #f4f8f5; border-radius: 8px; }
.duplicate-warning h3 { font-size: 1rem; margin-top: 0; }
.report-action button, .duplicate-warning button { min-height: 44px; }

/* Acciones de ubicación: el formulario de denuncia queda debajo de la fila flexible. */
.detail-actions > .review-text-action { min-height: 44px; padding: 6px 0; }
.detail-actions + .report-action { margin-top: 0; }
