* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    padding: 16px;
}

.price-widget {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.widget-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.refresh-btn {
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.refresh-btn svg {
    transition: transform 0.3s ease;
}

.refresh-btn:active svg {
    transform: rotate(180deg);
}

.loading-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p, .error-state p {
    color: #6b7280;
    font-size: 14px;
}

.error-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.error-state button {
    margin-top: 16px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.error-state button:hover {
    background: #5a67d8;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 24px;
}

.price-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.price-card.discount-available {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.price-card.discount-available::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #10b981 transparent transparent;
}

.price-card.discount-available::after {
    content: '💰';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
}

.card-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.date-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.date-info .day-name {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.availability-badge.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.price-info {
    margin-bottom: 16px;
}

.main-price {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.price-details {
    font-size: 12px;
    color: #6b7280;
}

.price-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.extra-charges {
    color: #ef4444;
    font-weight: 500;
}

.tour-info {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.tour-count {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.last-updated {
    font-size: 12px;
    color: #6b7280;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    .price-widget {
        border-radius: 8px;
    }
    
    .widget-header {
        padding: 16px 20px;
    }
    
    .widget-header h2 {
        font-size: 18px;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }
    
    .price-card {
        padding: 16px;
    }
    
    .main-price {
        font-size: 20px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .widget-header {
        padding: 12px 16px;
    }
    
    .price-grid {
        padding: 12px;
    }
    
    .price-card {
        padding: 12px;
    }
}

