/* Machu Picchu Widget - Peru Travel Specialist */
.mp-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e8e0d0;
}

.mp-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a4f 100%);
    color: #fff;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.mp-logo { font-size: 40px; }
.mp-title { margin: 0; font-size: 22px; font-weight: 700; }
.mp-subtitle { margin: 4px 0 0; font-size: 14px; opacity: 0.8; }

.mp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 28px;
    background: #f9f7f3;
    border-bottom: 1px solid #e8e0d0;
    align-items: flex-end;
}
.mp-filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.mp-filter-group label { font-size: 13px; font-weight: 600; color: #555; }
.mp-select {
    padding: 10px 14px;
    border: 1px solid #d0c8b8;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.mp-select:focus { outline: none; border-color: #2d6a4f; box-shadow: 0 0 0 3px rgba(45,106,79,0.15); }

.mp-btn {
    background: linear-gradient(135deg, #c9a227 0%, #e8b923 100%);
    color: #1a1a1a;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.mp-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,162,39,0.4); }
.mp-btn:active { transform: translateY(0); }
.mp-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.mp-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 28px 8px;
    font-size: 13px;
    color: #555;
}
.mp-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 4px;
}
.mp-dot.disponible { background: #2d6a4f; }
.mp-dot.agotado { background: #e53e3e; }

.mp-calendars {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 28px 28px;
}

.mp-calendar {
    flex: 1;
    min-width: 260px;
    border: 1px solid #e8e0d0;
    border-radius: 10px;
    overflow: hidden;
}
.mp-cal-header {
    background: linear-gradient(135deg, #1a3a5c, #2d6a4f);
    color: #fff;
    padding: 14px 16px;
}
.mp-cal-header h4 { margin: 0; font-size: 15px; }
.mp-cal-header span { font-size: 12px; opacity: 0.85; }
.mp-cal-horario { font-size: 18px; font-weight: 700; float: right; }

.mp-cal-grid { padding: 12px; }
.mp-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}
.mp-cal-day-name {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    padding: 4px 0;
}
.mp-cal-cell {
    text-align: center;
    padding: 6px 2px;
    border-radius: 6px;
    font-size: 13px;
    cursor: default;
}
.mp-cal-cell.empty { background: transparent; }
.mp-cal-cell.disponible {
    background: #f0faf5;
    color: #2d6a4f;
    font-weight: 600;
    border: 1px solid #b7e4c7;
}
.mp-cal-cell.agotado {
    background: #fff5f5;
    color: #e53e3e;
    font-weight: 600;
    border: 1px solid #fed7d7;
}
.mp-cal-cell .mp-day-num { font-size: 10px; color: #999; }
.mp-cal-cell .mp-day-cupos { font-size: 14px; font-weight: 700; }

.mp-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}
.mp-spinner {
    width: 40px; height: 40px;
    border: 4px solid #e8e0d0;
    border-top-color: #2d6a4f;
    border-radius: 50%;
    animation: mp-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }

.mp-error {
    margin: 20px 28px;
    padding: 14px 18px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    color: #c53030;
    font-size: 14px;
}

.mp-footer {
    text-align: center;
    padding: 16px;
    background: #f9f7f3;
    border-top: 1px solid #e8e0d0;
    font-size: 13px;
}
.mp-footer a { color: #2d6a4f; font-weight: 600; text-decoration: none; }
.mp-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .mp-filters { padding: 16px; }
    .mp-calendars { padding: 16px; }
    .mp-filter-group { min-width: 100%; }
}
