/*============================================================================================*/
/* GuiaPana Design System — TheFork-level UI                                                  */
/* Loaded between style.css and custom.css                                                    */
/*============================================================================================*/

/* =============================================
   1. Design Tokens (CSS Custom Properties)
   ============================================= */
:root {
    /* Layout & font. La navbar de este sitio NO es fija (scrollea), así que
       los tabs sticky de la ficha se pegan a 0 (no dejar hueco). */
    --gp-navbar-h: 0px;
    --gp-font: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Brand Colors */
    --gp-primary: #00584b;
    --gp-primary-dark: #003d34;
    --gp-primary-light: #e6f2ef;
    --gp-accent: #32a067;
    --gp-accent-light: #e8f5ee;

    /* CTA — separated from brand for conversion */
    --gp-cta: #cd232e;
    --gp-cta-hover: #b01e28;
    --gp-cta-light: #fef2f2;

    /* Text */
    --gp-text: #1a1a2e;
    --gp-text-secondary: #5a5a72;
    --gp-text-muted: #8e8ea0;
    --gp-text-inverse: #ffffff;

    /* Backgrounds */
    --gp-bg: #ffffff;
    --gp-bg-gray: #f5f6f8;
    --gp-bg-warm: #fafaf8;

    /* Borders */
    --gp-border: #e8eaed;
    --gp-border-light: #f0f1f3;

    /* Rating */
    --gp-rating-excellent: #1c8c4c;
    --gp-rating-good: #6db33f;
    --gp-rating-average: #f5a623;
    --gp-rating-poor: #e74c3c;
    --gp-rating-bg: #e8f5ee;

    /* Functional */
    --gp-success: #1c8c4c;
    --gp-warning: #f5a623;
    --gp-error: #e74c3c;
    --gp-info: #3b82f6;
    --gp-gold: #f5a623;

    /* Spacing (8px grid) */
    --gp-space-2xs: 2px;
    --gp-space-xs: 4px;
    --gp-space-sm: 8px;
    --gp-space-md: 16px;
    --gp-space-lg: 24px;
    --gp-space-xl: 32px;
    --gp-space-2xl: 48px;
    --gp-space-3xl: 64px;

    /* Radius */
    --gp-radius-xs: 4px;
    --gp-radius-sm: 6px;
    --gp-radius-md: 10px;
    --gp-radius-lg: 14px;
    --gp-radius-xl: 20px;
    --gp-radius-full: 999px;

    /* Shadows */
    --gp-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --gp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --gp-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --gp-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --gp-shadow-hover: 0 12px 28px rgba(0,0,0,0.15);

    /* Transitions */
    --gp-transition-fast: 150ms ease;
    --gp-transition: 200ms ease;
    --gp-transition-slow: 300ms ease;
}


/* =============================================
   2. Reserve CTA Button
   ============================================= */
.gp-btn-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gp-cta);
    color: var(--gp-text-inverse);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: var(--gp-radius-full);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--gp-transition), transform var(--gp-transition), box-shadow var(--gp-transition);
}
.gp-btn-reserve:hover {
    background: var(--gp-cta-hover);
    color: var(--gp-text-inverse);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(205, 35, 46, 0.3);
}
.gp-btn-reserve:active {
    transform: translateY(0);
}
.gp-btn-reserve--sm {
    padding: 7px 14px;
    font-size: 12px;
}
.gp-btn-reserve--full {
    width: 100%;
}
.gp-btn-reserve--outline {
    background: transparent;
    color: var(--gp-cta);
    border: 1.5px solid var(--gp-cta);
}
.gp-btn-reserve--outline:hover {
    background: var(--gp-cta);
    color: var(--gp-text-inverse);
}

/* Secondary button */
.gp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    color: var(--gp-primary);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--gp-border);
    border-radius: var(--gp-radius-full);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--gp-transition);
}
.gp-btn-secondary:hover {
    border-color: var(--gp-primary);
    color: var(--gp-primary);
    text-decoration: none;
}


