/*!
 * Peter Tours – site styles
 * Former child-theme stylesheet (tables, tabs, booking form, tags, archive
 * pages …) plus the styles that were printed inline by its functions.php.
 * Header/home rules moved to core.css / home.css.
 */
:root {
    --primary: #f48712;
    --secondary: #7DD5E9;

}

h2 span {
    color: var(--e-global-color-primary);
}

body.single-product table {
    border: solid 2px #b5b2b2;
    border-radius: 12px !important;
    box-shadow: 2px 7px 20px #ddd;
}

body.single-product table td {
    border: solid 2px #b5b2b2 !important;
}

.rank-math-breadcrumb a {
    color: #ffffffd1;
}

.single-product .rank-math-breadcrumb a {
    color: #128bbf !important;
    font-size: 16px;
}

/* Target all tables within the content area */
table {
    width: fit-content;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    border: 1px solid #ddd;
    min-width: fit-content;
    min-height: fit-content;
    height: fit-content !important;
}

/* Table Header and Cell Styles */
table th,
table td,
table th,
table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
}

.forms-wrapper .logo {
    display: none !important;
}

span.sale-price * {
    color: #f17676;
}

.sticky_bg_dark.active_sticky:after {
    content: "";
    left: 0;
    width: 100%;
    position: absolute;
}

/* Subcategories Styles */

.wp-subcategories-container {
    margin-bottom: 20px;
}

.subcategories-list {
    list-style-type: none;
    padding-left: 0;
}

.subcategory-item {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 12px 24px;

    border-radius: 25px;
    cursor: pointer;
    transition: all 0.9s ease;
    background-color: var(--secondary)
}

.subcategory-item:hover,
.subcategory-item:focus {
    color: white;
    background-color: #f2f2f2;
}

.subcategory-item:hover>a {
    color: var(--secondary);

}

.subcategory-item::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%) scaleX(0);
    transition: transform 0.3s ease;
}

.subcategory-item:hover::after,
.subcategory-item:focus::after {
    transform: translateY(-50%) scaleX(1);
}

/* tabs */
.ova-tabs-product .tabs {
    margin-bottom: 5px;
}

.ov .ova-tabs-product .tabs div {
    transition: all 0.7s !important;
    border: solid 1px #002d40 !important;
}

.ova-tabs-product .tabs div:hover {
    background-color: #002d40 !important;
    color: #fff !important;
}

div#tour-description {
    padding-top: 20px;
}

/* book form */
form.form.booking-form button {
    background-color: var(--primary);
    color: #011c27 !important;
    font-size: 22px !important;
}

.ovabrw-resources.rental_item label,
.ovabrw-resources.rental_item bdi {
    color: #fff !important;
}

/* tags */
.product-tags-list {
    margin: 20px 0;
    padding: 0;
}

.product-tags ul {
    list-style: none;
    padding: 0;
}

.product-tags li {
    display: inline-block;
    margin: 10px;
}

.product-tags a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #111b19;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 7px 12px;
}

/* Hover effect */
.product-tags a:hover {
    background-color: #111b19;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.price-product .label>span {
    color: #fff;
}

body a.subcategory-link {
    color: #fff;
    text-decoration: none;
}

h2.ova-product-title {
    font-size: 18px !important;
    line-height: 1.5em !important;
}

form.woocommerce-cart-form table {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.woocommerce-cart-form__contents thead {
    width: 800px !important
}

.wc-block-cart__submit-button {
    background-color: #f48712 !important;
    color: #fff !important;
    border-radius: 12px;
    font-weight: 800;
}

ol.fbc-items .active,
.fbc-items li:nth-last-of-type(2) .fbc-separator {
    display: none !important
}

div#ova-tour-review {
    display: block !important;
}

@media (max-width: 768px) {
    .subcategory-item {
        display: block;
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 468px) {
    .ova-tabs-product .tabs {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 40px;
        justify-content: center;
    }

    .tabs div {
        margin: 5px !important;
        border: solid 1px var(--secondary) !important;
        text-align: center;
        padding: 6px 5px !important;
        font-size: 75% !important;
        text-transform: capitalize !important;
    }
}

/* =====================================================
   ULTRA MODERN PRODUCT TAG ARCHIVE STYLES
   ===================================================== */
.ultra-modern-tag-archive {
    margin-top: -49px;
}
/* Hero Section */
.ultra-modern-tag-archive {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hero Section - Parallax & Modern */
.tag-hero-section {
    position: relative;
    min-height: 80vh;
    /* Full viewport height feeling */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Simple CSS Parallax */
    background-color: #002d40;
    /* Fallback color */
}

/* Dynamic Gradient Overlay */
.tag-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 45, 64, 0.3) 0%,
            rgba(0, 45, 64, 0.6) 50%,
            rgba(0, 45, 64, 0.95) 100%);
    z-index: 1;
}

/* Pattern Overlay */
.tag-hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path d="M1 3h1v1H1V3zm2-2h1v1H3V1z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
}

@keyframes floatPattern {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

.tag-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
    margin-top: -60px;
    /* Slight offset up */
}

/* Typography Improvements */
.tag-hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 30px 0;
    letter-spacing: -2px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tag-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Initial state */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.3s;
}

.delay-300 {
    animation-delay: 0.5s;
}

