/* =========================================================
   Tiqets Distributor – Stylesheet
   Font: Verdana (matches colosseum-rome.it theme)
   Brand colors: #931b31 (dark red), #ffc233 (gold)
   ========================================================= */

/* ---------------------------------------------------------
   Product Card — outer <a> tag is the entire clickable card
   --------------------------------------------------------- */
.tiqets-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    font-family: Verdana, Geneva, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
}

/* Fixed height only on desktop/tablet — matches the original Tiqets widget,
   which also truncates title/tagline rather than growing the card. */
@media (min-width: 768px) {
    .tiqets-product-card {
        height: 420px;
    }
}

.tiqets-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* Image area */
.tiqets-product-card__image-wrap {
    position: relative;
    width: 100%;
    height: 169px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0; /* card's overflow:hidden was doing this before; image-wrap now handles its own corner clipping */
    background: #f0f0f0;
}

.tiqets-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.tiqets-product-card:hover .tiqets-product-card__image {
    transform: scale(1.04);
}

/* Rating overlay — bottom left of image */
.tiqets-product-card__rating {
    position: absolute;
    bottom: 8px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(2px);
    border-radius: 4px;
    padding: 3px 7px;
    z-index: 2;
}

.tiqets-product-card__star {
    display: flex;
    line-height: 1;
}

