﻿.main {
    background-color: #f8f6f1;
}
.main-event-b2c {
    padding-top: 230px;
}
.main-event-b2b {
    padding-top: 150px;
}
/* Section cabeçalho inicio da página */
.local-reservation-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}



/* Botão voltar */
.local-reservation-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-mobile);
    background: none;
    border: none;
    color: var(--color-text-dark);
    transition: color 0.3s ease;
}

    .local-reservation-back svg {
        width: 16px;
    }

    .local-reservation-back:hover {
        color: var(--color-footer);
    }

/* cxaNota - caixa de alerta */
.alert {
    border-radius: 16px;
    max-width: 1200px;
    margin: 12px auto;
}

/* Calendario datapicker */
.section-date-card {
    background: var(--color-text-white);
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}
/* Container calendário */
.section-date-calendar .datepicker {
    max-width: 500px;
    min-width: 350px;
    margin: 0 auto;
    padding: 8px;
    background: #ffffff;
    border-radius: 16px;
}

.datepicker .datepicker-switch {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.datepicker thead tr:first-child th {
    padding: 8px;
}

.datepicker .prev,
.datepicker .next {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: 0.2s;
}

    .datepicker .prev:hover,
    .datepicker .next:hover {
        background: #f3f4f6;
    }

    .datepicker .prev:active,
    .datepicker .next:active {
        transform: scale(0.95);
    }

.datepicker .prev,
.datepicker .next {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    transition: 0.2s;
}

    /* seta esquerda */
    .datepicker .prev::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 18px;
        transform: translate(-50%, -50%);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M19 12H5'/><path d='m12 19-7-7 7-7'/></svg>");
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* seta direita */
    .datepicker .next::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 18px;
        transform: translate(-50%, -50%);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>");
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* hover */
    .datepicker .prev:hover,
    .datepicker .next:hover {
        background: #f3f4f6;
    }

    .datepicker .prev:active,
    .datepicker .next:active {
        transform: scale(0.95);
    }



/* Dias da semana  */

.datepicker thead tr:nth-child(2) th {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 8px 0;
}

.datepicker th, .datepicker td {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 700;
}
/* Grid tabela*/
.datepicker table {
    border-collapse: separate;
    border-spacing: 4px;
}

/* Dias */

.datepicker td {
    min-height: 40px;
    height: 40px;
    width: 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    border: 2px solid #d1d5db;
    color: #1a1a1a;
    transition: 0.2s;
}

    /* Hover dia normal */
    .datepicker td.day:hover {
        border: 2px solid #1a1a1a;
        background: #f9fafb;
        color: #1a1a1a;
    }

    /* Active click */
    .datepicker td.day:active {
        transform: scale(0.95);
    }

    /* Dia selecionado */
    .datepicker td.active {
        background: var(--color-primary);
        border: 2px solid #FDBA31;
        color: #1a1a1a !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: scale(1.05);
    }

/* Dia atual */
.datepicker table tr td.today {
    border: 2px solid #FDBA31;
    background-color: rgba(253, 186, 49, 0.1);
    color: #1a1a1a;
    transition: all 0.2s;
    cursor: pointer;
}
    /* Hover */
    .datepicker table tr td.today:hover {
        background-color: rgba(253, 186, 49, 0.2);
        border: 2px solid #FDBA31;
    }
/* Dias desabilitados */

.datepicker td.disabled,
.datepicker td.old,
.datepicker td.new {
    background: #f9fafb;
    color: #d1d5dc;
    border: 2px solid #e5e7eb;
    cursor: not-allowed;
    pointer-events: none;
}



/* Título */
.local-reservation-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

/* Subtítulo */
.local-reservation-subtitle {
    font-size: var(--font-size-mobile);
    color: #6b7280;
    margin-bottom: 0;
}

.header-border {
    width: 100%;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Titulo e subtitulo das boxes de cada evento */
.title-event {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

.subtitle-event {
    font-size: var(--font-size-mobile);
    color: #6b7280;
    margin-bottom: 10px;
}

/* Steps Event */
.steps-event-container {
    width: 100%;
    background-color: var(--color-text-white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-bottom: 1px solid #E5E7EB;
}

.steps-event-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F9FAFB;
    border-radius: 20px;
    padding: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.steps-event-item {
    display: flex;
    align-items: center;
}

.steps-event-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.steps-event-circle {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #e5e7eb;
    color: #6b7280;
}

    .steps-event-circle.active {
        background-color: #1a1a1a;
        color: var(--color-text-white);
    }

    .steps-event-circle.completed {
        background-color: #1a1a1a;
        color: var(--color-text-white);
    }


.steps-event-number {
    z-index: 1;
}

.steps-event-label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #8F9FB2;
    transition: color 0.3s ease;
}

    .steps-event-label.active {
        color: var( --color-text-dark);
        font-size: 10px;
    }

    .steps-event-label.completed {
        color: var(--color-text-dark);
    }

.steps-event-line {
    width: 24px;
    height: 2px;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 15px;
    border-radius: 999px;
    transition: background-color 0.3s ease;
    background-color: #e5e7eb;
}

    .steps-event-line.completed {
        background-color: #1a1a1a;
    }
/* Container fixo */
.reservation-fixed {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    z-index: 40;
    background: #fff;
}

#aviso-palacio-sintra {
    width: 100% !important;
}

/* Section horário */
.time-card {
    background: var(--color-text-white);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    padding: 16px;
    margin-bottom: 24px;
}

/* Mobile 2 colunas */
.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

/* Botão base */
.time-btn {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-button);
    padding: 10px;
    background: var(--color-text-white);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a1a;
    overflow: hidden;
}

    .time-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: transparent;
        transition: all 0.3s ease;
    }

    /* VERDE - Disponível */
    .time-btn.available::after {
        background: #10b981;
    }

    .time-btn.available:hover {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.05);
    }

    /* AMARELO - Últimos bilhetes */
    .time-btn.low-availability::after {
        background: var(--color-primary);
    }

    .time-btn.low-availability:hover {
        border-color: var(--color-primary);
        background: rgba(253, 186, 49, 0.05);
    }

    /* VERMELHO - Esgotado */
    .time-btn.disabled::after {
        background: #dc2626;
    }

    .time-btn.disabled {
        background: #f3f4f6;
        color: #9ca3af;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.6;
    }

        .time-btn.disabled:hover {
            border-color: #e5e7eb;
            background: #f3f4f6;
            box-shadow: none;
        }

    /* PRETO - Ativo (selecionado) */
    .time-btn.active {
        background-color: #1a1a1a;
        color: var(--color-text-white);
        border-color: #1a1a1a;
        transform: scale(1.05);
    }

        .time-btn.active:hover {
            background-color: #1a1a1a;
            color: var(--color-text-white);
            border-color: #1a1a1a;
            transform: scale(1.05);
        }


    /* Hover em botões não desabilitados */
    .time-btn:not(.disabled):hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

