/* ============================================ */
/* SIDEBAR.CSS - TEMA BLANCO BRAND KIT CRY        */
/* ============================================ */

.sidebar {
    grid-area: sidebar;
    background: var(--color-warm-white);
    border-left: 1px solid var(--color-mist-gray);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    position: relative;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s var(--ease-cinematic);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, #8fb949 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--color-mist-gray);
    flex-shrink: 0;
    background: var(--color-warm-white);
}

.sidebar-title {
    flex: 1;
    min-width: 0;
}

.sidebar-title h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    letter-spacing: 0.01em;
}

.poi-count {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    display: inline-block;
    font-weight: 700;
    background: var(--color-accent-soft);
    padding: 2px 10px;
    border-radius: 100px;
}

.sidebar-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--color-text-muted);
    background: var(--color-cream);
    border: 1px solid var(--color-mist-gray);
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    color: var(--color-accent-dark);
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
}

/* ============================================ */
/* SECCIÓN DE DESTACADOS - PREMIUM                */
/* ============================================ */
.featured-section {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, var(--color-accent-soft) 0%, transparent 100%);
    border-bottom: 1px solid var(--color-mist-gray);
    flex-shrink: 0;
}

.featured-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.featured-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.featured-badge {
    background: var(--color-accent);
    color: white;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.featured-carousel {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
    display: none;
}

.featured-card {
    flex: 0 0 200px;
    background: var(--color-warm-white);
    border: 1px solid var(--color-mist-gray);
    border-radius: 14px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color, #8fb949) 0%, var(--color-accent-light) 100%);
}

.featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-color, #8fb949);
    box-shadow: 0 8px 20px rgba(143, 185, 73, 0.2);
}

.featured-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    margin-bottom: 0.65rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10), 0 0 0 2px var(--card-color, #8fb949);
    position: relative;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.featured-card:hover .featured-card-icon {
    transform: scale(1.08) rotate(-2deg);
}

.featured-card-icon::after {
    display: none;
}

.featured-card-icon svg,
.featured-card-icon .featured-logo-svg,
.featured-card-icon .featured-logo-img,
.featured-card-icon .poi-logo-svg,
.featured-card-icon .poi-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.featured-card-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 2px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-card-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--color-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 6px;
}

.featured-card-distance {
    font-family: 'Montserrat', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}

/* ============================================ */
/* SEARCH BOX                                     */
/* ============================================ */
.search-box {
    position: relative;
    margin: 1rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--color-cream);
    border: 1px solid var(--color-mist-gray);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.search-box input::placeholder {
    color: var(--color-text-dim);
    font-weight: 400;
}

.search-box input:focus {
    background: var(--color-warm-white);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(143, 185, 73, 0.15);
}

.search-box:focus-within .search-icon {
    color: var(--color-accent-dark);
}

/* ============================================ */
/* CATEGORY FILTERS                               */
/* ============================================ */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--color-mist-gray);
    flex-shrink: 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: var(--color-cream);
    border: 1px solid var(--color-mist-gray);
    border-radius: 100px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s var(--ease-smooth);
    white-space: nowrap;
    position: relative;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.filter-chip:hover {
    background: var(--color-warm-white);
    color: var(--color-text);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-chip.active {
    background: linear-gradient(135deg, #8fb949 0%, #5a8246 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(143, 185, 73, 0.4);
}

.filter-chip.active .chip-dot {
    box-shadow: none;
    background: white !important;
}

/* ============================================ */
/* POIs LIST                                     */
/* ============================================ */
.pois-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.poi-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--color-warm-white);
    border: 1px solid var(--color-mist-gray);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.poi-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--poi-color, #8fb949);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s var(--ease-smooth);
}

.poi-card:hover {
    background: var(--color-cream);
    border-color: var(--poi-color, #8fb949);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.poi-card:hover::before {
    transform: scaleY(1);
}

.poi-card.poi-card-active {
    background: var(--color-accent-soft);
    border-color: var(--poi-color, #8fb949);
    box-shadow: 0 8px 20px rgba(143, 185, 73, 0.2);
}

.poi-card.poi-card-active::before {
    transform: scaleY(1);
}

.poi-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10), 0 0 0 2px var(--poi-color, #8fb949);
    position: relative;
    overflow: hidden;
    padding: 7px;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.poi-card:hover .poi-card-icon {
    transform: scale(1.08) rotate(-2deg);
}

.poi-card-icon::after {
    display: none;
}

.poi-card-icon svg,
.poi-card-icon .poi-logo-svg,
.poi-card-icon .poi-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.poi-card-info {
    flex: 1;
    min-width: 0;
}

.poi-card-name {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.poi-card-category {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.poi-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.poi-card-distance {
    font-family: 'Montserrat', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}

.poi-card-time {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.pois-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.pois-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--color-text-dim);
    opacity: 0.5;
}

.pois-empty-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================ */
/* POI DETAIL PANEL                               */
/* ============================================ */
.poi-detail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--color-warm-white);
    border-left: 1px solid var(--color-mist-gray);
    z-index: 250;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15), -2px 0 0 rgba(0, 0, 0, 0.04);
    animation: detail-slide-3d 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right center;
}

@keyframes detail-slide-3d {
    from {
        transform: perspective(800px) rotateY(12deg) translateX(120%);
        opacity: 0;
    }
    to {
        transform: perspective(800px) rotateY(0deg) translateX(0);
        opacity: 1;
    }
}

.detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-cream);
    color: var(--color-text);
    border: 1px solid var(--color-mist-gray);
    z-index: 10;
    transition: all 0.2s;
}

.detail-close:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

.detail-content {
    padding: 2rem 1.75rem;
}

.detail-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-mist-gray);
}

.detail-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 0 0 3px var(--poi-color, #8fb949);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 12px;
    box-sizing: border-box;
}

.detail-hero-icon::after {
    display: none;
}

.detail-hero-icon svg,
.detail-hero-icon .detail-hero-svg,
.detail-hero-icon .poi-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.detail-hero-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.detail-hero-info .detail-category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-stat {
    background: var(--color-cream);
    border: 1px solid var(--color-mist-gray);
    border-radius: 14px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.detail-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--poi-color, #8fb949) 0%, transparent 100%);
}

.detail-stat-icon {
    width: 22px;
    height: 22px;
    color: var(--poi-color, #8fb949);
    margin-bottom: 0.5rem;
}

.detail-stat-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-stat-value {
    font-family: 'Montserrat', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    word-break: break-word;
}

.detail-description {
    margin-bottom: 1.5rem;
}

.detail-description h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.detail-description p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Frase lifestyle bajo el título */
.detail-lifestyle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: #8fb949;
    margin-top: 0.3rem;
    letter-spacing: 0.01em;
}

/* CTA para compradores */
.detail-cta {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(143, 185, 73, 0.08) 0%, rgba(143, 185, 73, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(143, 185, 73, 0.2);
    text-align: center;
}

.detail-cta-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 0.75rem;
}

.detail-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8fb949 0%, #5a8246 100%);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(143, 185, 73, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.detail-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(143, 185, 73, 0.5);
}

.detail-action-btn {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
}

.detail-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.detail-action-primary {
    background: linear-gradient(135deg, #8fb949 0%, #5a8246 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(143, 185, 73, 0.4);
}

.detail-action-primary:hover {
    background: linear-gradient(135deg, #a8d662 0%, #8fb949 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 185, 73, 0.55);
}

.detail-action-secondary {
    background: var(--color-cream);
    color: var(--color-text);
    border-color: var(--color-mist-gray);
}

.detail-action-secondary:hover {
    background: var(--color-warm-white);
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
}

.detail-action-full {
    grid-column: 1 / -1;
}

/* ============================================ */
/* RESPONSIVE - TABLET PORTRAIT (769-1024px)     */
/* ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .featured-card {
        flex: 0 0 170px;
        padding: 0.7rem;
    }

    .featured-card-icon {
        width: 56px;
        height: 56px;
    }

    .poi-card-icon {
        width: 56px;
        height: 56px;
    }

    .filter-chip {
        font-size: 0.72rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ============================================ */
/* MOBILE                                        */
/* ============================================ */
@media (max-width: 768px) {
    .sidebar {
        border-left: none;
    }

    .featured-section {
        padding: 0.85rem 1rem;
    }

    .featured-card {
        flex: 0 0 180px;
        padding: 0.75rem;
    }

    .sidebar-header {
        padding: 1rem;
    }

    .sidebar-title h3 {
        font-size: 1.05rem;
    }

    .search-box {
        margin: 0.85rem 1rem 0.65rem;
    }

    .category-filters {
        padding: 0 1rem 0.85rem;
    }

    .pois-list {
        padding: 0.65rem 0.85rem 1.5rem;
    }

    .poi-card {
        padding: 0.75rem;
    }

    .poi-detail {
        max-width: 100% !important;
        width: 100% !important;
    }

    .detail-content {
        padding: 1.5rem 1.25rem;
    }

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

/* ============================================ */
/* MOBILE PEQUEÑO (≤480px) - chips scroll        */
/* ============================================ */
@media (max-width: 480px) {
    .sidebar-header {
        padding: 0.85rem 1rem;
    }

    .sidebar-title h3 {
        font-size: 0.95rem;
    }

    .poi-count {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .featured-section {
        padding: 0.65rem 0.85rem;
    }

    .featured-header h4 {
        font-size: 0.85rem;
    }

    .featured-card {
        flex: 0 0 160px;
        padding: 0.65rem;
    }

    .featured-card-icon {
        width: 48px;
        height: 48px;
    }

    .featured-card-name {
        font-size: 0.78rem;
    }

    .featured-card-distance {
        font-size: 0.65rem;
    }

    .search-box {
        margin: 0.65rem 0.85rem 0.5rem;
    }

    .search-box input {
        font-size: 0.85rem;
        padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    }

    .category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0.85rem 0.65rem;
        gap: 0.5rem;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex-shrink: 0;
        font-size: 0.72rem;
        padding: 0.4rem 0.7rem;
    }

    .poi-card {
        padding: 0.65rem;
        gap: 0.6rem;
    }

    .poi-card-icon {
        width: 48px;
        height: 48px;
    }

    .poi-card-name {
        font-size: 0.85rem;
    }

    .poi-card-category {
        font-size: 0.65rem;
    }

    .poi-card-distance {
        font-size: 0.7rem;
    }

    .poi-card-time {
        font-size: 0.7rem;
    }

    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .detail-stat {
        padding: 0.65rem;
    }

    .detail-stat-label {
        font-size: 0.6rem;
    }

    .detail-stat-value {
        font-size: 0.85rem;
    }
}

.sidebar-floating-toggle {
    display: none;
}
