/* Home No Header/Footer
 * Styles moved from style.css (lines ~13–~240).
 * Template: page-home-no-header-footer.php
 */

body.home-no-header-footer {
    margin: 0;
    background: rgb(var(--color-bg-section));
}

.home-page {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px 40px;
    font-size: 16px;
    line-height: 1.6;
    font-kerning: normal;
}

.home-split {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 8px;
    align-items: stretch;
}

.home-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgb(var(--color-text-dark));
}

.home-video-embed iframe,
.home-video-embed .home-video-placeholder,
.home-video-embed .home-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-video-embed .home-video-poster {
    object-fit: cover;
}

.home-video-embed .home-video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 1;
}

.home-video-embed .home-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.home-video-embed .home-video-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 24px 0 24px 40px;
    border-color: transparent transparent transparent rgb(var(--color-white));
    margin-left: 8px;
}

.home-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--color-white));
    font-size: 16px;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.home-gallery-grid--two {
    grid-template-columns: 1fr;
}

.home-gallery-item {
    position: relative;
    padding: 0;
    border: none;
    cursor: pointer;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-gallery-rotator {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-gallery-rotating-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.home-gallery-rotating-image.is-active {
    opacity: 1;
}

.home-gallery-item.is-large {
    grid-column: auto;
    grid-row: auto;
}

.home-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.85),
        transparent 40%
    );
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px;
    color: rgb(var(--color-white));
    font-size: 13px;
}

.home-gallery-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    font-size: 12px;
}

.home-gallery-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    font-size: 12px;
}

.home-gallery-counter svg {
    width: 14px;
    height: 14px;
}

.home-gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgb(var(--color-text-dark));
    height: 360px;
}

.home-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-gallery-main-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: rgb(var(--color-white));
}

.home-gallery-main-caption h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.home-gallery-main-caption p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.home-gallery-empty {
    padding: 24px;
    border: 1px dashed rgb(var(--color-border-dashed));
    border-radius: 12px;
    color: rgb(var(--color-text-body));
    text-align: center;
}

.home-gallery-thumbs {
    z-index: 2;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 3px 3px 3px;
}

.home-gallery-thumbs button {
    min-width: 80px;
    border: none;
    padding: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
}

.home-gallery-thumbs button.is-active {
    opacity: 1;
    outline: 2px solid rgb(var(--color-accent));
}

.home-gallery-thumbs img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    display: block;
}

.home-gallery-modal .home-gallery-main {
    width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: transparent;
}

body.home-gallery-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .home-split {
        grid-template-columns: 1fr;
    }
    .home-gallery-grid--two {
        grid-template-columns: 1fr 1fr !important;
    }
    .home-gallery-item {
        height: 20vh;
    }
}

@media (max-width: 640px) {
    .home-page {
        margin: 12px auto;
        padding: 0 12px 24px;
    }

    .home-split {
        gap: 12px;
    }

    .home-booking-bar {
        margin-top: 12px;
    }

    .home-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: unset;
        height: auto;
    }

    .home-gallery-item {
        height: 110px;
    }

    .home-gallery-main {
        height: 320px;
    }
}

.home-booking-bar {
    margin-top: 8px;
    /* background: rgb(var(--color-white)); */
    border-radius: 16px;
    padding: 8px;
    /* border: 1px solid rgb(var(--color-border-light)); */
    /* box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12); */
    /* transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); */
    position: relative;
    z-index: 10;
}

.home-workflow {
    margin-top: clamp(40px, 6vw, 72px);
    text-align: center;
}

.home-workflow h2 {
    font-size: clamp(22px, 3.2vw, 28px);
    margin: 0 0 24px;
    position: relative;
    padding-left: 16px;
    display: inline-block;
    color: rgb(var(--color-primary-dark));
}

.home-workflow h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgb(var(--color-primary));
    border-radius: 2px;
}

.home-workflow-steps {
    --home-workflow-gap: clamp(14px, 2.4vw, 24px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--home-workflow-gap);
    align-items: stretch;
}