/* Scroll Indicator */
.tag-hero-scroll-indicator {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

h1.tag-hero-title.fade-in-up.delay-100 {
    color: #fff;
    font-size: 40px !important;
}
/* Curve Divider */
.hero-bottom-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-bottom-curve svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Stats */
.tag-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 40px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f48712;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Products Section - Clean White */
.tag-products-section {
    background: #ffffff !important;
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.tag-products-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Description */
.ultra-modern-description {
    margin: -140px auto 60px auto;
    /* Overlap hero slightly */
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.description-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 400;
}

.description-content h2,
.description-content h3 {
    color: #002d40;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.description-content p {
    margin-bottom: 1.5em;
}

/* Ultra Modern Grid */
.ultra-modern-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Product Card */
.ultra-product-card {
    perspective: 1000px;
}

.product-card-inner {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 45, 64, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 45, 64, 0.05);
}

.product-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 45, 64, 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-inner:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 45, 64, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-inner:hover .product-overlay {
    opacity: 1;
}

.view-tour-btn {
    background: #f48712;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 135, 18, 0.4);
}

.product-card-inner:hover .view-tour-btn {
    transform: translateY(0);
}

.view-tour-btn:hover {
    background: #e07608;
    box-shadow: 0 6px 20px rgba(244, 135, 18, 0.5);
}

/* Product Info */
.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.product-title a {
    color: #002d40;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #f48712;
}

.product-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.product-duration svg {
    color: #f48712;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #002d40;
}

.product-price .woocommerce-Price-amount {
    color: #f48712;
}

.product-price del {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .tag-hero-section {
        min-height: 60vh;
    }

    .tag-hero-title {
        font-size: 2.5rem;
    }

    .ultra-modern-description {
        margin: -80px 20px 40px 20px;
        /* Reduced overlap on mobile */
        padding: 12px;
    }

    .tag-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat-item {
        padding: 15px 30px;
    }

    .ultra-modern-products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card-inner {
        border-radius: 16px;
    }
}

/* Hide default WooCommerce elements on tag pages */
.ultra-modern-tag-archive .woocommerce-result-count,
.ultra-modern-tag-archive .woocommerce-ordering,
.ultra-modern-tag-archive .woocommerce-products-header {
    display: none;
}

.ultra-modern-tag-archive .woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
}

.ultra-modern-tag-archive .woocommerce-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.ultra-modern-tag-archive .woocommerce-pagination a,
.ultra-modern-tag-archive .woocommerce-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #ffffff;
    color: #002d40;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ultra-modern-tag-archive .woocommerce-pagination a:hover,
.ultra-modern-tag-archive .woocommerce-pagination .current {
    background: #f48712;
    color: #ffffff;
}


/* ------------------------------------------------------------------
 * Category archive description ("Weiterlesen")
 * ------------------------------------------------------------------ */
.term-description-container { margin: 20px 0; }
.term-description-excerpt { font-size: 16px; margin-bottom: 10px; }
.term-description-full { font-size: 16px; margin-top: 10px; }

.pt-kit .load-more-description {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .3s ease;
}

.pt-kit .load-more-description:hover { background-color: #005a87; }

.term-description { position: relative; }
.term-description .more-text { display: none; }

.pt-kit .read-more-button {
    display: block;
    background-color: #0073e6;
    color: #fff;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.pt-kit .read-more-button:hover { background-color: #005bb5; }

/* ------------------------------------------------------------------
 * Misc helpers carried over from the child theme
 * ------------------------------------------------------------------ */
.copyrights {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: space-around;
    flex-direction: row-reverse;
}

.hide { display: none !important; }

/* Related travels fallback grid ([custom_related_travels]) */
.related-travels-container:not(.owl-carousel) { display: flex !important; flex-wrap: wrap; gap: 20px; }
.related-travels-container:not(.owl-carousel) .related-travel-item { flex: 1 1 calc(33.333% - 20px); max-width: calc(33.333% - 20px); }

@media (max-width: 768px) {
    .related-travels-container:not(.owl-carousel) .related-travel-item { flex-basis: 100%; max-width: 100%; }
}

/* Accessibility: readable crossed-out prices (#999 had 2.8:1 on white). */
.ova-product-wrapper-price .ova-product-price .old-product-price,
.ova-product-wrapper-price .ova-product-price .old-product-price bdi { color: #767676; }
/* Visible keyboard focus for the guests +/- controls and cards. */
.guests-icon[role="button"]:focus-visible,
.pt-card-link:focus-visible,
.add_to_wishlist:focus-visible { outline: 3px solid #026874; outline-offset: 2px; }

/* Wide tables in articles / tour texts: scroll sideways on phones instead of being cut off. */
@media (max-width: 767px) {
	.post-content table,
	.entry-content table,
	.content-product-item table,
	.pt-tag-article__body table,
	.description-content table {
		display: block;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Related tours (tag pages, blog posts). */
.pt-related-tours { margin: 48px 0 8px; clear: both; }
.pt-related-tours__title { margin: 0 0 24px; font-size: 28px; line-height: 1.25; color: #002D40; }
.pt-related-tours .woocommerce ul.products.pt-related-tours__grid,
.pt-related-tours ul.products.pt-related-tours__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pt-related-tours ul.products.pt-related-tours__grid::before,
.pt-related-tours ul.products.pt-related-tours__grid::after { display: none; }
.pt-related-tours ul.products.pt-related-tours__grid > .ova-product {
	float: none;
	width: auto !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.pt-related-tours__grid .ova_foot_product { display: flex; flex-direction: column; flex: 1 1 auto; }
.pt-related-tours__grid .ova-product-review-and-price { margin-top: auto; }
/* Narrow blog column: two cards per row. */
.post-content .pt-related-tours ul.products.pt-related-tours__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) {
	.pt-related-tours ul.products.pt-related-tours__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.pt-related-tours ul.products.pt-related-tours__grid,
	.post-content .pt-related-tours ul.products.pt-related-tours__grid { grid-template-columns: minmax(0, 1fr); }
	.pt-related-tours__title { font-size: 24px; }
}
.pt-related-tours h2.pt-related-tours__title { color: #002D40 !important; }
