/* ===== Destination Detail - Private Styles ===== */
/* Used only on destination_detail.html; loaded after main.css */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #0f172a;
    --red: #e11d48;
    --red-dark: #be123c;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Destination Hero */
.dest-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dest-hero-bg {
    position: absolute;
    inset: 0;
    /* background: url('/static/skin/images/changcheng.jpg') center/cover no-repeat; */
}

.dest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.dest-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 24px;
}

.dest-hero .breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
    justify-content: center;
}

.dest-hero .breadcrumb a {
    color: #fff;
    opacity: 0.8;
}

.dest-hero .breadcrumb a:hover {
    opacity: 1;
    color: var(--red);
}

.dest-hero-content h1 {
    font-size: 60px;
    color: #fff;
    margin-bottom: 12px;
}

.dest-tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.dest-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    font-size: 15px;
}

.dest-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dest-hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--light-bg);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Overview */
.overview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.overview-text p {
    margin-bottom: 18px;
    font-size: 16px;
    color: var(--text);
}

.quick-facts {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.quick-facts h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.fact-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 90px;
}

.fact-value {
    color: var(--text-light);
}

/* Attraction Cards */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.attraction-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.attraction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.attraction-img {
    height: 200px;
    overflow: hidden;
}

.attraction-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.attraction-card:hover .attraction-img img {
    transform: scale(1.05);
}

.attraction-body {
    padding: 24px;
}

.attraction-body h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.attraction-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.attraction-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.attraction-meta span {
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text);
}

.learn-more {
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
}

.learn-more:hover {
    color: var(--red-dark);
}

/* Show More Toggle */
.item-extra {
    display: none;
}

.item-extra.item-visible {
    display: block;
}

.show-more-wrap {
    text-align: center;
    margin-top: 32px;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-bg);
    color: var(--dark);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.show-more-btn:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.show-more-btn .arrow {
    transition: transform 0.3s;
}

.show-more-btn.expanded .arrow {
    transform: rotate(180deg);
}

/* Food Section */
.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.food-card {
    min-width: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.food-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.food-img {
    height: 200px;
    overflow: hidden;
}

.food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.food-card:hover .food-img img {
    transform: scale(1.05);
}

.food-body {
    padding: 20px;
}

.food-body h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.food-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.food-tip {
    font-size: 13px;
    color: var(--red);
    font-weight: 500;
}

/* Itinerary */
.itinerary-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.day-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.day-number {
    text-align: center;
}

.day-number .num {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.day-number .label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.day-number .theme {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 8px;
}

.day-stops {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stop {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.stop-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    min-width: 60px;
    padding-top: 2px;
}

.stop-info h5 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.stop-info p {
    font-size: 13px;
    color: var(--text-light);
}

.day-transport {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.day-transport strong {
    color: var(--dark);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-label {
    opacity: 1;
}

/* Routes */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.route-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.route-img {
    height: 180px;
    overflow: hidden;
}

.route-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.route-body {
    padding: 24px;
}

.route-body h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.route-meta span {
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.route-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.tip-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tip-card .tip-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.tip-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.tip-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card ul li {
    font-size: 14px;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.tip-card ul li::before {
    content: '•';
    color: var(--red);
    position: absolute;
    left: 0;
}

/* Related Destinations */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.related-img {
    height: 180px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-body {
    padding: 20px;
}

.related-body h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.related-body .tag {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.related-body .rating {
    font-size: 14px;
    color: var(--red);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 14px;
}

.cta-section p {
    color: #94a3b8;
    font-size: 17px;
    margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 1279px) {
    .attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .day-card {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 767px) {
    .dest-hero {
        height: 420px;
    }

    .dest-hero-content h1 {
        font-size: 38px;
    }

    .dest-tagline {
        font-size: 15px;
    }

    .dest-stats {
        gap: 16px;
        font-size: 13px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

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

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

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

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

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

    .day-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .day-number .num {
        font-size: 36px;
    }

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

    .cta-section h2 {
        font-size: 28px;
    }
}