/* =============================================
   3. Badge System
   ============================================= */
.gp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: var(--gp-radius-xs);
    white-space: nowrap;
    line-height: 1.4;
}
.gp-badge--featured {
    background: linear-gradient(135deg, #f5a623 0%, #f7c948 100%);
    color: #5c3d00;
}
.gp-badge--new {
    background: var(--gp-info);
    color: var(--gp-text-inverse);
}
.gp-badge--delivery {
    background: var(--gp-accent-light);
    color: var(--gp-accent);
}
.gp-badge--open {
    background: var(--gp-rating-bg);
    color: var(--gp-success);
}
.gp-badge--open::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gp-success);
    animation: gp-pulse 2s ease-in-out infinite;
}
.gp-badge--closed {
    background: var(--gp-cta-light);
    color: var(--gp-error);
}
.gp-badge--price {
    background: var(--gp-bg-gray);
    color: var(--gp-text-secondary);
}
.gp-badge--chain {
    background: linear-gradient(135deg, #5a67d8 0%, #7c3aed 100%);
    color: #fff;
}

@keyframes gp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* =============================================
   4. Rating Pill (TheFork style)
   ============================================= */
.gp-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.gp-rating-pill__score {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    background: var(--gp-rating-excellent);
    color: var(--gp-text-inverse);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--gp-radius-sm);
    line-height: 1;
}
.gp-rating-pill__score--good { background: var(--gp-rating-good); }
.gp-rating-pill__score--average { background: var(--gp-rating-average); }
.gp-rating-pill__score--poor { background: var(--gp-rating-poor); }
.gp-rating-pill__detail {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.gp-rating-pill__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gp-text);
}
.gp-rating-pill__count {
    font-size: 11px;
    color: var(--gp-text-muted);
}

/* Compact variant for cards */
.gp-rating-pill--compact .gp-rating-pill__score {
    min-width: 32px;
    height: 28px;
    font-size: 13px;
    border-radius: var(--gp-radius-xs);
}
.gp-rating-pill--compact .gp-rating-pill__label {
    font-size: 12px;
}

/* Overlay variant (on images) */
.gp-rating-pill--overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.gp-rating-pill--overlay .gp-rating-pill__score {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


/* =============================================
   5. Skeleton Loaders
   ============================================= */
.gp-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gp-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--gp-radius-sm);
}
@keyframes gp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Card skeleton */
.gp-skeleton-card {
    border-radius: var(--gp-radius-md);
    overflow: hidden;
}
.gp-skeleton-card__image {
    width: 100%;
    padding-top: 66.67%; /* 3:2 ratio */
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gp-shimmer 1.5s ease-in-out infinite;
}
.gp-skeleton-card__line {
    height: 14px;
    margin: 12px 16px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gp-shimmer 1.5s ease-in-out infinite;
}
.gp-skeleton-card__line--short { width: 60%; }
.gp-skeleton-card__line--xs { height: 10px; width: 40%; }


/* =============================================
   6. Social Proof Stats Strip
   ============================================= */
.gp-stats {
    display: flex;
    justify-content: center;
    gap: var(--gp-space-xl);
    padding: var(--gp-space-lg) 0;
    border-bottom: 1px solid var(--gp-border-light);
    background: var(--gp-bg);
}
.gp-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.gp-stats__number {
    font-size: 24px;
    font-weight: 700;
    color: var(--gp-primary);
    line-height: 1.2;
}
.gp-stats__label {
    font-size: 13px;
    color: var(--gp-text-muted);
    margin-top: 2px;
}
@media (max-width: 767px) {
    .gp-stats {
        gap: var(--gp-space-md);
        padding: var(--gp-space-md) var(--gp-space-sm);
        flex-wrap: wrap;
    }
    .gp-stats__number {
        font-size: 20px;
    }
    .gp-stats__label {
        font-size: 11px;
    }
}


/* =============================================
   7. Card Hover Effects (applied to .strip)
   ============================================= */
