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

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

.tour-detail-hero {
    min-height: clamp(350px, 45vh, 500px);
    max-height: 50vh;
}

@media (min-width: 56rem) {
    .tour-detail-hero {
        min-height: clamp(550px, 65vh, 800px);
        max-height: none;
    }
}

.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--muli);
    font-weight: 700;
    font-size: var(--wp--preset--font-size--xxx-large);
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 2px rgba(0, 0, 0, 0.9);
}

/* Hero Meta Bar */
.tour-detail-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wp--preset--spacing--md);
    color: white;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

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

/* Hero Content - unused after Sprint 1 redesign, but kept for potential future use */

/* ==========================================================================
   Tour Map Image (Route Map) - Full Width
   ========================================================================== */

.wp-block-geodiscovery-tour-map-image .tour-map-image-wrapper {
    width: 100%;
}

.wp-block-geodiscovery-tour-map-image .gallery-item.tour-map-image-item {
    width: auto;
    flex: none;
}

/* Lightbox-Link umschließt das Bild — als Block, damit kein Inline-Baseline-Gap */
.wp-block-geodiscovery-tour-map-image .gallery-item.tour-map-image-item .glightbox {
    display: block;
    cursor: zoom-in;
}

.wp-block-geodiscovery-tour-map-image .gallery-item.tour-map-image-item img {
    max-width: 100%;
    max-height: 50vh;
    height: auto !important;
    width: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    display: block;
}

/* ==========================================================================
   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;
    }
}

/* ==========================================================================
   Hotel in Tagesverlauf
   ========================================================================== */

.day-item-hotel {
    margin-top: var(--wp--preset--spacing--sm);
    font-size: var(--wp--preset--font-size--sm);
}

.hotel-label {
    color: var(--wp--preset--color--contrast);
    font-weight: 600;
}

.hotel-link {
    color: var(--wp--preset--color--primary-blue);
    text-decoration: underline;
    cursor: pointer;
}

.hotel-link:hover {
    color: var(--wp--preset--color--light-blue);
}

/* ==========================================================================
   Hotel Modal
   ========================================================================== */

.hotel-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--wp--preset--spacing--md);
}

.hotel-modal[aria-hidden="true"] {
    display: none;
}

.hotel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.hotel-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hotel-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--wp--preset--color--primary-blue);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hotel-modal-close:hover {
    background: var(--wp--preset--color--light-blue);
    color: #fff;
}

.hotel-modal-body {
    max-height: 85vh;
    overflow-y: auto;
}

.hotel-modal-loading,
.hotel-modal-error {
    padding: var(--wp--preset--spacing--xl);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-modal-error {
    color: #dc3232;
}

.hotel-modal-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.hotel-modal-info {
    padding: var(--wp--preset--spacing--lg);
    background: #fff;
}

.hotel-modal-title {
    margin: 0 0 var(--wp--preset--spacing--sm);
    font-family: var(--wp--preset--font-family--headings);
    font-size: var(--wp--preset--font-size--x-large);
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
}

.hotel-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--sm);
    margin-bottom: var(--wp--preset--spacing--md);
    font-size: var(--wp--preset--font-size--sm);
}

.hotel-location {
    color: var(--wp--preset--color--secondary);
}

.hotel-stars {
    color: var(--wp--preset--color--warm-gold);
    letter-spacing: 1px;
}

.hotel-modal-description {
    margin-bottom: var(--wp--preset--spacing--md);
    color: var(--wp--preset--color--secondary);
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.6;
}

.hotel-modal-description p:last-child {
    margin-bottom: 0;
}

