.item-index-shell {
    padding: 3.5rem 0 5rem;
}

.item-index-shell--after-catalog {
    padding-top: 1.5rem;
}

/* Solo la pill de navegación del catálogo, centrada en el ancho de la página */
.item-index-catalog-above {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.75rem max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
    margin: 0;
    border-bottom: none;
    background: transparent;
    box-sizing: border-box;
}

.item-index-catalog-above .item-index-catalog {
    margin: 0;
    width: auto;
    max-width: min(100%, 100vw - 2rem);
}

@media (max-width: 576px) {
    .item-index-catalog-above {
        padding-top: 0.5rem;
    }
}

.item-index-topbar,
.item-index-table-wrap {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(36, 91, 85, 0.12);
    box-shadow: 0 18px 40px rgba(36, 91, 85, 0.08);
    backdrop-filter: blur(10px);
}

.item-index-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 32px;
    padding: 2.25rem;
    background:
        radial-gradient(circle at top right, rgba(128, 168, 217, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(228, 152, 68, 0.14), transparent 28%),
        rgba(255, 255, 255, 0.84);
    margin-bottom: 1.25rem;
}

.item-index-topbar-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

.item-index-heading {
    flex: 0 1 auto;
    max-width: 56rem;
    min-width: 0;
}

.item-index-toolbar--actions {
    flex: 0 0 auto;
    align-items: flex-end;
}

.item-index-kicker {
    display: inline-flex;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(244, 232, 208, 0.9);
    color: var(--dark-coral);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.item-index-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    color: var(--shiny-shamrock-shade);
}

.item-index-text {
    max-width: 60ch;
    margin: 0;
    color: #53655f;
    line-height: 1.65;
}

.item-index-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.85rem;
    min-width: 0;
}

.item-index-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.85rem 1.35rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.item-index-btn-primary {
    background: linear-gradient(135deg, var(--shiny-shamrock-shade), var(--shiny-shamrock));
    color: #fff;
    box-shadow: 0 14px 28px rgba(36, 91, 85, 0.18);
}

.item-index-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.item-index-backlink {
    color: var(--shiny-shamrock-shade);
    text-decoration: none;
    font-weight: 600;
}

.item-index-backlink:hover {
    color: var(--shiny-shamrock-shade);
    text-decoration: underline;
}

.item-index-catalog {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    min-width: 0;
}

.item-index-catalog-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.item-catalog-solapa-current {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    font-size: 0.78rem;
    color: #5a6c66;
    text-align: center;
}

.item-catalog-solapa-current-kicker {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.88;
}

.item-catalog-solapa-current-name {
    font-weight: 700;
    color: var(--shiny-shamrock-shade);
}

.item-catalog-solapas-track {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    padding: 0.32rem;
    border-radius: 999px;
    background: rgba(36, 91, 85, 0.045);
    border: 1px solid rgba(36, 91, 85, 0.09);
    box-shadow: inset 0 1px 2px rgba(36, 91, 85, 0.04);
}

.item-catalog-solapas {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.item-catalog-solapas::-webkit-scrollbar {
    display: none;
}

.item-catalog-solapa-item {
    flex: 0 0 auto;
}

.item-catalog-solapa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    color: #5a6c66;
    background: transparent;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.item-catalog-solapa:hover {
    color: var(--shiny-shamrock-shade);
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(36, 91, 85, 0.1);
}

.item-catalog-solapa:focus-visible {
    outline: 2px solid rgba(36, 91, 85, 0.35);
    outline-offset: 2px;
}

.item-catalog-solapa.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--shiny-shamrock-shade), var(--shiny-shamrock));
    border-color: rgba(36, 91, 85, 0.2);
    box-shadow: 0 6px 18px rgba(36, 91, 85, 0.22);
    cursor: default;
}

.item-catalog-solapa.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--shiny-shamrock-shade), var(--shiny-shamrock));
    border-color: rgba(36, 91, 85, 0.25);
}

.item-catalog-solapa > i {
    flex-shrink: 0;
}

.item-catalog-solapa-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

@media (max-width: 640px) {
    .item-catalog-solapas-track {
        border-radius: 18px;
        flex: 0 1 auto;
        max-width: calc(100vw - 2rem);
        width: auto;
    }

    .item-catalog-solapa {
        min-height: 2.35rem;
        padding: 0.42rem 0.72rem;
        font-size: 0.8rem;
    }
}

.item-index-toolbar-misc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6d7f79;
    text-decoration: none;
}

.item-index-toolbar-misc:hover {
    color: var(--shiny-shamrock-shade);
    text-decoration: underline;
}

.item-index-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.item-index-metric {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(244, 232, 208, 0.62);
    border: 1px solid rgba(36, 91, 85, 0.08);
}

.item-index-metric-label {
    display: block;
    color: #5c6d67;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.item-index-metric-value {
    color: var(--shiny-shamrock-shade);
    font-size: 1.7rem;
    line-height: 1;
}

.item-create-shell {
    padding: 2.5rem 0 3.5rem;
}

.item-detail-shell {
    padding: 2.75rem 0 4rem;
}

