
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: transparent;
    color: #444;
    font: 16px Arial, sans-serif;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 8px;
    overflow: hidden;
}

/* =========================================
   TITULO PRINCIPAL
   ========================================= */

h1 {
    font-size: 20px;
    font-weight: 400;
    margin: 4px 0 16px;
}

/* =========================================
   LEGENDA
   ========================================= */

.legenda {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

.legenda span {
    display: flex;
    gap: 6px;
    align-items: center;
}

.legenda i {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
}

/* =========================================
   NAVEGACAO ENTRE MESES
   ========================================= */

nav {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

button {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 13px;
    color: #444;
    cursor: pointer;
    font: inherit;
}

button:disabled {
    opacity: .4;
    cursor: default;
}

/* =========================================
   DISTRIBUICAO DOS CALENDARIOS
   ========================================= */

#meses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mes {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
}

.mes h2 {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 10px;
    text-transform: capitalize;
}

.dias {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}

.dia,
.semana {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
}

.dia {
    font-size: 14px;
}

.semana {
    background: #eee;
    font-size: 12px;
}

/* =========================================
   CORES DE DISPONIBILIDADE
   ========================================= */

.livre {
    background: #daf8ca;
}

.ocupado {
    background: #ffbcb9;
}

.entrada {
    background: linear-gradient(
        135deg,
        #daf8ca 50%,
        #ffbcb9 50%
    );
}

.saida {
    background: linear-gradient(
        135deg,
        #ffbcb9 50%,
        #daf8ca 50%
    );
}

.passado {
    background: #ffbcb9;
    color: #777;
}

.incerto {
    background: #eee;
    color: #666;
}

/* =========================================
   DESTAQUE DA DATA ATUAL

   Altere estas cores para personalizar
   o destaque do dia de hoje.
   ========================================= */

.atual {
    outline: 3px solid #2563eb;
    outline-offset: -3px;
    font-weight: 700;
    color: #174bb5;
}

/* CABECALHO DO DIA ATUAL NO CALENDARIO GERAL */

th.hoje-coluna {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    border-radius: 3px;
}

/* LEGENDA DO DIA ATUAL */

.legenda i.hoje-legenda {
    background: transparent;
    border: 3px solid #2563eb;
}

/* =========================================
   ULTIMA ATUALIZACAO
   ========================================= */

#status {
    font-size: 11px;
    color: #777;
    text-align: right;
    margin: 10px 0 0;
}

/* =========================================
   CABECALHO, CAMPOS E LINKS
   ========================================= */