/* Texto */
.time-hour {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.time-info {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 0;
    font-weight: 500;
}

/* Só mostra texto quando esgotado */
.time-btn.disabled .time-info {
    display: block;
}

.time-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 20px;
    margin-top: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

    .legend-color.available {
        background: #10b981;
    }

    .legend-color.low {
        background: var(--color-primary);
    }

    .legend-color.sold-out {
        background: #dc2626;
    }

.legend-text {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Tipologia de Bilhetes */
.typology-card {
    background: var(--color-text-white);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 16px;
    display: none;
    margin-bottom: 24px;
}

.typology-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Lista */
.typology-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Layout interno */
.typology-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background-color: #F9FAFB;
    border-radius: 20px;
}

/* Bloco esquerdo */
.typology-info {
    flex: 1;
}

/* Título + botão info */
.typology-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typology-title {
    display: flex;
    font-size: 14px;
    font-weight: 600;
    color: #2c2416;
    margin: 0;
}

/* Botão info */
.info-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-footer);
    color: var(--color-text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

    .info-btn:hover {
        background-color: #2c3446;
    }

    .info-btn svg {
        width: 12px;
        height: 12px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
/* Modal info */
.modal-content {
    display: flex;
    justify-content: center; 
    align-items: center;     
    text-align: center;
}

#content {
    display: flex;
    align-items: center;
    gap: 8px;
}
#content i {
   color: var(--color-primary);
}
#content h4 {
    margin: 0;
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

    .modal-backdrop.show {
        opacity: 1;
    }

