﻿:root {
    --primary: #d64045;
    --primary-dark: #bf2f3a;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-light: #8b8b9f;
    --border: #e5e7eb;
    --radius: 12px;
}

/* Breadcrumb */
.breadcrumb-wrap {
    background: #f9fafb;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* Hero */
.hero {
    position: relative;
    height: 320px;
    background: url('/frontend/images/page-hero.png') center/cover no-repeat;
    background-color: #1a1a2e;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0;
}

.hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.hero-stars {
    color: #fbbf24;
}

.hero-stars i {
    margin-right: 2px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Main Image */
.main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: block;
}

/* Main Layout */
.main {
    padding: 2rem 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
}

/* Content */
.content {}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-summary {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.description p {
    margin-bottom: 1rem;
}

.description p:last-child {
    margin-bottom: 0;
}

/* Gallery Slider */
.gallery-slider {
    margin-bottom: 1.5rem;
}

.gallery-main {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: #e5e7eb;
    display: block;
    transition: opacity 0.25s ease;
    cursor: zoom-in;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.slider-title {
    margin-top: 1.5rem;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Routes Table */
.routes-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.routes-table th,
.routes-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.routes-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.routes-table tr:last-child td {
    border-bottom: none;
}

.routes-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    color: var(--primary);
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.info-table td:first-child {
    color: var(--text-light);
    width: 40%;
}

.info-table td:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 18px;
    color: var(--primary);
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* Nearby Hotels */
.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nearby-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: center;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.nearby-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.nearby-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.nearby-card-placeholder {
    width: 80px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 20px;
    flex-shrink: 0;
}

.nearby-card-info {
    flex: 1;
    min-width: 0;
}

.nearby-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.nearby-card-detail {
    font-size: 0.8rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-card-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #fff;
}

.sidebar-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Form */
.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: var(--text-secondary);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Info Row */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row i {
    color: var(--primary);
    width: 20px;
    margin-top: 2px;
    text-align: center;
    flex-shrink: 0;
}

/* Popular List */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-item:hover {
    border-color: var(--primary);
    background: #fef2f2;
}

.popular-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popular-item-icon i {
    font-size: 16px;
    color: var(--primary);
}

.popular-item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.popular-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.popular-item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Help Card */
.help-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.help-card > i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2px;
}

.help-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.help-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.help-card a:hover {
    color: var(--primary-dark);
}

.help-card a i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 220px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .main-image {
        max-height: 280px;
    }

    .gallery-main {
        height: 280px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-thumb img {
        height: 60px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-image {
        max-height: 200px;
    }

    .gallery-main {
        height: 220px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .gallery-thumb img {
        height: 50px;
    }

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

    .gallery img {
        height: 180px;
    }

    .nearby-card {
        flex-wrap: wrap;
    }

    .nearby-card-price {
        width: 100%;
        text-align: right;
        margin-top: 0.5rem;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