.strip {
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
    cursor: pointer;
    border-radius: var(--gp-radius-md);
}
.strip:hover {
    transform: translateY(-4px);
    box-shadow: var(--gp-shadow-hover);
}
.strip figure {
    border-radius: var(--gp-radius-md) var(--gp-radius-md) 0 0;
    overflow: hidden;
    position: relative;
}
.strip figure img {
    transition: transform var(--gp-transition-slow);
}
.strip:hover figure img {
    transform: scale(1.05);
}

/* Badge overlay zone on strip cards */
.strip .gp-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}


/* =============================================
   8. Horizontal Card Enhancements
   ============================================= */

/* Reserve CTA in horizontal card */
.gp-card-h__action {
    display: flex;
    align-items: center;
    padding: 0 var(--gp-space-md) var(--gp-space-md);
}
.gp-card-h__action .gp-btn-reserve {
    margin-left: auto;
}

/* Hover effect for horizontal card */
.gp-card-h {
    transition: box-shadow var(--gp-transition), transform var(--gp-transition);
    border-radius: var(--gp-radius-md);
}
.gp-card-h:hover {
    box-shadow: var(--gp-shadow-lg);
    transform: translateY(-2px);
}

/* Photo count overlay */
.gp-card-h__photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--gp-radius-xs);
    z-index: 2;
}
.gp-card-h__photo-count i {
    font-size: 12px;
}

/* Badge overlay on horizontal card */
.gp-card-h__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}


/* =============================================
   9. Sticky Mobile Booking Bar
   ============================================= */
.gp-mobile-booking {
    display: none;
}
@media (max-width: 991px) {
    .gp-mobile-booking {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: var(--gp-bg);
        border-top: 1px solid var(--gp-border);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
        padding: 12px 16px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .gp-mobile-booking__info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .gp-mobile-booking__name {
        font-size: 14px;
        font-weight: 600;
        color: var(--gp-text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .gp-mobile-booking__meta {
        font-size: 12px;
        color: var(--gp-text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .gp-mobile-booking .gp-btn-reserve {
        flex-shrink: 0;
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Hide desktop sidebar on mobile when mobile bar is active */
    body.has-mobile-booking #sidebar_fixed .box_booking {
        display: none;
    }
    /* Add padding to body so content isn't hidden behind the bar */
    body.has-mobile-booking {
        padding-bottom: 72px;
    }
}

/* Bottom sheet overlay */
.gp-booking-sheet {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}
.gp-booking-sheet.is-active {
    display: block;
}
.gp-booking-sheet__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    animation: gp-fadeIn var(--gp-transition-slow);
}
.gp-booking-sheet__panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gp-bg);
    border-radius: var(--gp-radius-lg) var(--gp-radius-lg) 0 0;
    padding: var(--gp-space-lg);
    max-height: 80vh;
    overflow-y: auto;
    animation: gp-slideUp var(--gp-transition-slow);
}
.gp-booking-sheet__handle {
    width: 36px;
    height: 4px;
    background: var(--gp-border);
    border-radius: 2px;
    margin: 0 auto var(--gp-space-md);
}
.gp-booking-sheet__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gp-text);
    margin-bottom: var(--gp-space-md);
}
@keyframes gp-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes gp-slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}


/* =============================================
   10. Featured Card (16:9, for curated sections)
   ============================================= */
.gp-card-featured {
    position: relative;
    border-radius: var(--gp-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
}
.gp-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--gp-shadow-hover);
}
.gp-card-featured__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform var(--gp-transition-slow);
}
.gp-card-featured:hover .gp-card-featured__image {
    transform: scale(1.05);
}
.gp-card-featured__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
    color: var(--gp-text-inverse);
}
.gp-card-featured__category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-bottom: 4px;
}
.gp-card-featured__name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}
.gp-card-featured__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.9;
}
.gp-card-featured__rating {
    background: var(--gp-rating-excellent);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--gp-radius-xs);
    font-weight: 700;
    font-size: 12px;
}
.gp-card-featured__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}