#modalMsgInfo .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 16px);
    margin: 8px;
    width: calc(100% - 16px);
    max-width: 100%;
}

#modalMsgInfo .modal-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
}

/* Header do Modal */
#modalMsgInfo .modal-header-custom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

/* Título */
#modalMsgInfo .modal-title-custom {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 24px;
    flex: 1;
}

/* Botão Fechar */
#modalMsgInfo .close {
    padding: 4px;
    background: transparent;
    border: none;
    border-radius: 50%;
    transition: background-color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
    float: none;
    opacity: 1;
    margin: 0;
}

    #modalMsgInfo .close:hover {
        background-color: #f3f4f6;
    }

    #modalMsgInfo .close:focus {
        outline: none;
    }

    #modalMsgInfo .close svg {
        width: 20px;
        height: 20px;
        stroke: #6b7280;
    }

    #modalMsgInfo .close:hover svg {
        stroke: #374151;
    }

/* Conteúdo/Texto */
#modalMsgInfo .modal-text-custom {
    color: #6b7280;
    font-size: 15px;
    line-height: 24px;
    margin: 0;
}

/* Container do conteúdo */
#modalMsgInfo #content {
    padding: 0;
}

/* Remove estilos padrão do Bootstrap */
#modalMsgInfo .modal-content {
    position: relative;
}



/*Tipologia section */

/* Descrição */
.typology-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0;
}

/* Preços */
.typology-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.typology-old {
    font-size: 14px;
    color: var(--color-text-gray);
    text-decoration: line-through;
}

.typology-new {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: var(--color-primary);
}

/* Quantidade  (Touchspin)*/
.typology-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Neutraliza Bootstrap */
.typology-qty .input-group,
.typology-qty .input-group-btn,
.typology-qty .btn,
.typology-qty .form-control {
    box-shadow: none !important;
    margin: 0 !important;
}

/* Wrapper */
.typology-qty .bootstrap-touchspin {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   width: auto !important;
}

/* INPUT */
.typology-qty .form-control,
.typology-qty .inputQtdProduct {
        width: 32px !important;
        height: 40px;
        min-width: 32px;
        max-width: 32px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        color: var(--color-text-dark);
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        outline: none;
        -moz-appearance: textfield;
}

    /* Remove setas nativas */
    .typology-qty input::-webkit-outer-spin-button,
    .typology-qty input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* BOTÕES  */
    .typology-qty .bootstrap-touchspin-down,
    .typology-qty .bootstrap-touchspin-up {
        width: 40px;
        height: 40px;
        color: var(--color-text-white);
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        padding: 0;
        transition: background-color 0.2s ease, opacity 0.2s ease;
    }

/* Hover nos botões */
.typology-qty .bootstrap-touchspin-down:hover:not(:disabled),
.typology-qty .bootstrap-touchspin-up:hover:not(:disabled) {
    background-color: var(--color-footer);
}

/* Estado desabilitado */
.typology-qty .bootstrap-touchspin-down:disabled,
.typology-qty .bootstrap-touchspin-up:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bootstrap-touchspin-down {
    opacity: .3;
}

/* Override */
.typology-qty .btn.btn-down-icon:after,
.typology-qty .btn.btn-up-icon:before,
.typology-qty .btn.btn-up-icon:after {
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}

/* icone autocarro */
.icon-bus {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
}

/* Botão adicionar ao carrinho */
.cart-container {
    border-radius: 16px;
    padding-bottom: 16px;
    box-shadow: none;
}

.cart-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
/* Botão */
.btn-add-cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--padding-button-desktop);
    background-color: var(--color-footer);
    color: var(--color-text-white);
    border: none;
    border-radius: var(--border-button);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 200ms ease;
}
    /* Hover */
    .btn-add-cart:hover {
        background-color: #2c3446;
    }