.tiqets-product-card__rating-avg {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.tiqets-product-card__rating-total {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: #777;
}

/* Discount badge */
.tiqets-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #931b31;
    color: #fff;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Image credit */
.tiqets-product-card__credit {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Body */
.tiqets-product-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Tagline */
.tiqets-product-card__tagline {
    margin: 0 0 8px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(14px * 1.4 * 3); /* always reserve 3 lines so card content height is identical regardless of tagline length */
}

/* City label */
.tiqets-product-card__city {
    margin: 0 0 8px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #595959;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tiqets-product-card__promo::before {
    content: '•';
    color: #595959;
    margin-right: 6px;
    font-weight: 400;
}

.tiqets-product-card__promo {
    color: #931b31;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Title */
.tiqets-product-card__title {
    margin: 0 0 12px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #931b31;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(15px * 1.3 * 3); /* always reserve 3 lines so card content height is identical regardless of title length */
}

.tiqets-product-card:hover .tiqets-product-card__title {
    color: #931b31;
    text-decoration: underline;
}

/* Keyboard focus outline for accessibility */
.tiqets-product-card:focus {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

.tiqets-product-card:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

/* Price block — pinned to the bottom. Title/tagline above always reserve their
   max line-count height (see those rules), so every card's content block is
   identical and this auto-margin computes to the same gap on every card. */
.tiqets-product-card__price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.tiqets-product-card__price-row1 {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.tiqets-product-card__from {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: #595959;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.tiqets-product-card__prediscount {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #333333;
    text-decoration: line-through !important;
    font-style: normal;
}

.tiqets-product-card__amount {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #931b31;
}

/* no longer used */
.tiqets-product-card__price-top { display: none; }

/* ---------------------------------------------------------
   Calendar
   --------------------------------------------------------- */
.tiqets-calendar {
    max-width: 300px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: Verdana, Geneva, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .tiqets-calendar {
        height: 640px;
    }
}

.tiqets-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #931b31;
    color: #fff;
}

/* Hero: Bild + Infobar */
.tiqets-calendar__hero {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.tiqets-calendar__hero-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.tiqets-calendar__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.tiqets-calendar__hero:hover .tiqets-calendar__hero-img {
    transform: scale(1.03);
}

.tiqets-calendar__hero-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.tiqets-calendar__hero-credit {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 1px 4px;
    border-radius: 3px;
}

.tiqets-calendar__hero-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #931b31;
    color: #fff;
    gap: 10px;
}

.tiqets-calendar__hero-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tiqets-calendar__hero-title {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.tiqets-calendar__hero-rating {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    gap: 3px;
}

.tiqets-calendar__hero-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.tiqets-calendar__hero-from {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
}

.tiqets-calendar__hero-price strong {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

/* Nav-Bar: hell mit schwarzem Text */
.tiqets-calendar__nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.tiqets-calendar__month-label {
    font-size: 14px;
    font-weight: 700;
    font-family: Verdana, Geneva, sans-serif;
    color: #111;
}

.tiqets-calendar__nav {
    background: none;
    border: none;
    color: #333;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
    border-radius: 3px;
    transition: background .15s;
}

.tiqets-calendar__nav:hover:not(:disabled) {
    background: rgba(0,0,0,.08);
}

.tiqets-calendar__nav:disabled {
    opacity: .3;
    cursor: default;
}

/* Grid */
.tiqets-calendar__grid-wrapper {
    padding: 10px 12px 4px;
    flex: 1;
}

.tiqets-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #595959;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.tiqets-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* CTA Button */
.tiqets-calendar__cta-wrap {
    padding: 10px 12px 12px;
    flex-shrink: 0;
}

.tiqets-calendar__cta {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: #931b31;
    color: #ffc233 !important;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-sizing: border-box;
}

.tiqets-calendar__cta:hover {
    background: #931b31;
    color: #ffc233 !important;
    text-decoration: none;
}

.tiqets-calendar__cta:focus-visible {
    outline: 3px solid #ffc233;
    outline-offset: 2px;
}

.tiqets-calendar__hero:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

.tiqets-calendar__day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    border-radius: 4px;
    cursor: default;
    text-decoration: none;
    color: #333;
}

.tiqets-calendar__day--empty { background: transparent; }

.tiqets-calendar__day--past { color: #949494; background: transparent; }

/* Kein Hintergrund, alle klickbaren Tage normal */
.tiqets-calendar__day--high,
.tiqets-calendar__day--low {
    background: transparent;
    color: #1a1a1a;
    font-weight: 400;
}

a.tiqets-calendar__day--high,
a.tiqets-calendar__day--low {
    cursor: pointer;
    transition: background .15s;
}

a.tiqets-calendar__day--high:hover,
a.tiqets-calendar__day--low:hover {
    background: #931b31;
    color: #fff !important;
    text-decoration: none;
}

span.tiqets-calendar__day--high,
span.tiqets-calendar__day--low {
    color: #767676;
    cursor: default;
}

.tiqets-calendar__day--unknown { color: #767676; background: transparent; }

.tiqets-calendar__day--today {
    outline: 2px solid #931b31;
    outline-offset: -2px;
}

.tiqets-calendar__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #999;
    font-family: Verdana, Geneva, sans-serif;
}

.tiqets-calendar__legend { display: none; }

.tiqets-calendar__legend-high,
.tiqets-calendar__legend-low {
    display: none;
}

/* ---------------------------------------------------------
   Explore Widget — compact tag links
   --------------------------------------------------------- */
.tiqets-explore {
    font-family: Verdana, Geneva, sans-serif;
    max-width: 100%;
}

.tiqets-explore__title {
    margin: 0 0 14px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.tiqets-explore__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.tiqets-explore__tag {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #ddd;
    border-radius: 22px;
    background: #fff;
    color: #1a1a2e;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 17px;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}

.tiqets-explore__tag:hover {
    border-color: #931b31;
    color: #931b31;
    background: #fff;
    text-decoration: none;
}

.tiqets-explore__tag:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
    border-color: #931b31;
}

.tiqets-explore__footer-link {
    display: inline-block;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #931b31;
    text-decoration: none;
}

.tiqets-explore__footer-link:hover {
    color: #931b31;
    text-decoration: underline;
}

.tiqets-explore__footer-link:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

/* Explore Widget — cards display mode (3-across grid, reuses .tiqets-product-card) */
.tiqets-explore__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}

.tiqets-explore__cards .tiqets-product-card {
    max-width: none;
    height: auto;
}

@media (max-width: 900px) {
    .tiqets-explore__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tiqets-explore__cards {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Affiliate Disclosure Notice
   --------------------------------------------------------- */
.tiqets-affiliate-notice {
    font-family: Verdana, Geneva, sans-serif;
    color: #595959;
    margin: 16px 0;
}

.tiqets-affiliate-notice--top {
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 14px;
    background: #f7f7f7;
    border-left: 3px solid #931b31;
    border-radius: 3px;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title {
    cursor: pointer;
    font-weight: 700;
    color: #931b31;
    list-style: none;
    outline: none;
    user-select: none;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title::-webkit-details-marker {
    display: none;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title::after {
    content: '▾';
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    transition: transform .15s ease;
}

.tiqets-affiliate-notice--top[open] .tiqets-affiliate-notice__title::after {
    transform: rotate(180deg);
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title:focus-visible {
    outline: 2px solid #931b31;
    outline-offset: 2px;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__body {
    margin-top: 6px;
    color: #595959;
}

.tiqets-affiliate-notice--footer {
    font-size: 11px;
    line-height: 1.5;
    margin: 8px 0;
}

.tiqets-affiliate-notice--footer a {
    color: inherit;
    text-decoration: underline;
}

.tiqets-affiliate-notice--footer a:hover {
    color: #931b31;
}

/* =========================================================
   Tiqets Discovery Widget (server-side card grid)
   Colors use a CSS variable with a neutral fallback — override
   --tiqets-accent to match city-pass.it's actual brand color.
   ========================================================= */

.tiqets-discovery {
    font-family: Verdana, Geneva, sans-serif;
    margin: 24px 0;
    --tiqets-accent: #1a73e8;
}

.tiqets-discovery__heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: inherit;
}

.tiqets-discovery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start; /* don't let CSS Grid's default row-stretch force cards in the same row to equal the tallest one's height */
    gap: 16px;
    margin-top: 12px;
}

/* Single-card variant — e.g. [tiqets_discovery set="italy" count="1"].
   Collapses to one full-width card on EVERY screen size (not just mobile),
   so no separate "italy_1"-style slug is needed for a single-card layout. */
.tiqets-discovery__grid:has(.tiqets-product-card:only-child) {
    grid-template-columns: 1fr;
}
.tiqets-discovery__grid:has(.tiqets-product-card:only-child) .tiqets-product-card {
    height: auto;
    max-width: none;
}

.tiqets-discovery__grid .tiqets-product-card {
    min-width: 0; /* allow grid cells to shrink below the card's content width */
    max-width: none; /* override the shared 300px cap so cards fill their grid column evenly */
    height: 420px; /* fixed on desktop/tablet; title/tagline reserve max-line height above so this fits with no leftover gap discrepancy between cards — overridden to auto on mobile below */
}

/* Mobile: only the first card, full-width, height sized to content */
@media (max-width: 767px) {
    .tiqets-discovery__grid {
        grid-template-columns: 1fr;
    }
    .tiqets-discovery__grid .tiqets-product-card {
        height: auto;
    }
    .tiqets-discovery__grid .tiqets-product-card:nth-child(n+2) {
        display: none;
    }
}

.tiqets-discovery__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tiqets-accent);
    text-decoration: none;
}

.tiqets-discovery__footer-link:hover {
    text-decoration: underline;
}

.tiqets-discovery__footer-icon {
    flex-shrink: 0;
}