.home-workflow-step {
    background: rgb(var(--color-white));
    border-radius: 16px;
    padding: 22px 16px 18px;
    position: relative;
    border: 1px solid rgb(var(--color-border-light));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background-color 0.24s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-workflow-step h3 {
    color: rgb(var(--color-primary-dark)) !important;
}

.home-workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    border-color: rgb(var(--color-primary));
    background: rgb(var(--color-white));
}

.home-workflow-step:focus-within {
    border-color: rgb(var(--color-primary));
    box-shadow:
        0 0 0 3px rgba(var(--color-primary), 0.18),
        0 10px 26px rgba(15, 23, 42, 0.1);
}

.home-workflow-icon {
    width: clamp(78px, 10vw, 96px);
    height: clamp(78px, 10vw, 96px);
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(var(--color-accent), 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(30px, 4.2vw, 40px);
    color: rgb(var(--color-primary-hover));
    overflow: hidden;
}

/* Connector icon between workflow steps (desktop 4 columns only) */
@media (min-width: 1025px) {
    .home-workflow-connector {
        position: absolute;
        right: calc((var(--home-workflow-gap) / -2) - 14px);
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: rgb(var(--color-accent));
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
        z-index: 20;
    }
}

.home-workflow-connector svg {
    width: 16px;
    height: 16px;
    display: block;
    /* fill: rgb(var(--color-white)); */
}

@media (max-width: 1024px) {
    .home-workflow-connector {
        display: none;
    }
}

.home-workflow-icon img,
.home-workflow-icon svg {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.home-workflow-step:hover .home-workflow-icon img,
.home-workflow-step:hover .home-workflow-icon svg {
    transform: scale(1.08);
}

.home-workflow-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    color: rgb(var(--color-text-dark));
}

.home-workflow-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgb(var(--color-text-muted));
}

@media (max-width: 1024px) {
    .home-workflow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .home-workflow-step {
        padding: 20px 14px 16px;
    }
}

@media (max-width: 640px) {
    .home-workflow {
        margin-top: 32px;
    }

    .home-workflow h2 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .home-workflow-steps {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 2px 4px 6px;
        margin: 0 -4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-workflow-steps::-webkit-scrollbar {
        display: none;
    }

    .home-workflow-step {
        flex: 0 0 82%;
        min-width: 240px;
        scroll-snap-align: start;
        padding: 14px 12px 12px;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
    }

    .home-workflow-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
        font-size: 28px;
    }

    .home-workflow-step h3 {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.35;
    }

    .home-workflow-step p {
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-workflow-step,
    .home-workflow-icon img,
    .home-workflow-icon svg {
        transition: none;
    }

    .home-workflow-step:hover {
        transform: none;
    }
}

.home-cta {
    margin-top: 48px;
    text-align: center;
}

.home-cta h2 {
    font-size: 24px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
    color: rgb(var(--color-primary-dark)) !important;
}

.home-cta h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgb(var(--color-primary));
    border-radius: 2px;
}

.home-cta p {
    margin: 0;
    color: rgb(var(--color-text-muted));
    font-size: 1rem;
    line-height: 1.65;
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}

.home-routes {
    margin-top: 48px;
}

.home-routes h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
    display: inline-block;
}

.home-routes h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgb(var(--color-primary));
    border-radius: 2px;
}

