/* ============================================
   SG Food Guide - 新加坡美食分享网
   Color Palette: Warm tones
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    color: #3a3a3a;
    background-color: #fdf8f4;
    line-height: 1.7;
    min-height: 100vh;
}

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

ul { list-style: none; }

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

/* ---------- SVG Icon System ---------- */
.icon-svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.12em;
    display: inline-block;
}

.icon-svg.sm { width: 0.9em; height: 0.9em; }
.icon-svg.lg { width: 1.3em; height: 1.3em; }
.icon-svg.xl { width: 2.4em; height: 2.4em; }
.icon-svg.xxl { width: 2.8em; height: 2.8em; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    color: #2c2c2c;
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.4em;
    color: #c0562b;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #888;
    margin-bottom: 2.5em;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    background: linear-gradient(135deg, #d35400, #e67e22);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .icon-svg {
    width: 1.3em;
    height: 1.3em;
}

.logo span {
    background: rgba(255,255,255,0.25);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
}

.main-nav ul {
    display: flex;
    gap: 6px;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
}

.menu-toggle .icon-svg {
    width: 1.6rem;
    height: 1.6rem;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 28px;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e67e22;
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(230,126,34,0.4);
}

.hero-btn:hover {
    background: #cf6d17;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(230,126,34,0.55);
}

.hero-btn .icon-svg {
    width: 1em;
    height: 1em;
}

/* ---------- Container / Section ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 60px 0;
}

/* ---------- Card Grid ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 20px 22px 24px;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.card-body p {
    font-size: 0.92rem;
    color: #666;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #999;
}

.card-meta .price {
    color: #c0562b;
    font-weight: 700;
    font-size: 1rem;
}

.card-meta .tag {
    background: #fef3e7;
    color: #d35400;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.card-meta .rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-meta .rating .icon-svg {
    color: #f39c12;
    width: 0.95em;
    height: 0.95em;
}

/* ---------- Video Section ---------- */
.video-section {
    background: #f5ece4;
    padding: 60px 0;
}

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

.video-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.video-card video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ---------- Promo Banner ---------- */
.promo-banner {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.promo-banner h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.promo-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ---------- Quick Links (Homepage) ---------- */
.quick-link-card {
    text-align: center;
    padding: 36px 20px;
    cursor: pointer;
}

.quick-link-card .ql-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #fdebd0, #f5cba7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link-card .ql-icon .icon-svg {
    width: 28px;
    height: 28px;
    color: #d35400;
}

/* ---------- Budget Page Specific ---------- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    border: 2px solid #e0d5ca;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #777;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #d35400;
    color: #d35400;
    background: #fef6f0;
}

/* Info card with table */
.info-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
}

.info-table td {
    padding: 6px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid #f0ebe5;
    vertical-align: middle;
}

.info-table td:first-child {
    color: #999;
    width: 90px;
    white-space: nowrap;
}

.info-table td:first-child .icon-svg {
    margin-right: 4px;
}

.info-table td:last-child {
    color: #555;
    font-weight: 500;
}

/* ---------- Snacks Page ---------- */
.snack-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.snack-feature:nth-child(even) {
    direction: rtl;
}

.snack-feature:nth-child(even) > * {
    direction: ltr;
}

.snack-feature img {
    border-radius: 16px;
    width: 100%;
    height: 340px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.snack-info h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #c0562b;
}

.snack-info p {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.snack-info .detail-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 6px;
}

.snack-info .detail-line .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.snack-info .detail-line .icon .icon-svg {
    width: 16px;
    height: 16px;
    color: #d35400;
}

/* ---------- Map Page ---------- */
.map-hero {
    position: relative;
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-hero .hero-bg {
    filter: brightness(0.5);
}

.map-hero .hero-content h1 {
    font-size: 2.4rem;
}

.map-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    padding: 30px;
    display: flex;
    justify-content: center;
}

.sg-map-wrap {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.sg-map-wrap svg {
    width: 100%;
    height: auto;
}

.map-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.map-marker:hover {
    transform: scale(1.2);
}

/* SVG a 标签样式 */
svg a.map-marker {
    text-decoration: none;
    outline: none;
}

svg a.map-marker:focus {
    outline: none;
}

.map-marker-label {
    font-size: 11px;
    font-weight: 600;
    fill: #c0562b;
    pointer-events: none;
}

.map-locations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.location-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    border-left: 4px solid #e67e22;
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
}

.location-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #333;
}

.location-card p {
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-card p .icon-svg {
    width: 14px;
    height: 14px;
    color: #d35400;
    flex-shrink: 0;
}

.location-card .loc-tag {
    display: inline-block;
    background: #fef3e7;
    color: #d35400;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-top: 8px;
}

.area-title {
    font-size: 1.2rem;
    color: #c0562b;
    margin-bottom: 16px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    scroll-margin-top: 80px;
}

.area-title .icon-svg {
    width: 20px;
    height: 20px;
}

/* ---------- Reviews Page ---------- */
.review-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 680px;
    margin: 0 auto 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fdfaf7;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
    background: #fff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.star-rating {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.star-rating .star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating .star .icon-svg {
    width: 1.6rem;
    height: 1.6rem;
}

.star-rating .star.active,
.star-rating .star:hover {
    color: #f39c12;
}

.submit-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(211,84,0,0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(211,84,0,0.45);
}

/* Review cards */
.reviews-list {
    max-width: 780px;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.review-meta h4 {
    font-size: 1rem;
    color: #333;
}

.review-meta .review-date {
    font-size: 0.82rem;
    color: #aaa;
}

.review-stars {
    color: #f39c12;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    gap: 2px;
}

.review-stars .icon-svg {
    width: 1em;
    height: 1em;
}

.review-card p {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.7;
}

/* ---------- Transport Cards ---------- */
.transport-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transport-card .line-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-grid h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-grid p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: #aaa;
}

.footer-grid ul li {
    margin-bottom: 8px;
}

.footer-grid ul li a {
    font-size: 0.88rem;
    color: #aaa;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-grid ul li a:hover {
    color: #e67e22;
}

.footer-grid ul li a .icon-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 18px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #777;
}

/* ---------- Bottom Nav (Mobile) ---------- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.72rem;
    color: #999;
    padding: 6px 4px;
    transition: color 0.3s ease;
}

.bottom-nav a .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav a .nav-icon .icon-svg {
    width: 1.3rem;
    height: 1.3rem;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: #d35400;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230,126,34,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top .icon-svg {
    width: 1.3rem;
    height: 1.3rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

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

    .snack-feature {
        grid-template-columns: 1fr;
    }

    .snack-feature:nth-child(even) {
        direction: ltr;
    }

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

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #c0562b;
        padding: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        padding: 12px 16px;
    }

    .menu-toggle {
        display: block;
    }

    .bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 68px;
    }

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

    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    section {
        padding: 40px 0;
    }

    .map-locations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.82rem;
    }
}