.item-create-topbar {
    margin-bottom: 1rem;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

.item-create-toolbar-nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.item-create-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 91, 85, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--shiny-shamrock-shade);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(36, 91, 85, 0.06);
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.item-create-nav-back:hover {
    color: var(--shiny-shamrock-shade);
    background: rgba(36, 91, 85, 0.07);
    border-color: rgba(36, 91, 85, 0.24);
    box-shadow: 0 6px 18px rgba(36, 91, 85, 0.08);
    text-decoration: none;
}

.item-create-nav-back:focus-visible {
    outline: 2px solid rgba(36, 91, 85, 0.35);
    outline-offset: 2px;
}

.item-create-nav-back > i {
    font-size: 0.82rem;
    opacity: 0.9;
}

.item-detail-topbar {
    margin-bottom: 1rem;
    padding: 1.65rem 1.85rem;
}

.item-detail-topbar .item-index-topbar-main {
    width: 100%;
    align-items: center;
}

.item-detail-topbar .item-index-kicker {
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
}

.item-detail-topbar .item-index-title {
    margin-bottom: 0;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.item-detail-topbar .item-index-toolbar {
    gap: 0.55rem;
}

.item-detail-topbar .item-index-toolbar-primary-row {
    gap: 0.55rem;
}

.item-detail-topbar .item-index-btn-primary {
    min-height: 42px;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.item-detail-topbar .item-create-nav-back {
    min-height: 42px;
    padding: 0.4rem 0.95rem;
    font-size: 0.84rem;
}

.item-create-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(36, 91, 85, 0.12);
    border-radius: 32px;
    box-shadow: 0 18px 40px rgba(36, 91, 85, 0.08);
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.item-create-card-header {
    margin-bottom: 1.5rem;
}

.item-create-card-title {
    margin: 0 0 0.45rem;
    color: var(--shiny-shamrock-shade);
    font-size: 1.5rem;
}

.item-create-card-text {
    margin: 0;
    color: #61726c;
    line-height: 1.6;
}

.item-create-catalog-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(244, 232, 208, 0.36);
    border: 1px solid rgba(36, 91, 85, 0.08);
}

.item-create-catalog-ok,
.item-create-catalog-warning {
    color: var(--shiny-shamrock-shade);
    line-height: 1.5;
}

.item-create-catalog-warning {
    color: var(--dark-coral);
}

.item-create-link-action {
    color: var(--shiny-shamrock-shade);
    text-decoration: none;
    font-weight: 700;
}

.item-create-link-action:hover {
    color: var(--shiny-shamrock-shade);
    text-decoration: underline;
}

.item-create-form .alert-danger {
    border-radius: 20px;
}

.item-create-label {
    color: var(--shiny-shamrock-shade);
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.item-create-input {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(128, 168, 217, 0.34);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.9rem 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.item-create-input:hover {
    border-color: var(--shiny-shamrock);
    transform: translateY(-1px);
}

.item-create-input:focus {
    border-color: var(--vista-blue);
    box-shadow: 0 0 0 0.2rem rgba(128, 168, 217, 0.18);
    background: #fff;
}

.item-create-input:disabled {
    background: rgba(244, 232, 208, 0.38);
    cursor: not-allowed;
}

.item-create-image-preview-wrap {
    display: grid;
    gap: 0.5rem;
}

.item-create-image-preview {
    width: 100%;
    max-width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(36, 91, 85, 0.12);
}

.item-create-image-preview-label {
    color: #61726c;
    font-size: 0.9rem;
    font-weight: 600;
}

.item-create-textarea {
    min-height: 150px;
    resize: vertical;
}

.item-create-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(36, 91, 85, 0.1);
}

.item-create-section--lead {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.item-create-section-header {
    margin-bottom: 1.25rem;
}

.item-subtipos-por-tipo-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.item-subtipo-block {
    margin: 0;
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 20px;
    background: rgba(36, 91, 85, 0.04);
    border: 1px solid rgba(36, 91, 85, 0.08);
}

.item-subtipo-block > .item-create-label:first-child {
    margin-bottom: 0.65rem;
}

.item-create-repeatable {
    border-radius: 22px;
    border: 1px solid rgba(36, 91, 85, 0.1);
    background: rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.item-create-repeatable-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1.1rem;
    background: rgba(36, 91, 85, 0.06);
    border-bottom: 1px solid rgba(36, 91, 85, 0.08);
}

.item-create-repeatable-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--shiny-shamrock-shade);
    letter-spacing: 0.02em;
}

.item-create-repeatable-body {
    padding: 1rem 1.1rem 1.15rem;
}

.item-create-form-footer {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin: 2rem -2rem -2rem;
    padding: 1.15rem 2rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    background: rgba(252, 253, 252, 0.94);
    border-top: 1px solid rgba(36, 91, 85, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 0 0 32px 32px;
    box-shadow: 0 -8px 28px rgba(36, 91, 85, 0.06);
}

/* Formulario alta/edición ítem: más denso */
.item-create-card--compact {
    padding: 1.35rem 1.5rem;
    border-radius: 24px;
}

.item-create-card--compact .item-create-card-header {
    margin-bottom: 1rem;
}

.item-create-card--compact .item-create-card-title {
    font-size: 1.28rem;
}

.item-create-card--compact .item-create-card-text {
    font-size: 0.92rem;
    line-height: 1.45;
}

.item-create-form--compact .row.g-4 {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.item-create-form--compact .item-create-section {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
}

.item-create-form--compact .item-create-section-header {
    margin-bottom: 0.75rem;
}

.item-create-form--compact .item-create-section-title {
    font-size: 1.05rem;
}

.item-create-form--compact .item-create-section-text {
    font-size: 0.86rem;
    line-height: 1.45;
}

.item-create-form--compact .item-create-label {
    margin-bottom: 0.38rem;
    font-size: 0.9rem;
}

.item-create-subsection-label {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.item-create-form--compact .item-create-subsection-label {
    font-size: 1rem;
}

.item-create-subsection-divider {
    width: 100%;
    height: 1px;
    margin: 0.85rem 0 0.25rem;
    background: linear-gradient(90deg, rgba(36, 91, 85, 0.04), rgba(36, 91, 85, 0.22), rgba(36, 91, 85, 0.04));
}

.item-create-empty-search {
    margin: 0.55rem 0 0;
    color: #61726c;
    font-size: 0.88rem;
}

.item-create-form--compact .item-create-input {
    min-height: 46px;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
}

.item-create-form--compact .item-create-textarea {
    min-height: 110px;
}

.item-create-form--compact .item-subtipos-por-tipo-list {
    gap: 0.65rem;
}

.item-create-form--compact .item-subtipo-block {
    padding: 0.75rem 0.9rem 0.85rem;
    border-radius: 16px;
}

.item-create-form--compact .item-create-repeatable-head {
    padding: 0.5rem 0.85rem;
}

.item-create-form--compact .item-create-repeatable-body {
    padding: 0.75rem 0.9rem 0.85rem;
}

.item-create-form--compact .item-create-actions {
    margin-top: 1rem;
}

.item-create-form--compact .item-create-btn-secondary {
    min-height: 46px;
    padding: 0.65rem 1.1rem;
    border-radius: 14px;
}

.item-create-card--compact .item-create-form-footer {
    margin: 1.35rem -1.5rem -1.35rem;
    padding: 0.95rem 1.5rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0 0 24px 24px;
}

.item-create-card--compact .item-create-catalog-note {
    margin-bottom: 1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 16px;
}

.item-create-form--compact .item-create-form-footer .item-index-btn-primary {
    min-height: 46px;
    padding: 0.65rem 1.2rem;
    border-radius: 14px;
}

.item-create-section-title {
    margin: 0 0 0.35rem;
    color: var(--shiny-shamrock-shade);
    font-size: 1.2rem;
}

.item-create-section-text {
    margin: 0;
    color: #61726c;
    line-height: 1.6;
}

.item-create-check {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.item-create-check .form-check-input {
    margin-top: 0;
    border-color: rgba(36, 91, 85, 0.28);
}

.item-create-check .form-check-input:checked {
    background-color: var(--shiny-shamrock-shade);
    border-color: var(--shiny-shamrock-shade);
}

.item-create-check-label {
    color: var(--shiny-shamrock-shade);
    font-weight: 600;
}

.item-caracteristica-sugerida {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.45rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(187, 219, 252, 0.48);
    color: #44688d;
    font-size: 0.72rem;
    font-weight: 700;
}

.item-caracteristica-no-sugerida {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.45rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(123, 128, 127, 0.14);
    color: #66716e;
    font-size: 0.72rem;
    font-weight: 700;
}

.item-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.item-create-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.85rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(36, 91, 85, 0.14);
    background: rgba(255, 255, 255, 0.76);
    color: var(--shiny-shamrock-shade);
    text-decoration: none;
    font-weight: 600;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.item-create-btn-secondary:hover {
    color: var(--shiny-shamrock-shade);
    transform: translateY(-2px);
}

.item-index-table-wrap {
    border-radius: 32px;
    overflow: hidden;
}

.item-index-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1rem;
}

.item-index-table-title {
    margin: 0;
    color: var(--shiny-shamrock-shade);
    font-size: 1.45rem;
}

.item-index-table-subtitle {
    margin: 0.2rem 0 0;
    color: #61726c;
}

.item-index-empty {
    margin: 0 1.75rem 1.75rem;
    padding: 1.15rem 1.25rem;
    border: 1px dashed rgba(36, 91, 85, 0.18);
    border-radius: 22px;
    background: rgba(244, 232, 208, 0.38);
    color: var(--shiny-shamrock-shade);
}

.item-index-page-range {
    font-size: 0.92rem;
}

.item-index-types-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.item-index-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(244, 232, 208, 0.82);
    color: var(--dark-coral);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.item-index-type-empty {
    color: #7b807f;
    font-size: 0.84rem;
}

.item-index-pagination-list .page-link {
    color: var(--shiny-shamrock-shade);
    border-radius: 14px;
    margin: 0 0.2rem;
    border: 1px solid rgba(128, 168, 217, 0.34);
    padding: 0.45rem 0.85rem;
}

.item-index-pagination-list .page-item.active .page-link {
    background: linear-gradient(135deg, var(--shiny-shamrock-shade), var(--shiny-shamrock));
    border-color: transparent;
    color: #fff;
}

.item-index-pagination-list .page-item.disabled .page-link {
    color: #9aa9a3;
    background: rgba(244, 232, 208, 0.35);
    border-color: rgba(36, 91, 85, 0.08);
}

.item-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1rem;
}

.item-detail-block {
    margin-bottom: 1rem;
}

.item-detail-location-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--shiny-shamrock-shade);
    font-weight: 600;
}

.item-detail-location-line i {
    color: var(--shiny-shamrock-shade);
}

.item-detail-location-card .item-detail-map-wrap {
    margin-top: 0;
}

.item-detail-location-card > .item-detail-section-title {
    margin-bottom: 0.65rem;
}

.item-detail-contacts-card {
    padding: 1.65rem 1.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-height: 0;
}

.item-detail-contacts-card .item-detail-section-title {
    margin-bottom: 1rem;
}

.item-detail-locality-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 6.5rem;
}

