/* ================================================================
 * TTE - Turismo Experiencias
 * Shield: #tte-portal
 * ================================================================ */

#tte-portal {
    --tte-primary: #7b1638;
    --tte-primary-dark: #5c1029;
    --tte-gold: #c8a45d;
    --tte-ink: #20252b;
    --tte-muted: #69727d;
    --tte-border: #e3e6e9;
    --tte-surface: #ffffff;
    --tte-soft: #f7f5f2;
    --tte-radius: 18px;
    --tte-shadow: 0 12px 34px rgba(24, 30, 36, .10);
    color: var(--tte-ink);
    background: var(--tte-surface);
    font-family: Inter, Arial, sans-serif;
}

#tte-portal *,
#tte-portal *::before,
#tte-portal *::after { box-sizing: border-box; }

#tte-portal button,
#tte-portal a { -webkit-tap-highlight-color: transparent; }

#tte-portal .tte-container {
    width: min(1320px, calc(100% - 64px));
    margin-inline: auto;
}

#tte-portal .tte-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: #4d5054;
}

#tte-portal .tte-hero-media,
#tte-portal .tte-hero-image,
#tte-portal .tte-hero-overlay {
    position: absolute;
    inset: 0;
}

#tte-portal .tte-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

#tte-portal .tte-hero-overlay {
    background: linear-gradient(90deg, rgba(17, 20, 24, .76), rgba(17, 20, 24, .30));
    z-index: -1;
}

#tte-portal .tte-hero-content {
    position: relative;
    z-index: 1;
    padding-block: 42px 50px;
    color: #fff;
}

#tte-portal .tte-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 34px;
    font-size: .88rem;
}

#tte-portal .tte-breadcrumbs a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
}

#tte-portal .tte-breadcrumbs a:hover,
#tte-portal .tte-breadcrumbs a:focus-visible { text-decoration: underline; }

#tte-portal .tte-eyebrow,
#tte-portal .tte-section-kicker,
#tte-portal .tte-detail-kicker,
#tte-portal .tte-panel-kicker {
    margin: 0;
    color: var(--tte-gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#tte-portal .tte-hero h1 {
    margin: 7px 0 10px;
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 4.25rem);
    line-height: 1;
}

#tte-portal .tte-hero-intro {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 1.08rem;
    line-height: 1.7;
}

#tte-portal .tte-experiences-section {
    padding: 68px 0 40px;
    background: #fff;
}

#tte-portal .tte-section-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 28px;
}

#tte-portal .tte-section-header h2,
#tte-portal .tte-detail-heading h2 {
    margin: 7px 0 0;
    color: var(--tte-primary-dark);
    font-size: clamp(1.8rem, 2.6vw, 2.65rem);
    line-height: 1.12;
}

#tte-portal .tte-results-count {
    margin: 0;
    color: var(--tte-muted);
    font-size: .92rem;
}

#tte-portal .tte-status {
    padding: 20px;
    border: 1px solid var(--tte-border);
    border-radius: 12px;
    color: var(--tte-muted);
    background: var(--tte-soft);
}

#tte-portal .tte-status-error { color: #8d2034; background: #fff6f7; }

#tte-portal .tte-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

#tte-portal .tte-experience-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tte-border);
    border-radius: var(--tte-radius);
    background: #fff;
    box-shadow: 0 5px 18px rgba(24,30,36,.055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#tte-portal .tte-experience-card:hover,
#tte-portal .tte-experience-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(123,22,56,.35);
    box-shadow: var(--tte-shadow);
}

#tte-portal .tte-experience-card.is-selected {
    border-color: var(--tte-primary);
    box-shadow: 0 0 0 2px rgba(123,22,56,.12), var(--tte-shadow);
}

#tte-portal .tte-card-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

#tte-portal .tte-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ecebea;
}

#tte-portal .tte-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

#tte-portal .tte-card-button:hover .tte-card-image { transform: scale(1.035); }

#tte-portal .tte-card-body { padding: 20px 20px 22px; }

#tte-portal .tte-card-category {
    margin: 0 0 7px;
    color: var(--tte-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#tte-portal .tte-card-title {
    min-height: 2.5em;
    margin: 0 0 14px;
    color: var(--tte-ink);
    font-size: 1.16rem;
    line-height: 1.25;
}

#tte-portal .tte-card-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--tte-primary);
    font-size: .9rem;
    font-weight: 800;
}

#tte-portal .tte-detail-section {
    padding: 42px 0 80px;
    background: var(--tte-soft);
}

#tte-portal .tte-detail {
    padding: 30px;
    border: 1px solid var(--tte-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--tte-shadow);
}

#tte-portal .tte-detail-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
}

#tte-portal .tte-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

#tte-portal .tte-button-secondary {
    border: 1px solid var(--tte-primary);
    color: var(--tte-primary);
    background: #fff;
}

#tte-portal .tte-button-secondary:hover,
#tte-portal .tte-button-secondary:focus-visible {
    color: #fff;
    background: var(--tte-primary);
}

#tte-portal .tte-detail-gallery { margin-bottom: 30px; }

#tte-portal .tte-gallery-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 6.8;
    min-height: 320px;
    border-radius: 18px;
    background: #ddd;
}

#tte-portal #tte-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

#tte-portal .tte-gallery-control {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    color: #fff;
    background: rgba(25,29,33,.54);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(4px);
}

#tte-portal .tte-gallery-control:hover,
#tte-portal .tte-gallery-control:focus-visible { background: rgba(92,16,41,.88); }

