/**
 * ================================================================
 * TTR - Turismo Restaurantes
 * CSS principal
 * CSS Shield: #ttr-portal
 * ================================================================
 */


/* ================================================================
   VARIABLES
================================================================ */

#ttr-portal {
    --ttr-primary: #7b1638;
    --ttr-primary-dark: #5c1029;
    --ttr-gold: #c8a45d;

    --ttr-text: #252525;
    --ttr-muted: #6e6e6e;
    --ttr-light: #f7f5f2;
    --ttr-border: #e5e1dc;
    --ttr-white: #ffffff;

    --ttr-radius: 18px;
    --ttr-shadow: 0 12px 35px rgba(0, 0, 0, .08);

    color: var(--ttr-text);
    background: #fff;
}


/* ================================================================
   CONTAINER
================================================================ */

#ttr-portal .ttr-container {
    width: min(1320px, calc(100% - 80px));
    margin-inline: auto;
}


/* ================================================================
   HERO
================================================================ */

#ttr-portal .ttr-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
}

#ttr-portal .ttr-hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;

    background-image: url("../../uploads/turismo/restaurantes/hero-restaurantes.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#ttr-portal .ttr-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .72) 0%,
            rgba(0, 0, 0, .48) 48%,
            rgba(0, 0, 0, .15) 100%
        );
}

#ttr-portal .ttr-hero-content {
    min-height: 560px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    color: #fff;
}

#ttr-portal .ttr-eyebrow {
    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;

    color: #fff;
}

#ttr-portal .ttr-hero h1 {
    max-width: 800px;
    margin: 0 0 20px;

    font-size: clamp(48px, 5vw, 76px);
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

#ttr-portal .ttr-hero p {
    max-width: 680px;
    margin: 0;

    font-size: 20px;
    line-height: 1.65;

    color: rgba(255, 255, 255, .9);
}


/* ================================================================
   ZONE NAVIGATION
================================================================ */

#ttr-portal .ttr-zone-navigation {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--ttr-border);

    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);

    backdrop-filter: blur(12px);
}

#ttr-portal .ttr-zone-tabs {
    min-height: 78px;

    display: flex;
    align-items: center;
    gap: 8px;

    overflow-x: auto;
    scrollbar-width: none;
}

#ttr-portal .ttr-zone-tabs::-webkit-scrollbar {
    display: none;
}

#ttr-portal .ttr-zone-tab {
    flex: 0 0 auto;

    border: 0;
    background: transparent;

    padding: 12px 20px;

    border-radius: 999px;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    color: var(--ttr-muted);

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

#ttr-portal .ttr-zone-tab:hover {
    color: var(--ttr-primary);
    background: #f6edf0;
}

#ttr-portal .ttr-zone-tab.is-active {
    color: #fff;
    background: var(--ttr-primary);
}


/* ================================================================
   SECTION
================================================================ */

#ttr-portal .ttr-restaurants-section {
    padding: 90px 0 120px;
    background: #fff;
}

#ttr-portal .ttr-section-header {
    max-width: 760px;
    margin-bottom: 70px;
}

#ttr-portal .ttr-section-kicker,
#ttr-portal .ttr-zone-heading-kicker {
    display: block;

    margin-bottom: 10px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--ttr-primary);
}

#ttr-portal .ttr-section-header h2 {
    margin: 0 0 16px;

    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
}

#ttr-portal .ttr-section-header p {
    margin: 0;

    font-size: 18px;
    line-height: 1.7;

    color: var(--ttr-muted);
}


/* ================================================================
   ZONE GROUP
================================================================ */

#ttr-portal .ttr-zone-group {
    scroll-margin-top: 110px;
    margin-bottom: 90px;
}

#ttr-portal .ttr-zone-heading {
    margin-bottom: 28px;
}

#ttr-portal .ttr-zone-heading h3 {
    margin: 0;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}


/* ================================================================
   RESTAURANT GRID
================================================================ */

#ttr-portal .ttr-restaurant-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* ================================================================
   CARD
================================================================ */

#ttr-portal .ttr-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid var(--ttr-border);
    border-radius: var(--ttr-radius);

    box-shadow: var(--ttr-shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

#ttr-portal .ttr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

#ttr-portal .ttr-card-media {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #ddd;
}

#ttr-portal .ttr-card-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

#ttr-portal .ttr-card:hover .ttr-card-media img {
    transform: scale(1.04);
}

#ttr-portal .ttr-card-zone {
    position: absolute;
    left: 18px;
    bottom: 18px;

    padding: 7px 12px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    color: #fff;
    background: rgba(0, 0, 0, .65);
}

#ttr-portal .ttr-card-body {
    padding: 24px;
}

#ttr-portal .ttr-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 13px;
}

#ttr-portal .ttr-rating-stars {
    display: inline-flex;
    gap: 1px;

    line-height: 1;
}

#ttr-portal .ttr-star {
    display: inline-block;

    font-size: 18px;
    line-height: 1;
}

#ttr-portal .ttr-star-full {
    color: var(--ttr-gold);
}