.home-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .home-routes-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 10px;
    }

    .home-route-card {
        padding: 8px;
        border-radius: 18px;
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.09);
        overflow: hidden;
    }

    .home-route-card-link {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .home-route-image,
    .home-route-image img,
    .home-route-image-placeholder {
        height: 200px;
        aspect-ratio: auto;
        border-radius: 14px;
    }

    .home-route-image-slider {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .home-route-promotion {
        flex-direction: row !important;
        justify-content: space-between !important;
        margin-top: 5px;
        padding: 7px 8px;
        gap: 4px;
        font-size: 12px;
    }

    .home-route-promotion-left {
        gap: 6px !important;
    }

    .home-route-promotion-text {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    .home-route-promotion-discount {
        font-size: 12px;
        padding: 2px 6px;
    }

    .home-route-promotion-countdown {
        font-size: 12px;
    }

    .home-route-promotion-countdown .countdown-time {
        padding: 1px 5px;
        font-size: 12px;
    }

    .home-route-body {
        padding-top: 8px;
    }

    .home-route-info {
        gap: 5px;
    }

    .home-route-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .home-route-path {
        width: 100%;
        gap: 4px;
    }

    .home-route-line {
        top: 10px;
        bottom: 10px;
    }

    .home-route-point {
        font-size: 13px;
        gap: 6px;
    }

    .home-route-point span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        max-width: 100%;
    }

    .home-route-price {
        align-items: flex-start;
        white-space: normal;
        font-size: 14px;
        line-height: 1.4;
        gap: 1px;
    }

    .home-route-price-original,
    .home-route-price-final {
        font-size: 14px;
    }

    .home-route-vehicle {
        font-size: 13px;
        line-height: 1.35;
    }

    .home-route-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .home-route-meta span {
        gap: 4px;
    }

    .home-route-meta span svg {
        width: 12px;
        height: 12px;
        margin-right: 2px;
    }

    .home-route-action-row {
        margin-top: 8px;
    }

    .home-route-btn.home-route-btn-block {
        padding: 8px 10px;
        font-size: 14px;
        min-height: 40px;
    }
}

@media (max-width: 420px) {
    .home-routes-grid {
        gap: 8px;
    }

    .home-route-card {
        padding: 7px;
    }

    .home-route-image,
    .home-route-image img,
    .home-route-image-placeholder {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .home-route-point {
        font-size: 14px;
    }

    .home-route-vehicle,
    .home-route-meta {
        font-size: 14px;
    }
}

.route-other-routes .home-routes-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
}

.route-other-routes .home-route-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.route-other-routes-slider {
    position: relative;
}

.route-other-routes-nav {
    display: none;
    /* Ẩn nút next/prev trong block \"Các tuyến đường khác\" */
}

.route-other-routes-nav.prev {
    left: -10px;
}

.route-other-routes-nav.next {
    right: -10px;
}

@media (max-width: 768px) {
    .route-other-routes-nav {
        display: none;
    }

    .route-other-routes .home-routes-grid {
        gap: 12px;
    }

    .route-other-routes .home-route-card {
        /* Mobile: keep at least 2 cards visible per viewport */
        flex: 0 0 calc((100% - 12px) / 2);
    }
}

.home-route-card {
    background: rgb(var(--color-white));
    border-radius: var(--radius-2xl);
    border: none;
    overflow: visible;
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding: var(--space-3);
}

.home-route-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06);
}

.home-route-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
}

/* Khối meta thời gian + quãng đường */
.home-route-meta {
    display: flex;
    flex-direction: column;
    /* hoặc row + gap nếu bạn muốn cùng 1 hàng */
    gap: 4px;
    font-size: 14px;
    color: rgb(var(--color-text-muted));
}

.home-route-vehicle-icon svg {
    width: 16px;
    height: 16px;
}

/* Icon SVG bên trong 2 span */
.home-route-meta span svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    /* khoảng cách giữa icon và chữ */
    vertical-align: middle;
    /* fill: #6b7280;                */
}

/* Nếu muốn cùng 1 hàng như hình */
.home-route-meta span {
    display: flex;
    align-items: center;
}

.home-route-image {
    position: relative;
    height: 200px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.home-route-image img,
.home-route-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
}

.home-route-image-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.home-route-image-slider img {
    transition:
        opacity 0.35s ease,
        transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.home-route-card:hover .home-route-image-slider img {
    transform: scale(1.05);
}

.home-route-image-slider img.is-fading {
    opacity: 0;
}

.home-route-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.25) 0%,
        transparent 50%
    );
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.home-route-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgb(var(--color-primary));
    color: rgb(var(--color-white));
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    z-index: 2;
}

