/* ============================================================
   WP Embarcaciones – Frontend CSS
   Matches the mockups: actividad1.jpeg, actividad2.jpeg, actividad3.jpeg
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
.emb-single * { box-sizing: border-box; }
.emb-single { font-family: inherit; color: #1e1e1e; }

/* ── Hero ──────────────────────────────────────────────────── */
.emb-hero {
    position: relative;
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.emb-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}

.emb-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.emb-hero-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.emb-hero-sub {
    font-size: 16px;
    margin: 0;
    opacity: .9;
}

/* ── Body Layout ───────────────────────────────────────────── */
.emb-body-wrap {
    display: flex;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.emb-col-left  { flex: 1 1 0; min-width: 0; }
.emb-col-right { flex: 0 0 380px; max-width: 380px; }

/* ── Visibility Toggles ────────────────────────────────────── */
.emb-single.no-hero .emb-hero { display: none; }
.emb-single.no-details .emb-col-left { display: none; }
.emb-single.no-details .emb-col-right { flex: 1 1 100%; max-width: 100%; }
.emb-single.no-details .emb-body-wrap { max-width: 600px; } /* Center smaller for calendar-only */

@media (max-width: 860px) {
    .emb-body-wrap { flex-direction: column; padding: 20px; }
    .emb-col-right { flex: 1 1 100%; max-width: 100%; }
}

/* ── Left Column ───────────────────────────────────────────── */
.emb-name      { font-size: 22px; font-weight: 700; color: #2563a8; margin: 0 0 4px; }
.emb-subtitulo { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.emb-excerpt   { color: #2563a8; font-style: italic; margin: 0 0 10px; }

.emb-description { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.emb-capacidad,
.emb-info-extra {
    font-size: 13px;
    color: #555;
    margin: 4px 0;
}

.emb-ico { margin-right: 5px; }

.emb-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.emb-gallery-thumb img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity .2s;
}
.emb-gallery-thumb:hover img { opacity: .8; }

/* ── Calendar Container ────────────────────────────────────── */
.emb-calendar-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.emb-cal-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1e1e1e;
}

/* Activity selector (multi-activity mode) */
.emb-activity-selector-wrap {
    margin-bottom: 16px;
    text-align: center;
}

.emb-activity-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.emb-activity-selector {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
    background: #fff;
    cursor: pointer;
    appearance: auto;
    transition: border-color .15s;
}

.emb-activity-selector:hover,
.emb-activity-selector:focus {
    border-color: #2563a8;
    outline: none;
}

/* Calendar nav */
.emb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.emb-cal-nav button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s;
}
.emb-cal-nav button:hover { background: #f0f0f0; }

.emb-cal-month-label {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* Day headers */
.emb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.emb-cal-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
    text-transform: uppercase;
}

/* Day cells */
.emb-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: default;
    position: relative;
    transition: transform .1s;
    color: #1e1e1e;
    user-select: none;
}

.emb-cal-day.empty { background: transparent; }

.emb-cal-day.disponible {
    background-color: #3a9b4b;
    color: #fff;
    cursor: pointer;
}
.emb-cal-day.disponible:hover { transform: scale(1.1); box-shadow: 0 2px 8px rgba(58,155,75,.4); }

/* Parcial: split diagonal gradient */
.emb-cal-day.parcial {
    background: linear-gradient(135deg, #3a9b4b 50%, #c0392b 50%);
    color: #fff;
    cursor: pointer;
}
.emb-cal-day.parcial:hover { transform: scale(1.1); }

.emb-cal-day.no-disponible {
    background-color: #2d2d2d;
    color: #777;
    cursor: not-allowed;
}

.emb-cal-day.today {
    outline: 2px solid #2563a8;
    outline-offset: 2px;
}

/* Loading spinner */
.emb-cal-loading {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 14px;
}

/* Legend */
.emb-cal-legend {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 12px;
    flex-wrap: wrap;
}

.emb-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
}

.emb-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.emb-legend-dot.disponible    { background: #3a9b4b; }
.emb-legend-dot.parcial       { background: linear-gradient(135deg, #3a9b4b 50%, #c0392b 50%); }
.emb-legend-dot.no-disponible { background: #2d2d2d; }

/* ── Overlay ───────────────────────────────────────────────── */
.emb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

/* ── Panels (Slots + Booking) ──────────────────────────────── */
.emb-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.emb-panel-inner {
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,.2);
    max-width: 720px;
    width: 100%;
    padding: 24px 24px 32px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: emb-slide-up .25s ease;
}

@keyframes emb-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.emb-panel-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #333;
    transition: background .15s;
}
.emb-panel-close:hover { background: #e0e0e0; }

/* Slots Panel Content */
.emb-panel-date-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1e1e1e;
    padding-right: 40px;
}

.emb-slot-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.emb-slot-info { flex: 1; }
.emb-slot-info h4 { margin: 0 0 4px; font-size: 15px; }
.emb-slot-info p  { margin: 0; font-size: 13px; color: #555; }
.emb-slot-capacidad { 
    font-size: 12px; 
    color: #2563a8; 
    font-weight: 600; 
    margin: 4px 0 0 0; 
}

.emb-slot-price {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.emb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}
.emb-btn:hover { opacity: .88; transform: translateY(-1px); }
.emb-btn:active { transform: translateY(0); }

.emb-btn-green { background: #3a9b4b; color: #fff; }
.emb-btn-red   { background: #c0392b; color: #fff; cursor: not-allowed; opacity: .7; }
.emb-btn-blue  { background: #2563a8; color: #fff; }
.emb-btn-gray  { background: #e0e0e0; color: #555; }
.emb-btn-sm    { padding: 7px 14px; font-size: 13px; }

/* Booking Panel */
.emb-booking-header {
    font-size: 14px;
    color: #2563a8;
    font-weight: 600;
    margin: 0 0 16px;
}

.emb-booking-body {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.emb-booking-left {
    flex: 1 1 300px;
}

.emb-booking-left img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 12px;
}

.emb-booking-main-info h4 { font-size: 16px; margin: 0 0 4px; }
.emb-booking-main-info p  { font-size: 13px; color: #555; margin: 0 0 4px; }

.emb-booking-price {
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0;
}

/* Person selector */
.emb-persones-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 4px;
}

.emb-persones-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    margin-right: 4px;
}

.emb-btn-qtty {
    width: 34px;
    height: 34px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    color: #1e1e1e;
    line-height: 1;
}
.emb-btn-qtty:hover:not(:disabled) { background: #f0f0f0; border-color: #2563a8; }
.emb-btn-qtty:disabled { opacity: .35; cursor: not-allowed; }

.emb-persones-val {
    font-size: 18px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    color: #1e1e1e;
}

.emb-persones-hint {
    font-size: 12px;
    color: #888;
    margin: 0 0 12px;
}

.emb-booking-right {
    flex: 0 0 220px;
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

.emb-booking-right h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    margin: 0 0 12px;
}

.emb-related-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.emb-related-item:last-child { border-bottom: none; }

.emb-related-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.emb-related-info { flex: 1; min-width: 0; }
.emb-related-info .name   { font-size: 13px; font-weight: 600; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-related-info .desc   { font-size: 11px; color: #888; margin: 0 0 4px; }
.emb-related-info .price  { font-size: 13px; font-weight: 700; margin: 0 0 5px; }

@media (max-width: 600px) {
    .emb-booking-right { flex: 1 1 100%; border-left: none; padding-left: 0; border-top: 1px solid #e0e0e0; padding-top: 16px; }
    .emb-panel-inner   { padding: 20px 16px 28px; }
}

/* Donation input */
.emb-donation-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 6px;
    transition: border-color .15s;
    box-sizing: border-box;
}
.emb-donation-input:focus {
    border-color: #2563a8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37,99,168,.15);
}
