.calendar-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.calendar-grid .day-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    color: #495057;
    padding: 0.35rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.calendar-day {
    min-height: 80px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    background: #fff;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transition: border-color 0.15s, background-color 0.15s;
    overflow: hidden;
}

.calendar-day.has-data {
    min-height: 96px;
}

.calendar-day .day-num {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
}

.calendar-day .day-details {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    overflow: hidden;
}

.calendar-day .day-plaza {
    font-size: 0.62rem;
    line-height: 1.15;
    color: #146c43;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day:not(.muted):hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.calendar-day.selected {
    background: #cfe2ff !important;
    border-color: #0d6efd;
}

.calendar-day.has-data {
    background: #d1e7dd;
}

.calendar-day.has-data.selected {
    background: #b6d4c1 !important;
}

.calendar-day.muted {
    background: #f1f3f5;
    color: #adb5bd;
    cursor: default;
    border-color: #e9ecef;
}

.calendar-day.muted:hover {
    border-color: #e9ecef;
    background: #f1f3f5;
}

.calendar-day.today .day-num {
    color: #0d6efd;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px #0d6efd;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #495057;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.calendar-legend .swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: inline-block;
}
.navbar-aehga {
    background-color: #0d6efd;
    background-image: linear-gradient(rgba(124, 124, 124, 0.40), rgba(124, 124, 124, 0.40)),
                      var(--navbar-bg-image, url('../img/merlo-san-luis.jpg'));
    background-size: cover;
    background-position: center;
}
.navbar-logo {
    height: auto;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.calendar-legend .swatch-green { background: #d1e7dd; }
.calendar-legend .swatch-blue { background: #cfe2ff; border-color: #0d6efd; }
.calendar-legend .swatch-gray { background: #f1f3f5; }

.cal-steps {
    background: #f8f9fa;
}

.cal-steps ol li {
    margin-bottom: 0.25rem;
}

#panel-dia-detalle .table th,
#panel-dia-detalle .table td {
    padding: 0.2rem 0.35rem;
}

#panel-seleccion {
    border-left: 4px solid #0d6efd;
}

@media (max-width: 991px) {
    .order-1 { order: 1 !important; }
    .order-2 { order: 2 !important; }
}

/* Campos de fecha — legibles en móvil */
.date-input {
    min-height: 3rem;
    font-size: 1.05rem;
    color: #212529;
    -webkit-text-fill-color: #212529;
}

.date-input::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.5em;
}

.date-input::-webkit-calendar-picker-indicator {
    opacity: 1;
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
}

@media (max-width: 576px) {
    .calendar-day {
        min-height: 64px;
        padding: 3px;
    }
    .calendar-day.has-data {
        min-height: 72px;
    }
    .calendar-day .day-num {
        font-size: 0.9rem;
    }
    .calendar-day .day-plaza {
        font-size: 0.55rem;
    }
}

/* Perfil del establecimiento (socio) */
.perfil-foto-preview {
    aspect-ratio: 4 / 3;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
}

.perfil-foto-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.perfil-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Resultados de búsqueda (turista) */
main.container {
    max-width: 100%;
    overflow-x: hidden;
}

body.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

.match-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.match-card {
    overflow: hidden;
    border: 1px solid #dee2e6;
    max-width: 100%;
    min-width: 0;
}

.match-card .card-body {
    min-width: 0;
    overflow: hidden;
}

.match-card-fotos {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 2px;
    background: #dee2e6;
}

.match-card-fotos > * {
    min-width: 0;
}

.match-card-foto {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* Modal de fotos */
.match-fotos-modal .modal-dialog {
    max-width: min(720px, calc(100vw - 1rem));
    margin-left: auto;
    margin-right: auto;
}

.match-modal-body {
    padding: 0.75rem;
    overflow-x: hidden;
}

.match-modal-figure {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

.match-modal-foto {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.match-card-desc {
    color: #495057;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

