/**
 * geoDiscovery Tours Plugin Frontend Styles
 *
 * @package GeoDiscoveryTours
 */

/* ==========================================================================
   Tour Hero Section (extends WordPress Cover Block)
   ========================================================================== */

.tour-detail-hero {
    min-height: 500px;
}

.tour-detail-hero--no-image {
    background: linear-gradient(135deg, var(--wp--preset--color--primary-blue) 0%, var(--wp--preset--color--light-blue) 100%);
}

/* Hero Slider - Images stacked for fade effect */
.tour-detail-hero .hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tour-detail-hero .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.tour-detail-hero .hero-slide.active {
    opacity: 1;
}

/* Hero Content - Title and Meta */
.tour-detail-hero .hero-content {
    text-align: center;
}

.tour-detail-hero .hero-content h1 {
    color: white;
    margin: 0 0 var(--wp--preset--spacing--md) 0;
    font-family: var(--wp--preset--font-family--headings);
    font-size: var(--wp--preset--font-size--xxx-large);
}

/* Hero Meta Bar */
.tour-detail-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wp--preset--spacing--md);
    color: white;
}

.tour-detail-hero .hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

/* Responsive */
@media (max-width: 35rem) {
    .tour-detail-hero {
        min-height: 400px;
    }

    .tour-detail-hero .hero-meta {
        flex-direction: column;
        gap: var(--wp--preset--spacing--xs);
    }
}

/* ==========================================================================
   My Account - Payment Status
   ========================================================================== */

/* Payment status badges in orders table */
.gdt-payment-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.gdt-payment-complete {
    background: #d4edda;
    color: #155724;
}

.gdt-payment-partial {
    background: #fff3cd;
    color: #856404;
}

.gdt-payment-pending {
    background: #f8d7da;
    color: #721c24;
}

.gdt-payment-na {
    color: #999;
}

/* Order details - deposit info section */
.gdt-order-deposit-info {
    margin-top: var(--wp--preset--spacing--lg, 2rem);
    padding: var(--wp--preset--spacing--md, 1.5rem);
    background: var(--wp--preset--color--off-white, #f8f9fa);
    border-radius: 8px;
}

.gdt-order-deposit-info h2 {
    margin: 0 0 var(--wp--preset--spacing--md, 1rem) 0;
    font-size: 1.25rem;
    color: var(--wp--preset--color--primary-blue, #10218b);
}

.gdt-deposit-detail-row {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--md, 1rem);
    padding: var(--wp--preset--spacing--sm, 0.75rem) 0;
    border-bottom: 1px solid var(--wp--preset--color--light-gray, #e9ecef);
}

.gdt-deposit-detail-row:last-of-type {
    border-bottom: none;
}

.gdt-deposit-label {
    flex: 1;
    font-weight: 500;
}

.gdt-deposit-label small {
    display: block;
    font-weight: 400;
    color: var(--wp--preset--color--gray, #666);
    font-size: 0.85rem;
    margin-top: 2px;
}

.gdt-deposit-value {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: right;
}

.gdt-deposit-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.gdt-status-paid {
    background: #d4edda;
    color: #155724;
}

.gdt-status-pending {
    background: #fff3cd;
    color: #856404;
}

.gdt-order-deposit-info .gdt-deposit-notice {
    margin: var(--wp--preset--spacing--md, 1rem) 0 0 0;
    padding: var(--wp--preset--spacing--sm, 0.75rem);
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
}

/* Inline deposit info in view-order */
.gdt-order-deposit-info-inline {
    margin-top: var(--wp--preset--spacing--md, 1rem);
    padding-top: var(--wp--preset--spacing--md, 1rem);
    border-top: 1px solid var(--wp--preset--color--light-gray, #e9ecef);
}

/* Responsive */
@media (max-width: 35rem) {
    .gdt-deposit-detail-row {
        flex-wrap: wrap;
    }

    .gdt-deposit-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .gdt-deposit-value {
        text-align: left;
    }
}

/* ==========================================================================
   Rating Icons (Schwierigkeit & Fitness)
   ========================================================================== */

.rating-icons {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    vertical-align: middle;
}

.rating-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

/* Tour Card Meta - Ratings */
.tour-card-meta .tour-meta-difficulty,
.tour-card-meta .tour-meta-fitness {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Tour Info Bar (Hero) */
.tour-meta-bar .tour-meta-difficulty,
.tour-meta-bar .tour-meta-fitness {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Booking Sidebar - Rating rows with flex space-between */
.booking-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive - smaller icons on mobile */
@media (max-width: 35rem) {
    .rating-icon {
        width: 1rem;
        height: 1rem;
    }

    .rating-icons {
        gap: 2px;
    }
}
