/**
 * Estilos del Frontend
 * Tour Pandora Admin - Widgets de Elementor
 */

/* ===========================
   TOUR CARD
   =========================== */
.tpa-tour-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tpa-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tpa-tour-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    /* 3:2 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tpa-tour-card__image,
.tpa-tour-card__image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpa-tour-card:hover .tpa-tour-card__image {
    transform: scale(1.08);
}

.tpa-tour-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 48px;
}

.tpa-tour-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff6b6b;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tpa-tour-card__discount {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

.tpa-tour-card__lightning {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.tpa-tour-card__favorite {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    color: #6b7280;
}

.tpa-tour-card__favorite:hover {
    background: white;
    transform: scale(1.1);
    color: #ef4444;
}

.tpa-tour-card__favorite svg {
    width: 20px;
    height: 18px;
}

.tpa-tour-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tpa-tour-card__title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

.tpa-tour-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tpa-tour-card__title a:hover {
    color: #3b82f6;
}

.tpa-tour-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tpa-tour-card__stars {
    display: flex;
    gap: 2px;
}

.tpa-star {
    font-size: 16px;
    line-height: 1;
}

.tpa-star--full {
    color: #fbbf24;
}

.tpa-star--half {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tpa-star--empty {
    color: #d1d5db;
}

.tpa-tour-card__rating-number {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.tpa-tour-card__reviews {
    color: #6b7280;
    font-size: 13px;
}

.tpa-tour-card__meta {
    margin-bottom: 16px;
}

.tpa-tour-card__duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.tpa-tour-card__duration svg {
    color: #3b82f6;
}

.tpa-tour-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.tpa-tour-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.tpa-tour-card__price-old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 14px;
}

.tpa-tour-card__price-current {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
}

.tpa-tour-card__price-label {
    color: #6b7280;
    font-size: 13px;
}

/* ===========================
   BOOKING SIDEBAR
   =========================== */
.tpa-booking-sidebar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.tpa-booking-sidebar__header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
}

.tpa-booking-sidebar__price-wrapper {
    position: relative;
}

.tpa-booking-sidebar__discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tpa-booking-sidebar__price-main {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.tpa-booking-sidebar__price-amount {
    font-size: 48px;
    font-weight: 800;
    display: inline-block;
    margin-left: 4px;
}

.tpa-booking-sidebar__price-old {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 18px;
    margin-bottom: 4px;
}

.tpa-booking-sidebar__price-label {
    font-size: 14px;
    opacity: 0.9;
}

.tpa-booking-sidebar__tabs {
    display: flex;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.tpa-booking-sidebar__tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tpa-booking-sidebar__tab--active {
    background: white;
    color: #1e40af;
}

.tpa-booking-sidebar__tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
}

.tpa-booking-sidebar__content {
    padding: 24px;
}

.tpa-booking-sidebar__tab-content {
    display: none;
}

.tpa-booking-sidebar__tab-content--active {
    display: block;
}

.tpa-booking-field {
    margin-bottom: 20px;
}

.tpa-booking-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.tpa-booking-field label svg {
    color: #3b82f6;
}

.tpa-booking-input,
.tpa-booking-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tpa-booking-input:focus,
.tpa-booking-textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.tpa-booking-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.tpa-counter-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tpa-counter-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.tpa-counter-btn:active {
    transform: scale(0.95);
}

.tpa-counter-input {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    padding: 0;
}

.tpa-booking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1e40af;
}

.tpa-booking-total__amount {
    font-size: 24px;
    font-weight: 800;
}

.tpa-booking-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.tpa-booking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

.tpa-booking-submit:active {
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .tpa-tour-card__title {
        font-size: 16px;
    }

    .tpa-tour-card__price-current {
        font-size: 20px;
    }

    .tpa-booking-sidebar {
        position: static;
    }

    .tpa-booking-sidebar__price-amount {
        font-size: 36px;
    }
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpa-tour-card,
.tpa-booking-sidebar {
    animation: fadeIn 0.4s ease-out;
}