.home-route-badge-promo {
    background: linear-gradient(135deg, #e7b823 0%, #d79f12 100%);
    color: #0b1120;
    text-transform: none;
}

.home-route-image-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.home-route-image-caption .home-route-point span {
    color: #fefce8;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.7);
}

.home-route-image-caption .home-route-price,
.home-route-image-caption .home-route-price span {
    color: #ffedd5;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.7);
}

.home-route-image-vehicle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.home-route-image-route {
    font-size: 16px;
    font-weight: 700;
    color: rgb(var(--color-white));
    line-height: 1.3;
}

.home-route-body {
    padding: var(--space-4) 0 0 0;
}

.home-route-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgb(var(--color-text-muted));
}

.home-route-meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 4px;
}

.home-route-meta-item {
    display: inline-flex;
    align-items: center;
}

.home-route-divider {
    margin: 10px 0 12px;
    border: 0;
    border-top: 1px solid rgb(var(--color-border-light));
}

.home-route-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.home-route-price-main {
    font-size: 18px;
    font-weight: 700;
    color: #f97316;
}

.home-route-price-range {
    font-size: 14px;
    color: rgb(var(--color-text-muted));
    font-weight: 500;
}

.home-route-countdown-inline {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgb(var(--color-text-dark));
}

.home-route-countdown-inline .countdown-time {
    font-family: "Courier New", monospace;
    font-weight: 700;
}

.home-route-price-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.home-route-price-btn-row .home-route-price {
    margin: 0;
}

.home-route-btn {
    display: inline-block;
    margin-top: 12px;
    background: rgb(var(--color-white));
    color: rgb(var(--color-text-dark));
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(var(--color-primary-dark), 0.5);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.home-route-action-row {
    margin-top: 12px;
}

.home-route-btn.home-route-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    color: rgb(var(--color-primary-dark));
}

.home-route-price-btn-row .home-route-btn {
    margin-top: 0;
}

.home-route-card-link:hover .home-route-btn {
    background: rgb(var(--color-primary));
    color: rgb(var(--color-white));
    border-color: rgb(var(--color-primary));
    transform: scale(1.03);
}

/* Legacy / other blocks that still use old structure */
.home-route-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.home-route-path {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    /* padding-left: 18px; */
}

.home-route-line {
    position: absolute;
    left: 3px;
    top: 12px;
    bottom: 12px;
    width: 0;
    border-left: 2px dotted rgb(var(--color-primary));
    margin-left: -1px;
    pointer-events: none;
}

.home-route-point {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: rgb(var(--color-primary-dark)) !important;
}

.home-route-point span {
    color: rgb(var(--color-primary-dark)) !important;
}

.home-route-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: rgb(var(--color-accent));
    display: inline-block;
    z-index: 1;
}

.home-route-dot.end {
    background: rgb(var(--color-primary));
}