header,
.fields,
.links {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

select,
input {
    font: inherit;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fields label {
    flex: 1;
    min-width: 130px;
}

/* =========================================
   CONSULTA DE HOSPEDAGEM
   ========================================= */

.search {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

/* =========================================
   CALENDARIO GERAL
   ========================================= */

.scroll {
    overflow-x: auto;
    margin: 12px 0;
}

table {
    border-collapse: separate;
    border-spacing: 2px;
    font-size: 13px;
    width: 100%;
}

th,
td {
    padding: 3px;
    text-align: center;
}

th:first-child {
    position: sticky;
    left: 0;
    background: white;
    text-align: left;
    min-width: 115px;
}

td .dia {
    min-width: 30px;
}

table th {
    white-space: nowrap;
}

.scroll table {
    width: max-content;
    min-width: 100%;
}

/* =========================================
   RESULTADOS DE HOSPEDAGEM
   ========================================= */

.stay,
.combo {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
}

.links a {
    padding: 8px 12px;
    border: 1px solid #777;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
}

.links a:last-child {
    background: #333;
    color: white;
}

/* =========================================
   AVISOS E TITULOS SECUNDARIOS
   ========================================= */

#notice {
    font-size: 12px;
    color: #666;
}

h2 {
    font-size: 19px;
}

h3 {
    font-size: 16px;
}

/* =========================================
   RESPONSIVIDADE - TABLETS
   ========================================= */

@media (max-width: 850px) {

    #meses {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* =========================================
   RESPONSIVIDADE - CELULARES
   ========================================= */

@media (max-width: 480px) {

    #meses {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 18px;
    }

    .dia,
    .semana {
        height: 32px;
    }

}

/* Interface geral compacta: largura fixa de 26 px + 2 px de margem por dia. */
.geral h1{margin:4px 0 6px}.descricao{font-size:13px;color:#666;line-height:1.45;margin:8px 0}.geral .legenda{gap:8px 14px}.geral .legenda i{width:22px;height:22px}.geral #meses h2{font-size:15px;font-weight:600;margin:10px 0}.geral .fixed-matrix{table-layout:fixed;border-collapse:collapse;border-spacing:0;margin:8px 0 13px;max-width:none;min-width:0;font-size:12px}.geral .fixed-matrix th,.geral .fixed-matrix td{padding:0 1px 2px;min-width:0;white-space:normal;position:static;background:transparent}.geral .fixed-matrix .matrix-name{text-align:left;padding:2px 5px 2px 0;overflow-wrap:anywhere;font-weight:400;font-size:12px}.geral .fixed-matrix a,.geral .stay-info a,.geral .stay>a{color:#245aab;text-decoration:underline}.geral .fixed-matrix .dia{width:26px;min-width:26px;height:28px;font-size:12px}.geral .fixed-matrix .month-band{background:#eee;font-size:10px;padding:3px 0;overflow:hidden;white-space:nowrap}.geral .fixed-matrix .weekend{background:#eee}.geral .fixed-matrix .hoje-coluna{background:#2563eb;color:#fff}.geral .fixed-matrix .chosen:not(.hoje-coluna){background:#dbeafe}.date-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:26px;height:33px;border:0;padding:0;background:transparent;color:inherit;font-size:12px;border-radius:0}.date-heading small{font-size:10px;font-weight:400}.date-heading:focus-visible{outline:2px solid #2563eb}.geral .fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}.geral .fields label{min-width:0;font-size:13px}.geral .fields input{width:100%;min-width:0;font-size:14px;padding:7px 4px;height:36px}.stepper{display:flex;gap:3px;align-items:stretch}.stepper input{text-align:center;appearance:textfield;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stepper button{padding:3px 8px;min-width:29px}.quick-days{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.quick-days button{font-size:12px;padding:5px 10px}.quick-days .selected{background:#2563eb;color:white;border-color:#2563eb}.geral #periodSummary{font-size:13px;border-bottom:1px solid #ddd;padding:6px 0 10px}.geral #matrixTitle{margin:10px 0;font-size:16px;font-weight:600}.geral .stay-info{display:flex;gap:12px;align-items:center}.geral .stay-info img{width:100px;height:75px;object-fit:cover;border-radius:4px}.geral .stay-info p{margin:5px 0;font-size:13px}.geral .stay-info small{font-size:12px;color:#666}.geral .links{justify-content:flex-end;margin-top:8px;gap:6px}.geral .links a{font-size:13px;padding:7px 10px}.geral .compact{border:0;padding:7px 0;margin:3px 0}.geral .compact .stay-info img{width:65px;height:58px}.geral .transfer{font-size:13px;background:#f5f5f5;padding:8px;border-radius:4px}.geral .warning{font-size:13px;color:#805600}.geral #results h3{margin:16px 0 8px}.geral .search{margin-top:10px}.geral #pickHint{margin:0 0 15px}.geral .stay>p{font-size:13px;margin:8px 0}
@media(max-width:780px){.geral .fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.geral .fixed-matrix .matrix-name{font-size:10px}.geral .legenda{font-size:11px;gap:7px}.geral .legenda i{width:19px;height:19px}.geral .links a{flex:1;text-align:center}.geral .stay-info img{width:85px;height:65px}.geral .fields{gap:7px}.geral .fields input{font-size:12px}}

/* Informações dos imóveis e seleção do intervalo. */
.geral .matrix-capacity{display:block;font-size:10px;color:#666;line-height:1.1;margin-top:2px}.geral .fixed-matrix .in-range:not(.hoje-coluna){background:#eaf2ff}.geral .stay-info .available-note{font-size:12px;color:#226b37;margin:4px 0 0}.geral .fixed-matrix .matrix-name{line-height:1.1}.geral .fixed-matrix{margin-left:0;margin-right:auto}
