.all-tours-page {
    --tour-accent: var(--mainColor, #176b75);
    --tour-text: #1e293b;
    --tour-muted: #64748b;
    --tour-border: #e8edf3;
    padding: 28px 0 24px;
    color: var(--tour-text);
}

/* Hero */
.all-tours-page .all-tours-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 40px;
    border-radius: 22px;
    background: var(--tour-accent);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 55%);
    color: #fff;
}
.all-tours-page .all-tours-hero::before,
.all-tours-page .all-tours-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}
.all-tours-page .all-tours-hero::before { width: 260px; height: 260px; inset-inline-end: -60px; top: -90px; }
.all-tours-page .all-tours-hero::after { width: 160px; height: 160px; inset-inline-end: 140px; bottom: -90px; }
.all-tours-page .all-tours-hero h1 { position: relative; margin: 0 0 10px; font-size: 32px; font-weight: 800; color: #fff; }
.all-tours-page .all-tours-hero p { position: relative; margin: 0; max-width: 560px; font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .88); }

/* Sections */
.all-tours-page .all-tours-section { margin-top: 48px; scroll-margin-top: 120px; }
.all-tours-page .all-tours-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.all-tours-page .all-tours-section-head h2 {
    position: relative;
    margin: 0 0 6px;
    padding-inline-start: 14px;
    font-size: 23px;
    font-weight: 800;
}
.all-tours-page .all-tours-section-head h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 4px;
    background: var(--tour-accent);
}
.all-tours-page .all-tours-section-head p { margin: 0; padding-inline-start: 14px; color: var(--tour-muted); font-size: 14px; }
.all-tours-page .all-tours-count {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--tour-muted);
    font-size: 13px;
    white-space: nowrap;
}

/* Grid & cards */
.all-tours-page .all-tours-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.all-tours-page .all-tours-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--tour-border);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.all-tours-page .all-tours-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
    color: inherit;
    text-decoration: none;
}
.all-tours-page .all-tours-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}
.all-tours-page .all-tours-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .72) 0%, rgba(15, 23, 42, .1) 50%, rgba(15, 23, 42, 0) 100%);
}
.all-tours-page .all-tours-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.all-tours-page .all-tours-card:hover .all-tours-card-image img { transform: scale(1.06); }
.all-tours-page .all-tours-card-image h3 {
    position: absolute;
    z-index: 1;
    inset-inline: 16px;
    bottom: 14px;
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.all-tours-page .all-tours-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
}
.all-tours-page .all-tours-price { display: flex; flex-direction: column; gap: 4px; min-height: 46px; }
.all-tours-page .all-tours-price-label { color: var(--tour-muted); font-size: 12px; }
.all-tours-page .all-tours-price-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.all-tours-page .all-tours-price-value strong { font-size: 18px; font-weight: 800; color: var(--tour-accent); }
.all-tours-page .all-tours-price-value small { color: var(--tour-muted); font-size: 12px; }
.all-tours-page .all-tours-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f5f8fb;
    color: var(--tour-accent);
    font-size: 13px;
    font-weight: 700;
    transition: background .25s ease, color .25s ease;
}
.all-tours-page .all-tours-card:hover .all-tours-card-action { background: var(--tour-accent); color: #fff; }
.all-tours-page .all-tours-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 36px 20px;
    border: 1px dashed var(--tour-border);
    border-radius: 18px;
    background: #f8fafc;
    color: var(--tour-muted);
    text-align: center;
}
.all-tours-page a:focus-visible { outline: 3px solid var(--tour-accent); outline-offset: 4px; }