.home-route-price {
    font-weight: 700;
    color: rgb(var(--color-primary));
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.home-route-price-original {
    font-size: 12px;
    color: rgb(var(--color-text-muted));
    text-decoration: line-through;
    font-weight: 500;
}

.home-route-price-final {
    font-size: 14px;
    font-weight: 700;
    color: rgb(var(--color-price-discount));
}

.home-route-promotion {
    margin: 6px 0 0;
    padding: 10px 12px 9px;
    background: linear-gradient(
        145deg,
        rgba(var(--color-accent), 0.9) 0%,
        rgba(var(--color-accent), 0.6) 60%,
        rgba(var(--color-primary), 0.9) 100%
    );
    /* background: linear-gradient(135deg, */
    /* rgb(var(--color-accent)) 0%, */
    /* rgb(var(--color-accent-hover-strong)) 100%); */
    /* border: 1px solid rgba(var(--color-accent-hover-strong), 0.35); */
    border-radius: var(--radius-md);
    font-size: 12px;
    color: rgb(var(--color-white));
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 14px rgba(var(--color-accent-hover-strong), 0.22);
}

.home-route-promotion-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-route-promotion-text {
    font-weight: 700;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.home-route-promotion-discount {
    font-weight: 700;
    font-size: 13px;
    color: rgb(var(--color-primary));
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(var(--color-text-dark), 0.12);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    line-height: 1.2;
}

.home-route-promotion-countdown {
    display: flex;
    font-size: 11px;
    font-weight: 600;
    color: rgba(var(--color-white), 0.82);
}

.home-route-promotion-countdown .countdown-time {
    margin-left: 4px;
    height: fit-content;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgb(var(--color-white));
    background: rgba(var(--color-success), 0.2);
    border: 1px solid rgba(var(--color-success-dark), 0.16);
    padding: 2px 7px;
    border-radius: var(--radius-xs);
}

.home-route-info {
    margin-top: 4px;
    display: grid;
    gap: 6px;
}

.home-route-vehicle {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: rgb(var(--color-text-muted));
}

.home-route-meta {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    font-size: 13px;
    color: rgb(var(--color-text-muted));
}

.route-other-routes .home-route-meta {
    text-align: left;
}

/* Why Choose section - mobile first */
.home-why {
    margin-top: 56px;
    text-align: center;
    padding: 48px 16px;
    background: linear-gradient(
        160deg,
        rgb(var(--color-primary-dark)) 0%,
        rgb(var(--color-primary)) 100%
    );
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

/* Blob vàng góc trên-phải + blob teal sáng góc dưới-trái */
.home-why::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 55% 45% at 92% 8%,
            rgba(var(--color-accent), 0.22) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 50% 40% at 6% 88%,
            rgba(255, 255, 255, 0.07) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 35% 30% at 50% 110%,
            rgba(var(--color-accent), 0.08) 0%,
            transparent 70%
        );
    pointer-events: none;
}

/* Lưới chấm mờ làm họa tiết nền */
.home-why::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    pointer-events: none;
}

/* Khi có ảnh nền */
.home-why.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay tối hơn khi có ảnh nền để chữ luôn đọc được */
.home-why.has-bg-image::before {
    background:
        linear-gradient(
            160deg,
            rgba(var(--color-primary-dark), 0.82) 0%,
            rgba(var(--color-primary), 0.72) 100%
        ),
        radial-gradient(
            ellipse 55% 45% at 92% 8%,
            rgba(var(--color-accent), 0.2) 0%,
            transparent 70%
        );
}

/* Ẩn dot-grid khi có ảnh nền (đã có texture từ ảnh) */
.home-why.has-bg-image::after {
    display: none;
}

.home-why h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: rgb(var(--color-white));
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.home-why h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: rgb(var(--color-accent));
    border-radius: var(--radius-full);
    margin: 10px auto 0;
}

.home-why-subtitle {
    margin: 0 auto 28px;
    color: rgba(var(--color-white), 0.8);
    font-size: 14px;
    max-width: 560px;
    line-height: 1.7;
    position: relative;
}

.home-why-highlight {
    margin: 0 auto 28px;
    padding: 18px 20px;
    border: 1px solid rgba(var(--color-white), 0.15);
    border-radius: var(--radius-xl);
    background: rgba(var(--color-white), 0.08);
    backdrop-filter: blur(8px);
    max-width: 640px;
    text-align: left;
    position: relative;
}

.home-why-highlight ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.home-why-highlight li {
    font-size: 14px;
    color: rgb(var(--color-white));
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.home-why-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgb(var(--color-white));
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.home-why-badge img,
.home-why-badge svg {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    /* fill: currentColor; */
    color: inherit;
}

.home-why-badge.check {
    display: flex;
    justify-content: center;
    background: rgba(var(--color-success), 0.6);
}

.home-why-badge.star {
    background: rgba(var(--color-accent), 0.6);
}

/* Cabin vs Limousine */
.home-compare {
    margin-top: clamp(48px, 7vw, 84px);
    text-align: center;
}

.home-compare h2 {
    font-size: 22px;
    margin: 0 0 12px;
    position: relative;
    padding-left: 16px;
    display: inline-block;
}

.home-compare h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgb(var(--color-primary));
    border-radius: 2px;
}

.home-compare-subtitle {
    margin: 0 auto 28px;
    color: rgb(var(--color-text-muted));
    font-size: 1rem;
    line-height: 1.6;
    max-width: 62ch;
}

.home-compare-grid {
    display: grid;
    gap: 18px;
    text-align: left;
}

