/* ── Tour Grid Styles ────────────────────────────────────────── */
.tour-grid-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 30px 0;
    box-sizing: border-box;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    box-sizing: border-box;
    width: 100%;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) and (min-width: 768px) {
    .tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .tour-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* ── Tour Card ───────────────────────────────────────────────── */
.tour-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.35s ease;
    position: relative;
    z-index: 1;
    will-change: transform, box-shadow;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    z-index: 10;
}

/* ── Card Media ──────────────────────────────────────────────── */
.tour-card-media {
    position: relative;
    width: 100%;
    height: 225px;
    background: #f1f5f9;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.tour-card-media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

.tour-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, filter;
}

.tour-card:hover .tour-card-img {
    transform: translate3d(0, 0, 0) scale(1.08);
    filter: brightness(1.03);
}

/* Badge */
.tour-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
}

/* ── Card Body ───────────────────────────────────────────────── */
.tour-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.tour-card-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tour-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tour-card-title a:hover {
    color: #ca8a04;
}

/* ── Price after title (Red & Prominent) ─────────────────────── */
.tour-card-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 10px 0;
    min-width: 0;
}

.tour-card-price-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

.tour-card-price-val {
    font-size: 22px;
    font-weight: 800;
    color: #dc2626; /* Vibrant Premium Red */
    line-height: 1;
}

/* ── Pickup Locations (From: Location 1, 2, 3...) ───────────── */
.tour-card-locations {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0284c7;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 0 0 14px 0;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.35;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tour-card-locations:hover,
.tour-card-locations:focus {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    border-left-color: #0284c7;
}

.tour-card-duration-box {
    border-left-color: #ca8a04;
    margin-bottom: 8px;
}

.tour-card-duration-box:hover,
.tour-card-duration-box:focus {
    background-color: #fefce8;
    border-color: #fef08a;
    border-left-color: #ca8a04;
}

.tour-loc-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.tour-loc-text {
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 0%;
    display: block;
}

/* ── Rich Tooltip ────────────────────────────────────────────── */
.tour-loc-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: max-content;
    max-width: 280px;
    min-width: 180px;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    box-sizing: border-box;
}

.tour-loc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.tour-card-locations:hover .tour-loc-tooltip,
.tour-card-locations:focus .tour-loc-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.tour-tooltip-header {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tour-tooltip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tour-tooltip-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #f8fafc;
    line-height: 1.35;
    text-align: left;
}

.tour-tooltip-dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    background: #38bdf8;
    border-radius: 50%;
}

/* ── Tour Highlights (3 Bullet points) ───────────────────────── */
.tour-card-highlights {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.tour-card-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
}

.tour-highlight-icon {
    display: inline-block;
    color: #16a34a; /* Clean Green Tick */
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    flex-shrink: 0;
}

.tour-highlight-text {
    flex: 1;
}

.tour-card-description {
    margin: 0 0 18px 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card Footer & Button ────────────────────────────────────── */
.tour-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.tour-card-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background-color: #000000;
    color: #ffffff !important;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

.tour-card-btn:hover {
    background-color: #1f2937;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* ── Tour Grid Pagination ────────────────────────────────────── */
.tour-grid-pagination {
    margin: 40px auto 10px auto;
    text-align: center;
    width: 100%;
}

.tour-grid-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-grid-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.tour-grid-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tour-grid-pagination a.page-numbers:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tour-grid-pagination span.page-numbers.current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tour-grid-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #94a3b8;
}

/* ── Categorized Multi-Day Tour Sections ────────────────────────── */
.multiday-grid-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.multiday-category-section {
    width: 100%;
    margin-bottom: 56px;
    scroll-margin-top: 100px;
    box-sizing: border-box;
    position: relative;
}

.multiday-category-section:last-child {
    margin-bottom: 10px;
}

.multiday-category-header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.multiday-category-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    padding-left: 14px;
    border-left: 4.5px solid #eab308;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.multiday-category-desc {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0 0;
    padding-left: 18px;
    line-height: 1.55;
    max-width: 800px;
}

@media (max-width: 1024px) {
    .multiday-category-section {
        margin-bottom: 48px;
        scroll-margin-top: 90px;
    }

    .multiday-category-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .multiday-category-section {
        margin-bottom: 40px;
        scroll-margin-top: 80px;
    }

    .multiday-category-header {
        margin-bottom: 18px;
    }

    .multiday-category-title {
        font-size: 18px;
        padding-left: 12px;
        border-left-width: 4px;
    }

    .multiday-category-desc {
        font-size: 13px;
        padding-left: 16px;
    }
}