#tte-portal .tte-gallery-prev { left: 18px; }
#tte-portal .tte-gallery-next { right: 18px; }

#tte-portal .tte-gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(25,29,33,.68);
    font-size: .82rem;
    font-weight: 800;
}

#tte-portal .tte-detail-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

#tte-portal .tte-detail-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--tte-border);
    border-radius: 17px;
    background: #fff;
}

#tte-portal .tte-panel-heading {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 22px;
}

#tte-portal .tte-panel-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--tte-primary);
    background: rgba(123,22,56,.09);
    font-size: 1.1rem;
}

#tte-portal .tte-panel-heading h3 {
    margin: 4px 0 0;
    color: var(--tte-primary-dark);
    font-size: 1.25rem;
    line-height: 1.2;
}

#tte-portal .tte-panel-content { color: #4d5660; }

#tte-portal .tte-location-group {
    padding: 0 0 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--tte-border);
}

#tte-portal .tte-location-group:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

#tte-portal .tte-location-name,
#tte-portal .tte-info-label,
#tte-portal .tte-provider-name {
    margin: 0 0 7px;
    color: var(--tte-ink);
    font-weight: 800;
}

#tte-portal .tte-location-list,
#tte-portal .tte-info-list,
#tte-portal .tte-provider-services {
    margin: 0;
    padding-left: 18px;
}

#tte-portal .tte-location-list li,
#tte-portal .tte-info-list li,
#tte-portal .tte-provider-services li { margin: 5px 0; line-height: 1.5; }

#tte-portal .tte-info-item { margin-bottom: 18px; }
#tte-portal .tte-info-item:last-child { margin-bottom: 0; }

#tte-portal .tte-info-value { margin: 0; line-height: 1.55; }

#tte-portal .tte-provider-card {
    padding: 15px;
    margin-bottom: 14px;
    border: 1px solid var(--tte-border);
    border-radius: 14px;
    background: #fafafa;
}

#tte-portal .tte-provider-card:last-child { margin-bottom: 0; }

#tte-portal .tte-provider-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: contain;
    margin-bottom: 13px;
    border-radius: 10px;
    background: #e8e8e8;
}

#tte-portal .tte-provider-meta {
    display: grid;
    gap: 7px;
    margin-top: 11px;
    font-size: .9rem;
}

#tte-portal .tte-provider-meta a {
    color: var(--tte-primary);
    overflow-wrap: anywhere;
}

#tte-portal .tte-provider-meta i { width: 18px; margin-right: 3px; }

#tte-portal .tte-provider-services { margin-top: 12px; }

#tte-portal .tte-provider-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

#tte-portal .tte-provider-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid var(--tte-border);
    border-radius: 8px;
    color: var(--tte-primary);
    background: #fff;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

#tte-portal .tte-provider-socials a:hover,
#tte-portal .tte-provider-socials a:focus-visible { background: rgba(123,22,56,.06); }

#tte-portal .tte-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--tte-primary);
    font-weight: 800;
}

#tte-portal .tte-providers-subtitle {
    margin: -12px 0 18px;
    color: var(--tte-muted);
    font-size: .88rem;
}

#tte-portal .tte-empty,
#tte-portal .tte-empty-detail {
    padding: 24px;
    border: 1px dashed #ccd1d5;
    border-radius: 14px;
    color: var(--tte-muted);
    background: #fff;
}

#tte-portal a:focus-visible,
#tte-portal button:focus-visible {
    outline: 3px solid rgba(200,164,93,.65);
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    #tte-portal .tte-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #tte-portal .tte-detail-columns { grid-template-columns: 1fr 1fr; }
    #tte-portal .tte-providers-panel { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
    #tte-portal .tte-container { width: min(100% - 40px, 900px); }
    #tte-portal .tte-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #tte-portal .tte-gallery-frame { aspect-ratio: 16 / 8; }
}

@media (max-width: 767px) {
    #tte-portal .tte-container { width: min(100% - 30px, 680px); }
    #tte-portal .tte-hero { min-height: 330px; }
    #tte-portal .tte-hero-content { padding-bottom: 38px; }
    #tte-portal .tte-breadcrumbs { margin-bottom: 25px; }
    #tte-portal .tte-section-header,
    #tte-portal .tte-detail-heading { align-items: flex-start; flex-direction: column; }
    #tte-portal .tte-detail { padding: 20px; border-radius: 18px; }
    #tte-portal .tte-detail-columns { grid-template-columns: 1fr; }
    #tte-portal .tte-providers-panel { grid-column: auto; }
    #tte-portal .tte-gallery-frame { min-height: 240px; aspect-ratio: 4 / 3; }
}

@media (max-width: 575px) {
    #tte-portal .tte-cards-grid { grid-template-columns: 1fr; }
    #tte-portal .tte-experiences-section { padding-top: 48px; }
    #tte-portal .tte-detail-section { padding-bottom: 50px; }
    #tte-portal .tte-gallery-control { width: 40px; height: 40px; }
    #tte-portal .tte-gallery-prev { left: 10px; }
    #tte-portal .tte-gallery-next { right: 10px; }
    #tte-portal .tte-detail-panel { padding: 20px; }
}

@media (max-width: 379px) {
    #tte-portal .tte-container { width: calc(100% - 24px); }
    #tte-portal .tte-hero h1 { font-size: 2.15rem; }
    #tte-portal .tte-card-body { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    #tte-portal .tte-experience-card,
    #tte-portal .tte-card-image { transition: none; }
}