.item-detail-locality-card .item-detail-section-title {
    margin-bottom: 0.6rem;
}

.item-detail-side-locality {
    margin: 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
    width: 100%;
    border-radius: 14px;
    background: rgba(244, 232, 208, 0.28);
    border: 1px solid rgba(36, 91, 85, 0.08);
    box-sizing: border-box;
}

.item-detail-locality-card .item-detail-side-locality {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
}

.item-detail-contact-subtitle {
    margin: 0 0 0.75rem;
    color: #61726c;
    font-size: 0.88rem;
    font-weight: 600;
}

.item-detail-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.item-detail-social-link {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(36, 91, 85, 0.1);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(36, 91, 85, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.item-detail-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(36, 91, 85, 0.14);
}

.item-detail-social-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-detail-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(244, 232, 208, 0.28);
    border: 1px solid rgba(36, 91, 85, 0.08);
}

.item-detail-contact-row-main {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.item-detail-contact-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.item-detail-contact-label {
    color: #61726c;
    font-size: 0.82rem;
    font-weight: 600;
}

.item-detail-contact-value {
    color: var(--shiny-shamrock-shade);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.item-detail-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
    min-height: 38px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(36, 91, 85, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--shiny-shamrock-shade);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.item-detail-contact-action:hover {
    border-color: rgba(36, 91, 85, 0.45);
    background: rgba(36, 91, 85, 0.08);
    color: var(--shiny-shamrock-shade);
}

.item-detail-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
}

.item-detail-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(36, 91, 85, 0.1);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(36, 91, 85, 0.07);
    backdrop-filter: blur(10px);
    padding: 1.35rem 1.45rem;
}