.home-compare-card {
    background: rgb(var(--color-white));
    border: 1px solid rgb(var(--color-border-light));
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

.home-compare-card--cabin {
    border-top: 4px solid rgba(var(--color-primary), 0.4);
}

.home-compare-card--limo {
    border-top: 4px solid rgba(var(--color-accent), 0.7);
}

.home-compare-card h3 {
    margin: 0;
    font-size: 16px;
}

.home-compare-list {
    margin: 0;
    padding-left: 18px;
    color: rgb(var(--color-text-body));
    font-size: 13px;
    line-height: 1.65;
    display: grid;
    gap: 6px;
}

.home-compare-lead {
    margin: 2px 0 0;
    font-weight: 600;
    font-size: 13px;
    color: rgb(var(--color-text-dark));
}

.home-compare-list--fit {
    margin-bottom: 2px;
}

.home-compare-tip {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    color: rgb(var(--color-text-body));
    border-top: 1px dashed rgba(var(--color-border-light), 0.9);
}

.home-compare-cta {
    margin-top: 24px;
    background: rgb(var(--color-primary));
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
}

.home-compare-cta h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: rgb(var(--color-accent));
}

.home-compare-cta p {
    margin: 0 0 14px;
    color: rgb(var(--color-white));
    font-size: 13px;
    line-height: 1.5;
}

.home-compare-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.home-compare-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgb(var(--color-border-light));
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: rgb(var(--color-text-body));
    background: rgb(var(--color-white));
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.home-compare-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.home-compare-btn.primary {
    background: rgb(var(--color-primary-hover));
    color: rgb(var(--color-white));
    border-color: rgb(var(--color-primary-hover));
}

@media (min-width: 768px) {
    .home-compare h2 {
        font-size: 26px;
    }

    .home-compare-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .home-compare-cta {
        padding: 22px 24px;
    }

    .home-compare-buttons {
        justify-content: center;
        gap: 12px;
    }

    .home-compare-btn {
        min-width: 168px;
    }
}

@media (max-width: 520px) {
    .home-route-image {
        height: clamp(200px, 54vw, 240px) !important;
    }
    .home-route-image img,
    .home-route-image-placeholder {
        height: 100%;
    }
    .home-compare-card {
        padding: 18px 14px;
    }

    .home-compare-cta {
        padding: 18px 14px;
    }

    .home-compare-btn {
        width: 100%;
    }
}

/* Shared rhythm for lower-page sections */
.home-testimonials,
.home-faq,
.home-partners,
.home-content {
    margin-top: clamp(48px, 7vw, 84px);
    content-visibility: auto;
    contain-intrinsic-size: 1px 640px;
}

.home-testimonials,
.home-faq,
.home-partners,
.home-content {
    text-align: center;
}

.home-testimonials h2,
.home-faq h2,
.home-partners h2,
.home-content h2 {
    font-size: clamp(22px, 3.6vw, 28px);
    margin: 0 0 14px;
    position: relative;
    padding-left: 16px;
    display: inline-block;
}

.home-testimonials h2::before,
.home-faq h2::before,
.home-partners h2::before,
.home-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgb(var(--color-primary));
    border-radius: 2px;
}

/* Testimonials */
.home-testimonials {
    text-align: center;
}

.home-testimonials h2 {
    margin-bottom: 20px;
}

.home-testimonials h2::before {
    background: rgb(var(--color-primary));
}