/* Newest tours (inline in allTours.tpl) */
.all-tours-recent {
    --tour-accent: var(--mainColor, #176b75);
    --tour-accent-2: var(--secondColor, #f1a131);
    margin: 56px 0 40px;
    color: #1e293b;
}
.all-tours-recent-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.all-tours-recent-head h2 {
    position: relative;
    margin: 0;
    padding-inline-start: 14px;
    font-size: 23px;
    font-weight: 800;
}
.all-tours-recent-head h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 4px;
    background: var(--tour-accent);
}
.all-tours-recent-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.all-tours-recent-tab {
    min-width: 96px;
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.all-tours-recent-tab:hover { border-color: var(--tour-accent); color: var(--tour-accent); }
.all-tours-recent-tab.is-active { border-color: var(--tour-accent); background: var(--tour-accent); color: #fff; }
.all-tours-recent-pane[hidden] { display: none; }
.all-tours-recent-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.3fr 1.4fr;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}
.all-tours-recent-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.all-tours-recent-row i { color: #94a3b8; }
.all-tours-recent-row--head {
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--tour-accent);
    color: #fff;
    font-size: 14px;
}
.all-tours-recent-row--head i { color: rgba(255, 255, 255, .85); }
.all-tours-recent-list { display: flex; flex-direction: column; gap: 10px; }
.all-tours-recent-list .all-tours-recent-row {
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font-size: 14px;
    text-decoration: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.all-tours-recent-list .all-tours-recent-row:hover {
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.all-tours-recent-name { font-weight: 700; }
.all-tours-recent-name i { color: var(--tour-accent); }
.all-tours-recent-transport img { width: 35px; height: 35px; object-fit: contain; }
.all-tours-recent-price { flex-wrap: wrap; }
.all-tours-recent-price strong { color: var(--tour-accent); font-size: 16px; font-weight: 800; }
.all-tours-recent-price small { color: #64748b; font-size: 12px; }
.all-tours-recent-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: #ffe4e4;
    color: #dc2626;
    font-size: 12px;
    font-style: normal;
}
.all-tours-recent-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    margin: 26px auto 0;
    padding: 12px 34px;
    border-radius: 12px;
    background: var(--tour-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}
.all-tours-recent-more:hover { background: var(--tour-accent-2); color: #fff; text-decoration: none; }
.all-tours-recent a:focus-visible,
.all-tours-recent button:focus-visible { outline: 3px solid var(--tour-accent); outline-offset: 3px; }
@media (max-width: 991px) {
    .all-tours-recent-row--head { display: none; }
    .all-tours-recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .all-tours-recent-list .all-tours-recent-row { grid-template-columns: 1fr 1fr; padding: 14px; }
    .all-tours-recent-name,
    .all-tours-recent-price { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .all-tours-recent { margin-top: 40px; }
    .all-tours-recent-head h2 { font-size: 20px; }
    .all-tours-recent-tabs { width: 100%; }
    .all-tours-recent-tab { flex: 1 1 auto; min-width: 0; padding: 7px 12px; font-size: 13px; }
    .all-tours-recent-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1199px) {
    .all-tours-page .all-tours-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .all-tours-page .all-tours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .all-tours-page .all-tours-hero { padding: 34px 28px; }
}
@media (max-width: 575px) {
    .all-tours-page { padding-top: 16px; }
    .all-tours-page .all-tours-hero { padding: 28px 20px; border-radius: 18px; }
    .all-tours-page .all-tours-hero h1 { font-size: 25px; }
    .all-tours-page .all-tours-section { margin-top: 36px; }
    .all-tours-page .all-tours-section-head h2 { font-size: 20px; }
    .all-tours-page .all-tours-grid { gap: 12px; }
    .all-tours-page .all-tours-card-image h3 { font-size: 16px; inset-inline: 12px; bottom: 10px; }
    .all-tours-page .all-tours-card-body { padding: 12px; gap: 10px; }
    .all-tours-page .all-tours-price-value strong { font-size: 15px; }
    .all-tours-page .all-tours-card-action { padding: 8px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .all-tours-recent-list .all-tours-recent-row { transition: none; transform: none !important; }
    .all-tours-page .all-tours-card,
    .all-tours-page .all-tours-card-image img,
    .all-tours-page .all-tours-card-action { transition: none; }
    .all-tours-page .all-tours-card:hover,
    .all-tours-page .all-tours-card:hover .all-tours-card-image img { transform: none; }
}