.item-detail-summary {
    overflow: hidden;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-detail-summary-body {
    padding: 1.35rem 1.45rem;
}

.item-detail-hero-frame {
    width: 100%;
    flex: 1 1 auto;
    aspect-ratio: 4 / 5;
    max-height: min(620px, 72vh);
    min-height: 400px;
    overflow: hidden;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.item-detail-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
    border: 0;
}

.item-detail-hero-image.is-zoomable {
    cursor: zoom-in;
}

.item-detail-hero-image.is-zoomable:focus-visible {
    outline: 2px solid rgba(36, 91, 85, 0.45);
    outline-offset: 2px;
}

.item-detail-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(244, 232, 208, 0.5);
    color: #7b807f;
    padding: 2rem;
    line-height: 1.4;
    text-align: center;
}

.item-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.item-detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(244, 232, 208, 0.82);
    color: var(--dark-coral);
    font-size: 0.86rem;
    font-weight: 700;
}

.item-detail-badge.is-muted {
    background: rgba(128, 168, 217, 0.14);
    color: #44688d;
}

.item-detail-subtipos-por-tipo {
    display: grid;
    gap: 0.7rem;
    align-items: start;
}

.item-detail-badge-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.item-detail-badge-group-title {
    background: rgba(187, 219, 252, 0.2);
    border: 1px solid rgba(128, 168, 217, 0.28);
}

.item-detail-feature-clean-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.item-detail-feature-clean-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #425a54;
    font-weight: 600;
    line-height: 1.35;
}

