/* Inner pages: tour, post, reserve, search, visa, profile */

.page-content {
    padding-block: var(--section-gap);
}

.content-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    margin-bottom: var(--section-gap);
}

.content-card--flush {
    padding: 0;
    overflow: hidden;
}

.content-card .textBody {
    line-height: 1.9;
    color: var(--text-primary);
}

.content-card .textBody img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.content-card h1,
.content-card .h1 {
    color: var(--brand-primary);
    font-weight: 700;
}

.breadcrumbBlock {
    margin-bottom: 1rem;
}

.breadcrumbTour,
.breadcrumb {
    background: var(--surface-muted) !important;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-soft);
}

.breadcrumb-item a {
    color: var(--brand-accent);
}

.indextour-show-page {
    padding-block: var(--section-gap);
}

.indextour-show-tour,
.card-boxTour,
.history-box {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.indextour-show-tour:hover,
.card-boxTour:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.subjectSingle h1,
.entry-title {
    color: var(--brand-primary);
    font-weight: 700;
}

.content-card__header {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-accent-light);
}

#category .card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    overflow: hidden;
}

#category .card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

#category .card-title a {
    color: var(--brand-primary);
}

.card-contactUs {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.reserve-step-card,
.tour-detail-card,
.blog-card,
.blog-article,
.visa-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    padding: 1.5rem;
}
.reserve-progress .nav-link.active,
.reserve-progress .step-active {
    background-color: var(--brand-primary);
    color: var(--text-inverse);
    border-color: var(--brand-primary);
}

.reserve-progress .nav-link {
    color: var(--brand-primary);
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.tour-price-box,
.price-box {
    background: var(--surface-muted);
    border-radius: var(--radius-md);
    border-right: 4px solid var(--brand-accent);
    padding: 1rem 1.25rem;
}

.tour-gallery img,
.post-content img {
    border-radius: var(--radius-md);
}

.breadcrumb {
    background: var(--surface-muted);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.blog-list .card,
.archive-list .card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    overflow: hidden;
}

.blog-list .card:hover,
.archive-list .card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.visa-archive .card-title,
.blog-list .card-title {
    color: var(--brand-primary);
    font-weight: 700;
}

.search-filters {
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-soft);
}

.search-filters .btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.search-filters .btn-primary:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.profile-sidebar .nav-link.active {
    background-color: var(--brand-accent-light);
    color: var(--brand-accent);
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.profile-sidebar .nav-link {
    color: var(--brand-primary);
}

.invoice-box {
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.alert-success {
    border-color: var(--brand-accent);
}

/* Replace legacy inline brand colors */
svg [fill="#14244b"],
svg [stroke="#14244b"] {
    fill: var(--brand-primary);
    stroke: var(--brand-primary);
}

svg [fill="#ee3c24"] {
    fill: var(--brand-accent);
}

@media (max-width: 767px) {
    .reserve-step-card,
    .tour-detail-card {
        padding: 1rem;
    }
}

/* ---- Item comments (posts, tours, etc.) ---- */
.item-comments {
    background: var(--surface, #fff);
    border: 1px solid var(--border-soft, rgba(20, 36, 75, 0.1));
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}

.item-comments__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-soft, rgba(20, 36, 75, 0.1));
    background: var(--surface-muted, #f5f7fb);
}

.item-comments__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #14244b;
}

.item-comments__body {
    padding: 1.25rem;
}

.item-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.item-comments__item {
    padding: 0.9rem 1rem;
    background: var(--surface-muted, #f5f7fb);
    border-radius: var(--radius-sm, 8px);
    border-right: 3px solid var(--brand-accent, #f26522);
}

.item-comments__item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.45rem;
}

.item-comments__author {
    color: #14244b;
    font-size: 0.95rem;
}

.item-comments__date {
    font-size: 0.78rem;
    margin-inline-start: auto;
}

.item-comments__text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #334155;
    white-space: pre-wrap;
}

.item-comments__replies {
    margin-top: 0.75rem;
    padding-right: 0.75rem;
    border-right: 2px solid rgba(20, 36, 75, 0.15);
}

.item-comments__reply {
    padding: 0.5rem 0.65rem;
    background: #fff;
    border-radius: 6px;
    margin-top: 0.4rem;
    font-size: 0.88rem;
}

.item-comments__form-wrap {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(20, 36, 75, 0.08);
}

.item-comments__form-title {
    font-weight: 700;
    color: #14244b;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.item-comments__rate-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.item-comments__rate-option {
    cursor: pointer;
    margin: 0;
}

.item-comments__rate-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.item-comments__rate-option span {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 36, 75, 0.15);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #14244b;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.item-comments__rate-option input:checked + span {
    background: #14244b;
    border-color: #14244b;
    color: #fff;
}

.item-comments__submit {
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-weight: 700;
}

.item-comments__alert {
    border-radius: 8px;
}

.tour-detail-page .item-comments {
    border: none;
    border-radius: 0;
}

.tour-detail-page .item-comments__header {
    background: transparent;
    padding: 1rem 1.5rem 0;
    border-bottom: 1px solid rgba(20, 36, 75, 0.08);
}

.tour-detail-page .item-comments__body {
    padding: 1rem 1.5rem 1.5rem;
}