/* =============================================
   11. Quick-Info Bar (detail page)
   ============================================= */
.gp-quick-info {
    display: flex;
    align-items: center;
    gap: var(--gp-space-md);
    padding: var(--gp-space-md) 0;
    border-bottom: 1px solid var(--gp-border-light);
    margin-bottom: var(--gp-space-lg);
    flex-wrap: wrap;
}
.gp-quick-info__sep {
    width: 1px;
    height: 20px;
    background: var(--gp-border);
    flex-shrink: 0;
}
.gp-quick-info__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gp-text-secondary);
}
.gp-quick-info__item i {
    color: var(--gp-text-muted);
    font-size: 15px;
}


/* =============================================
   12. Star Distribution Chart
   ============================================= */
.gp-star-dist {
    margin: var(--gp-space-md) 0;
}
.gp-star-dist__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.gp-star-dist__label {
    font-size: 13px;
    color: var(--gp-text-secondary);
    min-width: 18px;
    text-align: right;
}
.gp-star-dist__star {
    color: var(--gp-gold);
    font-size: 12px;
}
.gp-star-dist__bar {
    flex: 1;
    height: 8px;
    background: var(--gp-bg-gray);
    border-radius: 4px;
    overflow: hidden;
}
.gp-star-dist__fill {
    height: 100%;
    background: var(--gp-gold);
    border-radius: 4px;
    transition: width var(--gp-transition-slow);
}
.gp-star-dist__pct {
    font-size: 12px;
    color: var(--gp-text-muted);
    min-width: 32px;
}


/* =============================================
   13. Empty State
   ============================================= */
.gp-empty {
    text-align: center;
    padding: var(--gp-space-3xl) var(--gp-space-lg);
}
.gp-empty__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--gp-space-lg);
    opacity: 0.5;
}
.gp-empty__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gp-text);
    margin-bottom: var(--gp-space-sm);
}
.gp-empty__text {
    font-size: 14px;
    color: var(--gp-text-muted);
    margin-bottom: var(--gp-space-lg);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.gp-empty__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gp-space-sm);
    justify-content: center;
}


/* =============================================
   14. Scroll-snap horizontal carousel
   ============================================= */
.gp-scroll-row {
    display: flex;
    gap: var(--gp-space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--gp-space-xs);
}
.gp-scroll-row::-webkit-scrollbar {
    display: none;
}
.gp-scroll-row > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}


/* =============================================
   15. Section Headers
   ============================================= */
.gp-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--gp-space-lg);
}
.gp-section-header__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gp-text);
    margin: 0;
    line-height: 1.3;
}
.gp-section-header__subtitle {
    font-size: 14px;
    color: var(--gp-text-muted);
    margin-top: 4px;
}
.gp-section-header__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--gp-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--gp-transition);
}
.gp-section-header__link:hover {
    color: var(--gp-primary-dark);
    text-decoration: none;
}


/* =============================================
   16. Utility classes
   ============================================= */
.gp-cursor-pointer { cursor: pointer; }
.gp-text-primary { color: var(--gp-primary) !important; }
.gp-text-cta { color: var(--gp-cta) !important; }
.gp-text-muted { color: var(--gp-text-muted) !important; }
.gp-bg-gray { background-color: var(--gp-bg-gray) !important; }
.gp-mt-xs { margin-top: var(--gp-space-xs); }
.gp-mt-sm { margin-top: var(--gp-space-sm); }
.gp-mt-md { margin-top: var(--gp-space-md); }
.gp-mt-lg { margin-top: var(--gp-space-lg); }
.gp-mb-xs { margin-bottom: var(--gp-space-xs); }
.gp-mb-sm { margin-bottom: var(--gp-space-sm); }
.gp-mb-md { margin-bottom: var(--gp-space-md); }
.gp-mb-lg { margin-bottom: var(--gp-space-lg); }