.home-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.home-testimonial-card {
    background: rgb(var(--color-white));
    border: 1px solid rgb(var(--color-border-light));
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.home-testimonial-card.brand {
    text-align: center;
}

.home-testimonial-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(var(--color-warning), 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.home-testimonial-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.home-testimonial-rating {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.home-testimonial-rating .stars,
.home-testimonial-stars {
    color: rgb(var(--color-feedback-warning));
    font-size: 14px;
}

.home-testimonial-rating .score {
    font-weight: 700;
    font-size: 13px;
}

.home-testimonial-meta {
    color: rgb(var(--color-text-muted));
    font-size: 12px;
    margin: 0 0 10px;
}

.home-testimonial-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgb(var(--color-border-strong));
    border-radius: 8px;
    text-decoration: none;
    color: rgb(var(--color-text-body));
    font-weight: 600;
    font-size: 13px;
}

.home-testimonial-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.home-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(var(--color-gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.home-testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* FAQ */
.home-faq {
    text-align: center;
}

.home-faq h2 {
    margin-bottom: 20px;
}

.home-faq h2::before {
    background: rgb(var(--color-primary));
}

.home-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
}

.home-faq-item {
    border: 1px solid rgb(var(--color-border-light));
    border-radius: 12px;
    background: rgb(var(--color-white));
    overflow: hidden;
}

.home-faq-question {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: none;
    background: rgb(var(--color-white));
    font-weight: 600;
    font-size: 14px;
    color: rgb(var(--color-text-body));
    cursor: pointer;
    position: relative;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.home-faq-question::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgb(var(--color-text-muted));
}

.home-faq-item.is-open .home-faq-question::after {
    content: "–";
}

.home-faq-item.is-open .home-faq-question {
    background: rgb(var(--color-accent));
    color: rgb(var(--color-white));
}

.home-faq-item.is-open .home-faq-question::after {
    color: rgb(var(--color-white));
}

.home-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition:
        grid-template-rows 0.3s ease,
        padding 0.3s ease;
    overflow: hidden;
    padding: 0 16px;
    color: rgb(var(--color-text-muted));
    font-size: 13px;
    line-height: 1.65;
    background: rgb(var(--color-surface-muted));
}

.home-faq-answer p {
    overflow: hidden;
}

.home-faq-item.is-open .home-faq-answer {
    grid-template-rows: 1fr;
    padding-bottom: 14px;
}

@media (min-width: 768px) {
    .home-faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Partners */
.home-partners {
    text-align: center;
}

.home-partners h2 {
    margin-bottom: 10px;
}

.home-partners h2::before {
    background: rgb(var(--color-primary));
}

.home-partners-subtitle {
    margin: 0 auto 24px;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.6;
    color: rgb(var(--color-text-muted));
}

.home-partners-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-snap-type: x mandatory;
}

.home-partners-slider::-webkit-scrollbar {
    display: none;
}

.home-partner-logo {
    flex: 0 0 auto;
    width: 160px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(var(--color-border-light));
    border-radius: 12px;
    background: rgb(var(--color-white));
    scroll-snap-align: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.home-partner-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--color-primary), 0.35);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.home-partner-logo img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

/* Page content section */
.home-content {
    text-align: center;
}

.home-content h2 {
    margin-bottom: 16px;
}

.home-content h2::before {
    background: rgb(var(--color-primary));
}

.home-content-box {
    background: rgb(var(--color-white));
    border: 1px solid rgb(var(--color-border-light));
    border-radius: 16px;
    padding: 18px 16px;
    text-align: left;
}

.home-content-text {
    color: rgb(var(--color-text-body));
    font-size: 1rem;
    line-height: 1.7;
    max-height: none;
    overflow: hidden;
    /* max-width: 68ch; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

.home-content-text[data-collapsed="true"] {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
}

home-content-toggle {
    margin-top: 12px;
    border: 1px solid rgb(var(--color-border-strong));
    background: rgb(var(--color-primary));
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: rgb(var(--color-white));
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.home-content-toggle:hover {
    background: rgb(var(--color-primary-dark));
}

.home-testimonial-head strong {
    display: block;
    font-size: 13px;
}

.home-testimonial-head span {
    display: block;
    color: rgb(var(--color-text-muted));
    font-size: 12px;
}

.home-testimonial-google {
    margin-left: auto;
    font-weight: 700;
    color: rgb(var(--color-feedback-error));
}

.home-testimonial-card p {
    margin: 0;
    font-size: 13px;
    color: rgb(var(--color-text-body));
}

@media (max-width: 640px) {
    .home-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .home-testimonial-card {
        padding: 14px;
    }

    .home-testimonials h2 {
        font-size: 20px;
    }
}

.home-testimonial-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.home-testimonial-dots button {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-testimonial-dots button.is-active {
    background: transparent;
}

.home-testimonial-dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(var(--color-border-dashed));
    transition:
        transform var(--duration-fast) var(--easing-standard),
        background-color var(--duration-fast) var(--easing-standard);
}

.home-testimonial-dots button.is-active::before {
    background: rgb(var(--color-feedback-info));
    transform: scale(1.2);
}

.home-testimonial-dots button:focus-visible {
    outline: 2px solid rgb(var(--color-accent));
    outline-offset: 2px;
}

.home-testimonials.is-slider .home-testimonials-grid {
    grid-template-columns: 1fr;
}

.home-testimonials.is-slider .home-testimonial-dots {
    display: flex;
}

.home-why-cards {
    display: grid;
    gap: 14px;
    position: relative;
}

.home-why-card {
    background: rgba(var(--color-white), 0.1);
    border: 1px solid rgba(var(--color-white), 0.18);
    border-radius: var(--radius-xl);
    padding: 24px 18px;
    text-align: center;
    transition: var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.home-why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-white), 0);
    transition: var(--transition-base);
    border-radius: inherit;
}

.home-why-card:hover::before {
    background: rgba(var(--color-white), 0.06);
}

.home-why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-accent), 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.home-why-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(var(--color-accent), 0.18);
    border: 1px solid rgba(var(--color-accent), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: var(--transition-base);
}

.home-why-card-icon svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: rgb(var(--color-white));
    /* fill: currentColor; */
}

.home-why-card:hover .home-why-card-icon {
    background: rgba(var(--color-accent), 0.28);
    transform: scale(1.08);
}

.home-why-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: rgb(var(--color-white));
    line-height: 1.4;
}