.item-detail-feature-clean-icon {
    color: var(--shiny-shamrock-shade);
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.item-detail-section-header {
    margin-bottom: 0.85rem;
}

.item-detail-section-title {
    margin: 0 0 0.35rem;
    color: var(--shiny-shamrock-shade);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.item-detail-block > .item-detail-section-title:only-child,
.item-detail-location-card > .item-detail-section-title {
    margin-bottom: 0.75rem;
}

.item-detail-section-text {
    margin: 0;
    color: #61726c;
    font-size: 0.88rem;
    line-height: 1.5;
}

.item-detail-description {
    margin: 0;
    color: #53655f;
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-line;
}

.item-detail-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.item-detail-list dt {
    margin-bottom: 0.25rem;
    color: #61726c;
    font-size: 0.92rem;
}

.item-detail-list dd {
    margin: 0;
    color: var(--shiny-shamrock-shade);
    font-weight: 600;
}

.item-detail-map-wrap {
    display: grid;
    gap: 0.8rem;
}

.item-detail-map-frame {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(36, 91, 85, 0.1);
    background: rgba(244, 232, 208, 0.2);
}

.item-detail-map-action {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.item-detail-map-frame.is-hidden {
    display: none;
}

.item-detail-contact-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
    gap: 0.65rem;
    min-height: 0;
}

.item-detail-contacts-card .item-detail-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.item-detail-contact-item {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: rgba(244, 232, 208, 0.36);
    border: 1px solid rgba(36, 91, 85, 0.08);
}

.item-detail-contact-icon {
    color: var(--shiny-shamrock-shade);
    font-size: 0.84rem;
    width: 1rem;
    text-align: center;
    margin-top: 0.15rem;
}

.item-detail-contact-item span,
.item-detail-contact-item small {
    color: #53655f;
    line-height: 1.25;
}

.item-detail-contact-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 32px;
    border: 1px solid rgba(36, 91, 85, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--shiny-shamrock-shade);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    transition: all 0.18s ease;
}

.item-detail-contact-copy-btn:hover {
    border-color: rgba(36, 91, 85, 0.45);
    background: rgba(36, 91, 85, 0.08);
}

.item-detail-contact-copy-btn:focus-visible {
    outline: 2px solid rgba(36, 91, 85, 0.45);
    outline-offset: 2px;
}

.item-detail-contact-copy-btn.is-copied {
    background: rgba(28, 161, 117, 0.14);
    border-color: rgba(28, 161, 117, 0.35);
    color: #1c7d5f;
}

.item-detail-gallery-card .item-detail-section-header {
    margin-bottom: 0.85rem;
}

.item-detail-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.item-detail-gallery-tile {
    position: relative;
    flex: 0 0 auto;
    width: 100px;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 8px 20px rgba(36, 91, 85, 0.12);
    cursor: zoom-in;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.item-detail-gallery-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(103, 165, 128, 0.55);
    box-shadow: 0 12px 24px rgba(36, 91, 85, 0.16);
}

.item-detail-gallery-tile-image {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.item-detail-gallery-tile .item-detail-gallery-flag {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
}

.item-detail-carousel {
    display: grid;
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.item-detail-carousel-stage {
    position: relative;
}

.item-detail-carousel-main {
    margin: 0;
    display: grid;
    gap: 0.7rem;
    padding: 0.72rem;
    border-radius: 24px;
    border: 1px solid rgba(36, 91, 85, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 250, 0.96));
    box-shadow: 0 14px 30px rgba(36, 91, 85, 0.08);
}

.item-detail-carousel-main-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #f7f9f8;
}

.item-detail-carousel-main-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 12px 28px rgba(36, 91, 85, 0.12);
    cursor: zoom-in;
}

.item-detail-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(36, 91, 85, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: var(--shiny-shamrock-shade);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(36, 91, 85, 0.14);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.item-detail-carousel-control:hover {
    transform: translateY(calc(-50% - 1px));
    background: #fff;
}

.item-detail-carousel-control.is-prev {
    left: 0.55rem;
}

.item-detail-carousel-control.is-next {
    right: 0.55rem;
}

.item-detail-carousel-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.item-detail-carousel-thumb {
    flex: 0 0 auto;
    width: 92px;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 0;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(36, 91, 85, 0.1);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    opacity: 0.82;
}

.item-detail-carousel-thumb:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.item-detail-carousel-thumb.is-active {
    border-color: rgba(103, 165, 128, 0.8);
    opacity: 1;
    box-shadow: 0 10px 22px rgba(36, 91, 85, 0.16);
}

.item-detail-carousel-thumb-image {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
}

.item-detail-gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(36, 91, 85, 0.12);
    transition: transform 260ms ease, filter 260ms ease;
}

.item-detail-gallery-item:hover .item-detail-gallery-image {
    transform: scale(1.03);
    filter: saturate(1.08);
}

.item-detail-gallery-caption {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.1rem 0.2rem 0;
}

.item-detail-gallery-caption-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #53655f;
    font-size: 0.92rem;
    font-weight: 600;
}

.item-detail-gallery-caption-text::before {
    content: "";
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    background: rgba(228, 152, 68, 0.8);
}

.item-detail-gallery-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(103, 165, 128, 0.14);
    color: var(--shiny-shamrock-shade);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .item-detail-carousel-main {
        border-radius: 20px;
        padding: 0.58rem;
    }

    .item-detail-carousel-main-media {
        border-radius: 18px;
    }

    .item-detail-carousel-main-image {
        aspect-ratio: 4 / 3;
    }

    .item-detail-carousel-control {
        width: 2.1rem;
        height: 2.1rem;
    }

    .item-detail-carousel-thumb {
        width: 76px;
    }

    .item-detail-carousel-thumb-image {
        height: 64px;
    }

    .item-detail-gallery-caption {
        gap: 0.4rem 0.55rem;
    }

    .item-detail-gallery-caption-text {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .item-detail-carousel-control,
    .item-detail-carousel-thumb {
        transition: none;
    }

    .item-detail-carousel-control:hover,
    .item-detail-carousel-thumb:hover {
        transform: none;
    }
}

.item-detail-carousel.is-single {
    max-width: 840px;
}

.item-detail-carousel.is-single .item-detail-carousel-main-image {
    object-fit: contain;
    aspect-ratio: auto;
    max-height: min(72vh, 560px);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(244, 232, 208, 0.22);
}