#ttr-portal .ttr-star-empty {
    color: #ddd;
}

#ttr-portal .ttr-star-half {
    color: transparent;

    background:
        linear-gradient(
            90deg,
            var(--ttr-gold) 50%,
            #ddd 50%
        );

    background-clip: text;
    -webkit-background-clip: text;
}

#ttr-portal .ttr-rating-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--ttr-muted);
}

#ttr-portal .ttr-card-title {
    margin: 0 0 9px;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

#ttr-portal .ttr-card-specialty {
    min-height: 48px;

    margin: 0 0 22px;

    font-size: 15px;
    line-height: 1.6;

    color: var(--ttr-muted);
}

#ttr-portal .ttr-card-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;

    padding: 13px 0;

    background: transparent;

    font: inherit;
    font-size: 14px;
    font-weight: 800;

    color: var(--ttr-primary);

    cursor: pointer;
}

#ttr-portal .ttr-card-button i {
    font-size: 18px;
}


/* ================================================================
   EMPTY
================================================================ */

#ttr-portal .ttr-empty {
    padding: 30px;

    border: 1px dashed var(--ttr-border);
    border-radius: 14px;

    color: var(--ttr-muted);
}


/* ================================================================
   OFFCANVAS
================================================================ */

#ttr-portal .ttr-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 9999;

    visibility: hidden;
}

#ttr-portal .ttr-offcanvas.is-open {
    visibility: visible;
}

#ttr-portal .ttr-offcanvas-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .52);

    opacity: 0;

    transition: opacity .3s ease;
}

#ttr-portal .ttr-offcanvas.is-open .ttr-offcanvas-backdrop {
    opacity: 1;
}

#ttr-portal .ttr-offcanvas-panel {
    position: absolute;
    top: 0;
    left: 0;

    width: min(560px, 92vw);
    height: 100%;

    overflow-y: auto;

    background: #fff;

    transform: translateX(-100%);

    transition: transform .35s cubic-bezier(.22, 1, .36, 1);

    box-shadow: 12px 0 45px rgba(0, 0, 0, .18);
}

#ttr-portal .ttr-offcanvas.is-open .ttr-offcanvas-panel {
    transform: translateX(0);
}

#ttr-portal .ttr-offcanvas-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, .6);

    color: #fff;

    cursor: pointer;
}

#ttr-portal .ttr-detail-gallery {
    position: relative;

    height: 330px;

    overflow: hidden;

    background: #ddd;
}

#ttr-portal .ttr-detail-gallery img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

#ttr-portal .ttr-detail-gallery.is-slider {
    display: flex;
}

#ttr-portal .ttr-gallery-track {
    display: flex;

    width: 100%;
    height: 100%;

    transition: transform .3s ease;
}

#ttr-portal .ttr-gallery-slide {
    flex: 0 0 100%;
}

#ttr-portal .ttr-gallery-arrow {
    position: absolute;
    top: 50%;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, .6);
    color: #fff;

    transform: translateY(-50%);

    cursor: pointer;
}

#ttr-portal .ttr-gallery-prev {
    left: 16px;
}

#ttr-portal .ttr-gallery-next {
    right: 16px;
}

#ttr-portal .ttr-gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    color: #fff;
    background: rgba(0, 0, 0, .6);
}

#ttr-portal .ttr-detail-content {
    padding: 34px;
}

#ttr-portal .ttr-detail-zone {
    display: block;

    margin-bottom: 9px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;

    color: var(--ttr-primary);
}

#ttr-portal .ttr-detail-content h2 {
    margin: 0 0 14px;

    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}

#ttr-portal .ttr-detail-rating {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;
}

#ttr-portal .ttr-detail-description {
    margin: 0 0 28px;

    font-size: 16px;
    line-height: 1.7;

    color: var(--ttr-muted);
}

#ttr-portal .ttr-detail-list {
    display: grid;
    gap: 18px;

    padding: 24px 0;

    border-top: 1px solid var(--ttr-border);
    border-bottom: 1px solid var(--ttr-border);
}

#ttr-portal .ttr-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

#ttr-portal .ttr-detail-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #f6edf0;
    color: var(--ttr-primary);
}

#ttr-portal .ttr-detail-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#ttr-portal .ttr-detail-item strong {
    font-size: 13px;
}

#ttr-portal .ttr-detail-item span,
#ttr-portal .ttr-detail-item a {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ttr-muted);
    text-decoration: none;
}

#ttr-portal .ttr-detail-item a:hover {
    color: var(--ttr-primary);
}

#ttr-portal .ttr-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 25px;
}

#ttr-portal .ttr-detail-action {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 18px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}

#ttr-portal .ttr-detail-action-primary {
    color: #fff;
    background: var(--ttr-primary);
}

#ttr-portal .ttr-detail-socials {
    display: flex;
    gap: 8px;
}

#ttr-portal .ttr-social-link {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #f4f2ef;
    color: var(--ttr-text);

    text-decoration: none;
}

#ttr-portal .ttr-social-link:hover {
    color: var(--ttr-primary);
}