body {
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 30px 16px;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

/* ── Layout principal (calendário + painel lado a lado) ── */
.page-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 860px;
}

/* ── Painel de horários ── */
.timeslot-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.timeslot-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #D1848F;
    color: #fff;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
}

.timeslot-panel-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.timeslot-body {
    padding: 10px 12px;
    max-height: 420px;
    overflow-y: auto;
}

.timeslot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.15s;
}

.timeslot-item.available {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    cursor: pointer;
}

.timeslot-item.available:hover {
    background: #c8e6c9;
}

.timeslot-item.busy {
    background: #fce4e4;
    border: 1px solid #ef9a9a;
    cursor: not-allowed;
}

.timeslot-time {
    font-weight: 600;
    color: #444;
}

.timeslot-item.available .timeslot-status { color: #2e7d32; }
.timeslot-item.busy    .timeslot-status { color: #c62828; }

.timeslot-hint,
.calendar-hint {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    padding: 8px;
    margin: 0;
}

.loading { text-align: center; padding: 24px; color: #999; }
.error   { text-align: center; padding: 24px; color: #c62828; }

@media (max-width: 680px) {
    .page-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .timeslot-panel {
        max-width: 400px;
    }
}

.calendar-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #D1848F;
    color: #fff;
    padding: 10px;
}

.calendar-header button {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.calendar-header span {
    font-size: 16px;
}

.calendar-body {
    padding: 10px;
}

.calendar-days {
    display: flex;
    justify-content: space-between;
    color: #D1848F;
}

.calendar-days div {
    width: 14.28%;
    text-align: center;
}

.calendar-dates {
    display: flex;
    flex-wrap: wrap;
}

.calendar-dates div {
    width: 14.28%;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    box-sizing: border-box;
    color: #000;
}

.calendar-dates div:hover {
    background-color: #f1f1f1;
}

.calendar-dates .today {
    position: relative;
    background-color: #fff;
    color: #D1848F;
    border-radius: 50%;
    border: 2px solid #D1848F;
    background-image: url('heart.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.calendar-dates .prev-month,
.calendar-dates .next-month {
    color: #F1C0C4;
}

.calendar-dates .sunday {
    color: #F1C0C4;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-dates .past-day {
    color: #F1C0C4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 400px) {
    .calendar-days div, .calendar-dates div {
        width: 14.28%;
    }
}

.message {
    display: none;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #FF0000;
}

/* ── Seção de localização da Cris ── */
.cris-location-section {
    width: 100%;
    max-width: 860px;
    margin-top: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    overflow: hidden;
}

.cris-location-header {
    background: #D1848F;
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
}

.cris-map {
    width: 100%;
    height: 300px;
}

.cris-marker {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));
}

@media (max-width: 680px) {
    .cris-map { height: 220px; }
}