.item-detail-lightbox-open {
    overflow: hidden;
}

.item-detail-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(10, 18, 16, 0.86);
    backdrop-filter: blur(3px);
}

.item-detail-lightbox.is-open {
    display: flex;
}

.item-detail-lightbox-image {
    max-width: min(95vw, 1320px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
    background: #0f1614;
}

.item-detail-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(18, 28, 25, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.item-detail-lightbox-close:hover {
    background: rgba(28, 39, 36, 0.92);
}

.item-detail-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(18, 28, 25, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
    z-index: 1;
}

.item-detail-lightbox-nav:hover {
    background: rgba(28, 39, 36, 0.92);
}

.item-detail-lightbox-nav.is-prev {
    left: 1rem;
}

.item-detail-lightbox-nav.is-next {
    right: 1rem;
}

.item-detail-empty {
    margin: 0;
    color: #7a8a84;
    font-size: 0.9rem;
    line-height: 1.5;
}


.item-index-table {
    margin-bottom: 0;
}

.item-index-table thead th {
    background: rgba(244, 232, 208, 0.82);
    color: var(--shiny-shamrock-shade);
    border-bottom: 0;
    font-weight: 700;
    padding: 1rem 1.25rem;
    white-space: nowrap;
}

.item-index-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: rgba(36, 91, 85, 0.08);
    color: #3f4d49;
}

.item-index-table tbody tr:hover {
    background: rgba(128, 168, 217, 0.08);
}

.item-index-name {
    display: grid;
    gap: 0.2rem;
}

.item-index-name strong {
    color: var(--shiny-shamrock-shade);
    font-size: 1rem;
}

.item-index-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(103, 165, 128, 0.14);
    color: var(--shiny-shamrock-shade);
}

.item-index-state.is-borrador {
    background: rgba(228, 152, 68, 0.16);
    color: var(--dark-coral);
}

.item-index-state.is-archivado {
    background: rgba(128, 168, 217, 0.18);
    color: #44688d;
}

.item-index-thumb,
.item-index-thumb-placeholder {
    width: 96px;
    height: 72px;
    border-radius: 18px;
}

.item-index-thumb {
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(36, 91, 85, 0.12);
}

.item-index-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 232, 208, 0.5);
    color: #7b807f;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
}

.item-index-actions {
    width: 220px;
    white-space: nowrap;
    text-align: right;
}

.item-index-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.item-index-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 91, 85, 0.14);
    background: rgba(255, 255, 255, 0.76);
    color: var(--shiny-shamrock-shade);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.item-index-row-action:hover {
    color: var(--shiny-shamrock-shade);
    transform: translateY(-1px);
}

.item-index-row-action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(128, 168, 217, 0.18);
}

.contacto-remove-btn{
    margin-top: 2rem; /* compensa el label para alinearlo con el input */
    height: auto;
}

.item-index-filters {
    margin: 0 1.25rem 1.25rem;
    padding: 1.35rem 1.5rem 1.5rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(128, 168, 217, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(36, 91, 85, 0.1);
    box-shadow: 0 12px 32px rgba(36, 91, 85, 0.06);
}

.item-index-filters-head {
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(36, 91, 85, 0.08);
}

.item-index-filters-title {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shiny-shamrock-shade);
}

.item-index-filters-title .bi,
.item-index-filters-title .fas {
    opacity: 0.85;
    font-size: 1.05rem;
}

.item-index-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 91, 85, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: var(--shiny-shamrock-shade);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.item-index-filters-toggle:hover {
    background: rgba(244, 232, 208, 0.55);
    border-color: rgba(36, 91, 85, 0.3);
    color: var(--shiny-shamrock-shade);
}

.item-index-filters-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(36, 91, 85, 0.18);
}

.item-index-filters-toggle .item-index-filters-chevron {
    font-size: 0.65rem;
    margin-left: 0.15rem;
    transition: transform 0.22s ease;
}

.item-index-filters-toggle.collapsed .item-index-filters-chevron {
    transform: rotate(-90deg);
}

.item-index-filters-toggle:not(.collapsed) .item-index-filters-chevron {
    transform: rotate(0deg);
}

.item-index-filters-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: #61726c;
    line-height: 1.5;
    max-width: 52rem;
}

.item-index-filters-form {
    margin: 0;
}

.item-index-filters-row--meta {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(36, 91, 85, 0.1);
}

.item-index-filters-control:focus {
    border-color: rgba(36, 91, 85, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(36, 91, 85, 0.12);
}

.item-index-toolbar-primary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    width: 100%;
}