.hotel-modal-website {
    display: inline-block;
    color: var(--wp--preset--color--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: var(--wp--preset--spacing--xs) 0;
}

.hotel-modal-website:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Homepage Hero
   ========================================================================== */

.homepage-hero {
    position: relative;
    min-height: clamp(400px, 70vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* B12b Mai 2026: Mobile-Hero deutlich niedriger, damit erste Text-Zeile
   unter dem Hero ohne Scrollen sichtbar ist. */
@media (max-width: 35rem) {
    .homepage-hero {
        min-height: clamp(300px, 50vh, 500px);
    }
}

/* Kein Abstand zwischen Hero und folgender Section */
.homepage-hero + .section,
.homepage-hero + .wp-block-group.section {
    margin-top: 0 !important;
}

.homepage-hero-image,
.homepage-hero .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-hero--slider .hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.homepage-hero--slider .hero-slide.active {
    opacity: 1;
}

.homepage-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.homepage-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--wp--preset--color--white, #fff);
    padding: var(--wp--preset--spacing--lg, 2rem);
    max-width: 800px;
}

.homepage-hero-content h1 {
    /* Optik wie Alt-Site (.splide__text-wrapper): Muli, fett, weiß, dunkler Glow */
    font-family: var(--wp--preset--font-family--muli, Muli, Verdana, Arial, sans-serif);
    font-size: var(--wp--preset--font-size--xxx-large, clamp(2rem, 1.5rem + 2.5vw, 3rem));
    font-weight: 700;
    margin-bottom: var(--wp--preset--spacing--sm, 1rem);
    line-height: 1.4;
    color: #fff;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 2px rgba(0, 0, 0, 0.9);
}

.homepage-hero-content p {
    font-family: var(--wp--preset--font-family--muli, Muli, Verdana, Arial, sans-serif);
    font-size: var(--wp--preset--font-size--large, clamp(1rem, 0.9rem + 0.5vw, 1.25rem));
    font-weight: 700;
    margin-bottom: var(--wp--preset--spacing--lg, 2rem);
    color: #fff;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 2px rgba(0, 0, 0, 0.9);
}

.homepage-hero-buttons {
    display: flex;
    gap: var(--wp--preset--spacing--sm, 1rem);
    justify-content: center;
    flex-wrap: wrap;
}

/* Mehr Abstand wenn kein Subtitle vorhanden */
.homepage-hero-content h1 + .homepage-hero-buttons {
    margin-top: var(--wp--preset--spacing--lg, 2rem);
}

.homepage-hero-buttons br {
    display: none;
}

.homepage-hero-buttons .wp-element-button {
    padding: 0 var(--wp--preset--spacing--lg);
}

.homepage-hero-buttons .wp-element-button--outline {
    background: var(--wp--preset--color--primary-blue, #10218b);
    border: 2px solid var(--wp--preset--color--primary-blue, #10218b);
    color: var(--wp--preset--color--white, #fff);
}

.homepage-hero-buttons .wp-element-button--outline:hover {
    background: var(--wp--preset--color--green, #7fc41c);
    border-color: var(--wp--preset--color--green, #7fc41c);
    color: var(--wp--preset--color--white, #fff);
}

/* ==========================================================================
   Optional Buchbare Leistungen (Details/Summary Accordion)
   ========================================================================== */

.tour-optional-services {
    margin-top: var(--wp--preset--spacing--md, 1.5rem);
    border: 1px solid var(--wp--preset--color--light-gray, #e9ecef);
    border-radius: 4px;
    background: var(--wp--preset--color--off-white, #f8f9fa);
}

.tour-optional-services summary {
    padding: var(--wp--preset--spacing--sm, 0.75rem) var(--wp--preset--spacing--md, 1rem);
    cursor: pointer;
    font-weight: 600;
    color: var(--wp--preset--color--primary-blue, #10218b);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tour-optional-services summary::-webkit-details-marker {
    display: none;
}

.tour-optional-services summary::after {
    content: "▸";
    transition: transform 0.2s ease;
}

.tour-optional-services[open] summary::after {
    transform: rotate(90deg);
}

.tour-optional-services summary:hover {
    background: var(--wp--preset--color--light-gray, #e9ecef);
}

.optional-services-list {
    list-style: none;
    margin: 0;
    padding: 0 var(--wp--preset--spacing--md, 1rem) var(--wp--preset--spacing--md, 1rem);
}

.optional-service-item {
    padding: var(--wp--preset--spacing--sm, 0.75rem) 0;
    border-bottom: 1px solid var(--wp--preset--color--light-gray, #e9ecef);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.optional-service-item:last-child {
    border-bottom: none;
}

.optional-service-item .optional-title {
    font-weight: 500;
    color: var(--wp--preset--color--contrast, #333);
}

.optional-service-item .optional-price {
    font-weight: 600;
    color: var(--wp--preset--color--green, #7fc41c);
}

.optional-service-item .optional-desc {
    font-size: var(--wp--preset--font-size--small, 0.875rem);
    color: var(--wp--preset--color--black, #1a1a1a);
}

/* ==========================================================================
   Mitreisende gesucht - Listen-Layout
   ========================================================================== */

.travel-companions-list {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--lg, 2rem);
}

.travel-companion-item {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--lg, 2rem);
    padding: var(--wp--preset--spacing--md, 1.5rem);
    background: var(--wp--preset--color--white, #fff);
    border-radius: var(--wp--custom--border-radius--lg, 12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Desktop: Bild links, Content rechts */
@media (min-width: 48rem) {
    .travel-companion-item {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Bild-Container */
.travel-companion-image-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 48rem) {
    .travel-companion-image-wrapper {
        width: 400px;
    }
}

.travel-companion-image-wrapper a {
    display: block;
}

.travel-companion-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--wp--custom--border-radius--md, 8px);
    display: block;
}

.travel-companion-no-image {
    background: var(--wp--preset--color--light-gray, #e9ecef);
}

/* Content-Container */
.travel-companion-content {
    flex: 1;
    min-width: 0;
}

/* Header mit Titel und Datum */
.travel-companion-header {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--xs, 0.5rem);
    margin-bottom: var(--wp--preset--spacing--sm, 1rem);
}

.travel-companion-title {
    margin: 0;
    font-family: var(--wp--preset--font-family--muli, 'Muli', Verdana, Arial, sans-serif);
    font-size: var(--wp--preset--font-size--large, 1.25rem);
    font-weight: 700;
    color: var(--wp--preset--color--primary-blue, #10218b);
    line-height: 1.3;
}

.travel-companion-date {
    font-size: var(--wp--preset--font-size--small, 0.875rem);
    color: var(--wp--preset--color--black, #1a1a1a);
    white-space: nowrap;
}

/* Text-Container */
.travel-companion-text {
    margin-bottom: var(--wp--preset--spacing--md, 1.5rem);
    color: var(--wp--preset--color--contrast, #1a1a1a);
    line-height: 1.7;
}

.travel-companion-text p {
    margin: 0 0 var(--wp--preset--spacing--sm, 1rem) 0;
}

.travel-companion-text p:last-child {
    margin-bottom: 0;
}

/* Button */
.travel-companion-link {
    display: inline-block;
    background: var(--wp--preset--color--primary-blue, #10218b);
    color: var(--wp--preset--color--white, #fff);
    padding: var(--wp--preset--spacing--xs, 0.5rem) var(--wp--preset--spacing--md, 1.5rem);
    border-radius: var(--wp--custom--border-radius--md, 8px);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.travel-companion-link:hover {
    background: var(--wp--preset--color--green, #7fc41c);
    color: var(--wp--preset--color--white, #fff);
}

/* ==========================================================================
   Reviews-Badge (A2 — Google-Rezensionen Trust-Element)
   ========================================================================== */
.gdt-reviews-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4em;
    padding: var(--wp--preset--spacing--sm, 0.75rem) var(--wp--preset--spacing--md, 1rem);
    background: var(--wp--preset--color--off-white, #f8f9fa);
    border-radius: var(--wp--custom--border-radius--md, 8px);
    color: var(--wp--preset--color--black, #1a1a1a);
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gdt-reviews-badge:hover {
    background: var(--wp--preset--color--light-gray, #e9ecef);
    transform: translateY(-1px);
}

.gdt-reviews-badge__label {
    font-weight: 700;
    font-size: var(--wp--preset--font-size--medium, 1.125rem);
    color: var(--wp--preset--color--primary-blue, #10218b);
}

.gdt-reviews-badge__score {
    font-size: var(--wp--preset--font-size--medium, 1.125rem);
    font-weight: 600;
}

.gdt-reviews-badge__stars {
    color: #f59e0b;
    letter-spacing: 0.1em;
    font-size: var(--wp--preset--font-size--medium, 1.125rem);
}

.gdt-reviews-badge__source {
    font-weight: 600;
    color: var(--wp--preset--color--primary-blue, #10218b);
}

.gdt-reviews-badge__count {
    color: #666;
    font-size: var(--wp--preset--font-size--small, 1rem);
}

/* Kompakte Variante (für Tour-Detail oder kleine Sektionen) */
.gdt-reviews-badge--compact {
    padding: var(--wp--preset--spacing--xs, 0.5rem) var(--wp--preset--spacing--sm, 0.75rem);
    gap: 0.3em;
}

.gdt-reviews-badge--compact .gdt-reviews-badge__label,
.gdt-reviews-badge--compact .gdt-reviews-badge__score,
.gdt-reviews-badge--compact .gdt-reviews-badge__stars {
    font-size: var(--wp--preset--font-size--small, 1rem);
}

/* Sektion auf der Startseite — zentriert */
.gdt-reviews-badge-section {
    text-align: center;
}
