/* =========================================================
   Frontend Pages — Hero, Home, Tours, Detail, Footer
   ========================================================= */

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.site-header__inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.site-logo:hover {
    color: var(--primary-color);
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--primary-color);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__phone {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--background-light);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    font-size: 1.25rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 56px;
    background: #0b1c33 var(--fallback-hero) center / cover no-repeat;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 28, 51, 0.35) 0%, rgba(11, 28, 51, 0.72) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__brand {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: #fff;
}

.hero__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
    max-width: 640px;
}

.hero__subtitle {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    font-size: 1.05rem;
}

.hero .search-panel {
    max-width: 980px;
}

.page-hero {
    background: var(--background-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-hero__title {
    margin: 0 0 8px;
}

.page-hero__subtitle {
    margin: 0;
}

/* Tour Listing */
.tours-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.filters-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.filters-panel__title {
    margin: 0 0 20px;
    font-size: 1.1rem;
}

.filters-panel .form-group {
    margin-bottom: 18px;
}

.tours-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tours-toolbar__count {
    color: var(--text-muted);
    margin: 0;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.destination-grid,
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Tour Detail */
.tour-detail__banner {
    position: relative;
    height: 420px;
    background: #123 var(--fallback-hero) center / cover no-repeat;
}

.tour-detail__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-detail__banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
}

.tour-detail__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    padding-bottom: 72px;
}

.tour-detail__main,
.tour-detail__sidebar > * {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.tour-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-detail__title {
    margin: 0 0 12px;
    font-size: 2rem;
}

.tour-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.tour-detail__section {
    margin-top: 32px;
}

.tour-detail__section h3 {
    margin-bottom: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.gallery-grid a,
.gallery-grid figure {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--background-light);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-card__price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.booking-card__price {
    font-size: 2rem;
    font-weight: 800;
    margin: 4px 0 16px;
}

.booking-card__price-old {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
    margin-right: 8px;
}

.booking-card__facts {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.booking-card__facts li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.booking-card__facts span:first-child {
    color: var(--text-muted);
}

.booking-card__facts span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.review-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.review-card__author {
    margin: 0;
    font-weight: 700;
}

.review-card__date {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Content pages */
.content-page {
    padding: 48px 0 72px;
}

.content-page__body {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.content-page__body img {
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

.contact-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.contact-card h3 {
    margin-bottom: 16px;
}

.contact-card p {
    margin-bottom: 12px;
}

.contact-card a {
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #111111;
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 48px;
}

.footer-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: inline-block;
}

.footer-desc {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
}

.footer-title {
    color: #fff;
    margin: 0 0 16px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

/* Homepage section spacing helpers */
.home-section + .home-section {
    border-top: 0;
}