@media (max-width: 991.98px) {
    .item-index-filters-actions {
        width: 100%;
    }
    .item-index-filters-actions .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .item-index-topbar-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-index-toolbar--actions {
        width: 100%;
        align-items: stretch;
    }

    .item-index-toolbar--actions .item-index-toolbar-primary-row {
        justify-content: flex-start;
    }

    .item-index-toolbar-primary-row {
        justify-content: flex-start;
    }

    .item-create-topbar,
    .item-detail-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-index-metrics {
        grid-template-columns: 1fr;
    }

    .item-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .item-index-shell {
        padding: 2.5rem 0 4rem;
    }

    .item-index-shell--after-catalog {
        padding-top: 1.35rem;
    }

    .item-index-catalog-above {
        padding: 0.35rem max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
    }

    .item-create-shell {
        padding: 2.5rem 0 4rem;
    }

    .item-detail-shell {
        padding: 1.35rem 0 2.75rem;
    }

    .item-detail-shell.container {
        padding-left: max(0.85rem, env(safe-area-inset-left));
        padding-right: max(0.85rem, env(safe-area-inset-right));
    }

    .item-detail-topbar {
        padding: 1.15rem 1rem;
        margin-bottom: 0.85rem;
    }

    .item-detail-topbar .item-index-topbar-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .item-detail-topbar .item-index-heading {
        max-width: none;
    }

    .item-detail-topbar .item-index-title {
        font-size: 1.45rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .item-detail-topbar .item-index-toolbar--actions {
        width: 100%;
        align-items: stretch;
    }

    .item-detail-topbar .item-index-toolbar-primary-row {
        width: 100%;
        justify-content: stretch;
    }

    .item-detail-topbar .item-create-nav-back,
    .item-detail-topbar .item-index-btn-primary {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .item-index-topbar,
    .item-index-table-wrap {
        border-radius: 24px;
    }

    .item-create-card {
        border-radius: 24px;
        padding: 1.5rem;
    }

    .item-create-card--compact {
        padding: 1.15rem 1.1rem;
    }

    .item-create-card--compact .item-create-form-footer {
        margin: 1.15rem -1.1rem -1.15rem;
        padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    .item-detail-card {
        border-radius: 18px;
        padding: 1.1rem 1rem;
    }

    .item-detail-block {
        margin-bottom: 0.75rem;
    }

    .item-detail-grid {
        gap: 0.75rem;
        align-items: start;
        margin-bottom: 0.75rem;
    }

    .item-detail-side {
        height: auto;
        min-height: 0;
        gap: 0.75rem;
    }

    .item-detail-summary {
        padding: 0;
        height: auto;
    }

    .item-detail-hero-frame {
        flex: none;
        aspect-ratio: 16 / 11;
        min-height: 0;
        max-height: min(52vh, 360px);
    }

    .item-detail-contacts-card {
        flex: none;
        padding: 1.15rem 1rem;
        min-height: 0;
    }

    .item-detail-locality-card {
        min-height: 0;
        padding: 1rem;
    }

    .item-detail-contact-list {
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .item-detail-contact-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.85rem 0.9rem;
    }

    .item-detail-contact-row-main {
        width: 100%;
    }

    .item-detail-contact-value {
        font-size: 0.88rem;
    }

    .item-detail-contact-action {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .item-detail-socials {
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .item-detail-social-link {
        width: 2.75rem;
        height: 2.75rem;
    }

    .item-detail-map-frame {
        height: 200px;
        border-radius: 14px;
    }

    .item-detail-map-action {
        min-height: 44px;
    }

    .item-detail-section-title {
        font-size: 1.05rem;
    }

    .item-detail-description {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .item-detail-gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .item-detail-gallery-tile {
        width: 100%;
    }

    .item-detail-gallery-tile-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .item-detail-lightbox {
        padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
            max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    }

    .item-detail-lightbox-image {
        max-width: 100%;
        max-height: calc(100vh - 5rem);
        border-radius: 12px;
    }

    .item-detail-lightbox-close {
        top: max(0.75rem, env(safe-area-inset-top));
        right: max(0.75rem, env(safe-area-inset-right));
        width: 2.75rem;
        height: 2.75rem;
    }

    .item-detail-lightbox-nav {
        width: 2.75rem;
        height: 2.75rem;
    }

    .item-detail-lightbox-nav.is-prev {
        left: max(0.5rem, env(safe-area-inset-left));
    }

    .item-detail-lightbox-nav.is-next {
        right: max(0.5rem, env(safe-area-inset-right));
    }

    .item-detail-summary-body {
        padding: 1.35rem;
    }

    .item-create-catalog-note {
        align-items: flex-start;
    }

    .item-index-table-header {
        padding: 1.25rem 1.25rem 0.85rem;
    }

    .item-index-empty {
        margin: 0 1.25rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .item-detail-shell {
        padding-top: 1rem;
    }

    .item-detail-topbar .item-index-title {
        font-size: 1.3rem;
    }

    .item-detail-hero-frame {
        aspect-ratio: 4 / 3;
        max-height: min(48vh, 280px);
    }

    .item-detail-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-detail-contact-label {
        font-size: 0.76rem;
    }
}

@media (max-width: 380px) {
    .item-detail-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .item-detail-social-link {
        width: 2.55rem;
        height: 2.55rem;
    }
}

/* Tom Select — tipos en ítem turístico */
.item-tipo-ts-wrap .ts-wrapper.form-select {
    background-image: none !important;
    padding-right: 0 !important;
    border: 0 !important;
}

.item-tipo-ts-wrap .ts-wrapper {
    width: 100%;
    min-height: 56px;
}

.item-tipo-ts-wrap .ts-wrapper.multi .ts-control {
    border-radius: 18px;
    border: 1px solid rgba(128, 168, 217, 0.34) !important;
    background: rgba(255, 255, 255, 0.92);
    min-height: 56px;
    padding: 0.45rem 0.65rem;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.item-tipo-ts-wrap .ts-wrapper.single .ts-control,
.item-tipo-ts-wrap .ts-wrapper.form-select .ts-control {
    border-radius: 18px;
    border: 1px solid rgba(128, 168, 217, 0.34) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    min-height: 56px;
    box-shadow: none;
    padding: 0.75rem 0.95rem;
}

.item-tipo-ts-wrap .ts-wrapper.multi .ts-control:hover {
    border-color: var(--shiny-shamrock);
    transform: translateY(-1px);
}

.item-tipo-ts-wrap .ts-wrapper.single .ts-control:hover,
.item-tipo-ts-wrap .ts-wrapper.form-select .ts-control:hover {
    border-color: var(--shiny-shamrock);
    transform: translateY(-1px);
}

.item-tipo-ts-wrap .ts-wrapper.multi.focus .ts-control {
    border-color: var(--vista-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 168, 217, 0.18);
    background: #fff;
    transform: none;
}

.item-tipo-ts-wrap .ts-wrapper.single.focus .ts-control,
.item-tipo-ts-wrap .ts-wrapper.form-select.focus .ts-control {
    border-color: var(--vista-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 168, 217, 0.18);
    background: #fff !important;
    transform: none;
}

.item-tipo-ts-wrap .ts-wrapper.multi .ts-control > input {
    color: #53655f;
    min-width: 9rem !important;
    padding: 0.2rem 0.35rem !important;
}

.item-tipo-ts-wrap .ts-wrapper.multi .ts-control > input::placeholder {
    color: #7d8f88;
}

.item-tipo-ts-wrap .ts-wrapper .item {
    border-radius: 12px;
    border: 1px solid rgba(36, 91, 85, 0.12);
    background: rgba(244, 232, 208, 0.78);
    color: var(--shiny-shamrock-shade);
    font-weight: 600;
    padding: 0.2rem 0.45rem;
}

.item-tipo-ts-wrap .ts-wrapper .item.active {
    background: rgba(187, 219, 252, 0.54);
    color: var(--shiny-shamrock-shade);
}

.item-tipo-ts-wrap .ts-wrapper .item .remove {
    border-left: 0;
    color: var(--dark-coral);
    opacity: 0.9;
}

.item-tipo-ts-wrap .ts-wrapper .item .remove:hover {
    background: rgba(196, 88, 52, 0.08);
    color: var(--dark-coral);
}

.item-tipo-ts-wrap .ts-dropdown {
    border-radius: 18px;
    border: 1px solid rgba(128, 168, 217, 0.34);
    box-shadow: 0 14px 28px rgba(36, 91, 85, 0.12);
    margin-top: 0.45rem;
    overflow: hidden;
}

.item-tipo-ts-wrap .ts-dropdown .option,
.item-tipo-ts-wrap .ts-dropdown .no-results {
    padding: 0.55rem 0.85rem;
    color: #53655f;
}

.item-tipo-ts-wrap .ts-dropdown .active {
    background: rgba(187, 219, 252, 0.45);
    color: var(--shiny-shamrock-shade);
}

/* Modal detalle Tipo */
.tipo-detalle-modal-content {
    border-radius: 22px;
    border: 1px solid rgba(103, 165, 128, 0.38);
    box-shadow: 0 14px 34px rgba(36, 91, 85, 0.16);
    overflow: hidden;
}

.tipo-detalle-modal-content .modal-header {
    background: linear-gradient(135deg, rgba(103, 165, 128, 0.16), rgba(128, 168, 217, 0.2));
    border-bottom: 1px solid rgba(103, 165, 128, 0.3);
}

.tipo-detalle-modal-content .modal-title {
    color: var(--shiny-shamrock-shade);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tipo-detalle-modal-body {
    background:
        radial-gradient(circle at top right, rgba(128, 168, 217, 0.16), transparent 40%),
        rgba(255, 255, 255, 0.95);
}

.tipo-detalle-modal-nombre {
    margin: 0;
    color: var(--shiny-shamrock-shade);
    font-size: 1.08rem;
    font-weight: 700;
}

.tipo-detalle-modal-descripcion {
    color: #5f716b;
    line-height: 1.55;
}

.tipo-detalle-seccion {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(244, 232, 208, 0.34);
    border: 1px solid rgba(36, 91, 85, 0.08);
}

.tipo-detalle-seccion-titulo {
    color: #4f635d;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

#tipoDetalleCaracteristicas .badge,
#tipoDetalleSubtipos .badge {
    padding: 0.42rem 0.64rem;
    border-radius: 999px;
    border-color: rgba(36, 91, 85, 0.15) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #3f5450 !important;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

#tipoDetalleCaracteristicas .text-muted,
#tipoDetalleSubtipos .text-muted {
    color: #6e807a !important;
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .item-tipo-ts-wrap .ts-wrapper.multi .ts-control {
        min-height: 52px;
    }

    .item-tipo-ts-wrap .ts-wrapper.single .ts-control,
    .item-tipo-ts-wrap .ts-wrapper.form-select .ts-control {
        min-height: 52px;
    }
}