.home-why-card p {
    margin: 0;
    color: rgba(var(--color-white), 0.75);
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .home-why h2 {
        font-size: 28px;
    }

    .home-why-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .home-route-top {
        flex-direction: row;
        align-items: flex-start;
    }

    .home-route-btn {
        justify-self: start;
    }
}

.home-gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.home-gallery-modal[aria-hidden="false"] {
    display: flex;
}

.home-gallery-modal-content {
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    background: rgba(var(--color-primary), 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: var(--space-3);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .home-gallery-modal-content {
        width: min(80vw, 1200px);
        max-width: min(80vw, 1200px);
    }

    /* Modal ảnh: không bị cắt và chiếm nhiều không gian hơn */
    .home-gallery-modal .home-gallery-main {
        height: min(70vh, 650px);
    }

    .home-gallery-modal .home-gallery-main img {
        object-fit: contain;
    }
}

.home-gallery-nav,
.home-gallery-close {
    z-index: 2;
}

.home-gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgb(var(--color-white));
    color: rgb(var(--color-text-body));
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.home-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgb(var(--color-white));
    color: rgb(var(--color-text-body));
    font-size: 24px;
    cursor: pointer;
    line-height: 42px;
    text-align: center;
    padding: 0;
}

.home-gallery-item:focus-visible,
.home-gallery-close:focus-visible,
.home-gallery-nav:focus-visible,
.home-compare-btn:focus-visible,
.home-route-btn:focus-visible,
.home-content-toggle:focus-visible,
.home-faq-question:focus-visible {
    outline: 2px solid rgb(var(--color-accent));
    outline-offset: 2px;
}

.home-gallery-close,
.home-gallery-nav,
.home-content-toggle {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 640px) {
    .home-gallery-modal {
        padding: 12px;
    }

    .home-gallery-modal-content {
        max-height: 94vh;
        padding: 10px;
    }

    .home-gallery-nav {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 22px;
    }

    .home-gallery-nav.prev {
        left: 8px;
    }

    .home-gallery-nav.next {
        right: 8px;
    }

    .home-gallery-close {
        top: 8px;
        right: 8px;
    }
}

.home-gallery-nav.prev {
    left: 20px;
}

.home-gallery-nav.next {
    right: 20px;
}

body.home-gallery-open {
    overflow: hidden;
}