/* Ícone */
.btn-icon {
    width: 20px;
    height: 20px;
}

/* tablet */
@media (min-width: 768px) {

    .local-reservation-title {
        font-size: 24px;
    }

    .steps-event-container {
        padding: 12px 32px;
    }

    .steps-event-wrapper {
        gap: 8px;
    }

    .steps-event-label.active {
        font-size: 12px;
    }

    .steps-event-label {
        font-size: 12px;
    }

    .steps-event-line {
        width: 40px;
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 10px;
    }

    .steps-event-circle.completed::after {
        width: 20px;
        height: 20px;
    }

    /* Section data e hora (Calendario) datepicker  */
    .section-time-back {
        margin-left: 24px;
    }

        .section-time-back:hover {
            background-color: var(--color-text-dark);
            color: var(--color-text-white);
            opacity: 0.9;
        }

    .section-date-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .section-date-calendar .datepicker {
        min-width: 500px;
        padding: 12px;
    }

    .datepicker .datepicker-switch {
        font-size: 20px;
    }

    .datepicker thead tr:nth-child(2) th {
        font-size: 20px;
    }

    .datepicker td {
        font-size: 18px;
        height: 56px;
        width: 56px;
    }

    .datepicker table {
        border-spacing: 8px;
        width: 100%;
    }



    /* Section horário */
    .title-event {
        font-size: 24px;
    }

    .subtitle-event {
        font-size: 15px;
    }

    .time-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .time-legend {
        gap: 24px;
    }
    /* GRID — 4 colunas */
    .time-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .time-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 8px;
    }

    .time-info {
        font-size: 12px;
    }

    .arrow-icon {
        width: 18px;
        height: 18px;
    }

    /* Section tipologia */

    .typology-qty {
        gap: 12px;
    }
    .typology-title {
        font-size: 16px;
    }
    /* Modal info */

    #modalMsgInfo .modal-dialog {
        margin: 16px auto;
        max-width: 448px; /* 28rem */
    }

    #modalMsgInfo .modal-content {
        padding: 24px;
    }

    #modalMsgInfo .modal-title-custom {
        font-size: 20px;
    }

    #modalMsgInfo .modal-text-custom {
        font-size: 16px;
    }

    /* Botão adicionar no carrinho */
    .cart-inner {
        flex-direction: row;
    }

    .btn-add-cart {
        width: auto;
    }
    /* necessario para conteudo cabecalho fixo */
    .main-event-b2c {
        padding-top: 240px;
    }
}

/* Desktop */

@media (min-width: 1024px) {
    /* layout container */

    .layout-container {
        max-width: 1200px;
        padding: 0 16px;
    }

    /*Step */
    .steps-event-line {
        width: 48px;
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 10px;
    }

    /* Section data e hora Calendário */

    .section-date-title {
        font-size: 24px;
    }

    .section-date-calendar .datepicker {
        min-width: 500px;
        padding: 12px;
    }

    .datepicker th, .datepicker td {
        font-size: 16px;
    }


    /* Section horário */
    .title-event {
        font-size: 24px;
    }

    .subtitle-event {
        font-size: var(--font-size-desktop);
    }
    /* Modal info */
    #modalMsgInfo .modal-dialog {
        min-height: calc(100vh - 56px);
        margin: 28px auto;
    }
    .header-borderLugares {
        width: 100%;
        border-bottom: 1px solid #E5E7EB;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
        margin-top: var(--header-height);
        background-color: white;
    }

    #contentBtnSemData {
        margin-top: 12px;
    }

    .btn-without-date {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid rgba(5, 25, 50, .18);
        background: #fff;
        color: #051932;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
        transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    }

        .btn-without-date:hover {
            border-color: rgba(5, 25, 50, .28);
            box-shadow: 0 6px 18px rgba(5, 25, 50, .10);
            background: rgba(5, 25, 50, .02);
        }

        .btn-without-date:active {
            transform: translateY(1px);
        }

    .btn-without-date__icon {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(5, 25, 50, .06);
    }

}
