/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* --- Theme Colors --- */
    --color-pink: #EA98A9;
    --color-cyan: #00D4C2;
    --color-yellow: #FFCE70;
    --color-blue: #0085E3;

    /* --- Backgrounds & Text --- */
    --color-bg: #f8fafc;
    /* ปรับพื้นหลังให้อ่อนลงเพื่อให้การ์ดสีขาวเด่นขึ้น */
    --color-bg-soft: #f1f5f9;
    --color-text: #475569;
    --color-text-muted: #94a3b8;

    /* --- Typography --- */
    --font-head: 'Kanit', sans-serif;
    --font-body: 'Kanit', sans-serif;

    /* --- Spacing & Dimensions --- */
    --header-height: 80px;
    --border-radius-card: 12px;
    /* เพิ่มความโค้งมน */
    --border-radius-btn: 10px;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    /* เพิ่มระยะห่างบรรทัดให้อ่านง่าย */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue);
}

/* =========================================
   3. HEADER & NAVIGATION (MODERN GLASS)
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    /* --- Glassmorphism --- */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    height: var(--header-height);
}

.nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    /* เพิ่มบรรทัดนี้เพื่อให้ทุกอย่างเรียงตรงกันตรงกลาง */
}

.nav a {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav a:hover {
    color: var(--color-cyan);
}

.nav-icon {
    font-size: 18px;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    /* เพิ่มบรรทัดนี้ */
    align-items: center;
    /* เพิ่มบรรทัดนี้ */
}

.menu-icon {
    display: none;
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   4. LOGO STYLES (UNIFIED COLOR)
   ========================================= */
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
}

.logo-dot {
    width: 8px;
    height: 30px;
    background: var(--color-cyan);
    /* จุดสีฟ้า Cyan เหมือนกันหมด */
    border-radius: 4px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-text {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: transparent;
    transition: all 0.5s ease;
    background-clip: text;
    -webkit-background-clip: text;
    background-repeat: no-repeat;
    background-size: 0% 100%;

    /* --- UNIFIED GRADIENT (สีเหมือนกันทุกจุด) --- */
    /* ไล่สีจาก น้ำเงิน -> ฟ้า Cyan */
    background-image: linear-gradient(to right, var(--color-blue), var(--color-cyan));
}

/* Interaction: เมื่อเอาเมาส์ชี้ */
.logo:hover .logo-dot {
    height: 10px;
    width: 30px;
    background: var(--color-blue);
    /* เปลี่ยนเป็นน้ำเงินเข้ม */
}

.logo:hover .logo-text {
    background-size: 100% 100%;
    /* ถมสีเต็ม */
    -webkit-text-stroke: 0px transparent;
    /* ลบเส้นขอบออก */
    filter: drop-shadow(0 0 10px rgba(0, 212, 194, 0.6));
    /* แสงเรืองสีฟ้า */
}

/* --- Variants (ปรับแค่สีขอบให้เห็นชัดตามพื้นหลัง) --- */

/* 1. โลโก้ตรง Header (พื้นหลังขาว -> ขอบต้องสีเข้ม) */
.header .logo .logo-text {
    -webkit-text-stroke: 2px var(--color-blue);
}

/* 2. โลโก้ตรง Footer (พื้นหลังมืด -> ขอบต้องสีขาว) */
.footer-logo-custom {
    margin: 0 0 20px 0;
}

.footer-logo-custom .logo-text {
    -webkit-text-stroke: 2px white;
}

.footer-logo-custom .logo-dot {
    background: white;
    /* จุดสีขาวตอนยังไม่ชี้ */
}

/* 3. โลโก้ตรง Hero (ตัวใหญ่ พื้นหลังมืด -> ขอบต้องสีขาว) */
.hero-logo-custom {
    margin-top: 10px;
}

.hero-logo-custom .logo-text {
    font-size: 100px;
    font-weight: 800;
    -webkit-text-stroke: 3px white;
    /* เส้นขอบหนา */
    background-size: 0% 100%;
}

.hero-logo-custom .logo-dot {
    width: 15px;
    height: 60px;
    background: white;
    /* จุดสีขาวตอนยังไม่ชี้ */
    margin-right: 10px;
}

.hero-logo-custom:hover .logo-dot {
    width: 60px;
    height: 15px;
    background: var(--color-cyan);
    /* เปลี่ยนเป็นสี Cyan ตอนชี้ */
}

/* =========================================
   5. HERO SECTIONS
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%) scale(1.15); 
    z-index: -2;
    object-fit: cover;
    /* 🟢 เพิ่มบรรทัดนี้เพื่อดึงภาพให้คมและสีสดขึ้น */
    filter: contrast(1.15) saturate(1.3); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 🟢 ปรับความทึบของสีดำและสีฟ้าให้บางลงครึ่งหนึ่ง เพื่อให้วิดีโอข้างหลังชัดขึ้น */
    background: linear-gradient(to right, rgba(0, 20, 40, 0.3), rgba(0, 133, 227, 0.1));
    z-index: -1;
}

.hero-container-ref {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
    margin-top: -50px;
    color: white;
}

.hero-left-content {
    max-width: 650px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: 80px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.hero-subtitle {
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.link-arrow {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-arrow:hover {
    color: white;
    gap: 15px;
    /* ลูกศรขยับ */
}

.hero-bottom-features {
    position: absolute;
    bottom: 50px;
    left: 5%;
    display: flex;
    gap: 60px;
    color: white;
}

.feature-box {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.feature-box i {
    font-size: 24px;
    color: var(--color-cyan);
}

.feature-info h4 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

.feature-info span {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 300;
}

.hero-image {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content-center h2 {
    font-family: var(--font-head);
    font-size: 4em;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -1px;
}

/* =========================================
   6. COMMON UI COMPONENTS (MODERNIZED)
   ========================================= */
.button-outline {
    padding: 14px 40px;
    background: white;
    color: var(--color-blue);
    font-family: var(--font-head);
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: var(--border-radius-btn);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button-outline:hover {
    background: var(--color-cyan);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 194, 0.4);
}

.custom-back-btn {
    position: absolute;
    top: 100px;
    left: 5%;
    color: var(--color-blue);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    z-index: 200;
    cursor: pointer;
    background: white;
    padding: 12px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.custom-back-btn:hover {
    background: var(--color-blue);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 10px 20px rgba(0, 133, 227, 0.2);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background: white;
    color: var(--color-text-muted);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 133, 227, 0.3);
}

.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn.active i {
    color: #ff4757;
    font-weight: 900;
}

.favorite-btn i {
    color: #cbd5e1;
    font-size: 18px;
    transition: all 0.3s ease;
}

.user-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-cyan);
    display: none;
    cursor: pointer;
}

.logged-in .fa-user {
    display: none;
}

.logged-in .user-profile-img {
    display: block;
}

.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--color-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 133, 227, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-cyan);
    transform: translateY(-5px);
}

/* =========================================
   7. MAIN CONTENT SECTIONS
   ========================================= */
.sections-container {
    background-color: var(--color-bg);
    padding: 120px 5% 100px;
    min-height: 100vh;
    display: none;
    flex-direction: column;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 20px;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 56px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    /* Gradient Header */
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

/* =========================================
   8. CARD GRID SYSTEM (MODERN CARD UI)
   ========================================= */
.card-grid-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.location-card {
    height: 450px;
    position: relative;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white;
    /* Modern Soft Shadow */
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.07);
    border: none;
}

.location-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 133, 227, 0.25);
    z-index: 2;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.8s ease;
}

.location-card:hover .card-image {
    transform: scale(1.1);
}

.location-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    /* Gradient Overlay */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 40%, transparent 100%);
    opacity: 1;
    transition: 0.3s;
}

.card-content {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: left;
    z-index: 2;
    padding: 0 25px;
}

.card-content h3 {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-desc-short {
    font-size: 13px;
    color: white;
    margin: 0;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 6px 15px;
    border-radius: 10px;
}

.card-arrow,
.card-description,
.card-rating,
.card-budget,
.card-tags {
    display: none;
}

/* =========================================
   9. ABOUT PAGE REDESIGN
   ========================================= */
.about-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.about-intro-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.image-decoration {
    position: absolute;
    top: 30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-cyan);
    border-radius: 12px;
    z-index: 1;
    opacity: 0.5;
}

.about-text {
    flex: 1.2;
}

.about-slogan {
    font-family: var(--font-head);
    font-size: 42px;
    line-height: 1.2;
    color: var(--color-blue);
    margin-bottom: 30px;
    font-weight: 800;
}

.highlight-word {
    color: var(--color-pink);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.about-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

.location-tag {
    color: var(--color-blue);
    font-weight: 700;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 5px;
}

.price-tag {
    background-color: var(--color-yellow);
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    color: #555;
}

/* =========================================
   UPDATE: BLOOM TEXT IN PARAGRAPH
   ========================================= */
.bloom-text {
    font-family: var(--font-head);
    font-weight: 900;
    display: inline-block;

    /* ใช้ Gradient สีเดียวกับโลโก้หลัก (น้ำเงิน -> ฟ้า) */
    background-image: linear-gradient(to right, var(--color-blue), var(--color-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* ลบเส้นขอบออก (เพื่อให้สีถมเต็มเหมือนโลโก้) */
    -webkit-text-stroke: 0;

    /* ตั้งค่าให้แสดงสีเต็มทันที ไม่ต้องรอ Hover */
    background-size: 100% 100%;

    /* ปรับขนาดและแสงเงา */
    font-size: 1.3em;
    /* ใหญ่กว่าตัวหนังสือปกติเล็กน้อย */
    filter: drop-shadow(0 2px 4px rgba(0, 133, 227, 0.2));
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 2px;
    /* เว้นระยะห่างซ้ายขวานิดนึง */
}

/* เอฟเฟกต์ตอนชี้เมาส์ */
.bloom-text:hover {
    filter: drop-shadow(0 0 10px rgba(0, 212, 194, 0.6));
    /* เรืองแสงสีฟ้า */
    transform: scale(1.05);
    /* ขยายใหญ่นิดนึง */
}

/* ซ่อนจุด (Bar) ด้านหน้าออก เพื่อให้เนียนไปกับประโยค */
.bloom-text::before {
    display: none;
}

.mission-section {
    text-align: center;
    margin-bottom: 100px;
}

.mission-title {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.mission-card {
    background: white;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.mission-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 133, 227, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--color-bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--color-blue);
    font-size: 32px;
    transition: 0.4s;
}

.mission-card:hover .icon-box {
    background: var(--color-blue);
    color: white;
    transform: rotateY(180deg);
}

.mission-card h4 {
    font-family: var(--font-head);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-text);
    font-weight: 700;
}

.mission-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.about-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 0 auto 80px;
    width: 150px;
}

.team-section {
    text-align: center;
    margin-bottom: 80px;
}

.sub-header {
    font-family: var(--font-head);
    color: var(--color-blue);
    font-size: 28px;
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
}

.member-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-text);
    font-family: var(--font-head);
}

.team-member .role {
    font-size: 15px;
    color: var(--color-blue);
    font-weight: 500;
}

.cta-section {
    margin-top: 80px;
    text-align: center;
}

.cta-box {
    background: linear-gradient(120deg, var(--color-blue), var(--color-cyan));
    padding: 60px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 133, 227, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-box p {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: var(--font-head);
    position: relative;
    z-index: 2;
}

.cta-btn {
    background: white;
    color: var(--color-blue);
    border: none;
    padding: 18px 50px;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.cta-btn:hover {
    background: var(--color-yellow);
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
   11. CONTACT PAGE REDESIGN
   ========================================= */
.contact-bg {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.contact-card-modern {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.contact-info-panel {
    flex: 2;
    background: linear-gradient(150deg, var(--color-blue), #004e92);
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-info-panel h3 {
    font-family: var(--font-head);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 800;
}

.contact-intro {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: 0.3s;
}

.detail-item:hover .icon-circle {
    background: white;
    color: var(--color-blue);
    transform: scale(1.1) rotate(10deg);
}

.detail-item h4 {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-item p {
    margin: 5px 0 0;
    font-size: 18px;
    font-weight: 500;
}

.contact-socials {
    margin-top: 60px;
}

.contact-socials p {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.contact-socials .social-icons {
    display: flex;
    gap: 15px;
}

.contact-socials .social-icons a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: 0.3s;
    font-size: 18px;
}

.contact-socials .social-icons a:hover {
    background: white;
    color: var(--color-blue);
    transform: translateY(-5px);
}

.circle-deco-1,
.circle-deco-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.circle-deco-1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
}

.circle-deco-2 {
    width: 150px;
    height: 150px;
    top: 50px;
    right: 50px;
}

.contact-form-panel {
    flex: 3;
    padding: 60px;
    background: white;
}

.form-row {
    display: flex;
    gap: 25px;
}

.input-group-modern {
    margin-bottom: 30px;
    width: 100%;
}

.input-group-modern label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-text);
    font-size: 14px;
}

.input-group-modern input,
.input-group-modern textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #f1f5f9;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: 0.3s;
    background: #f8fafc;
    color: var(--color-text);
}

.input-group-modern input:focus,
.input-group-modern textarea:focus {
    border-color: var(--color-blue);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 133, 227, 0.1);
}

.send-btn {
    width: auto;
    padding: 16px 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0, 133, 227, 0.2);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 133, 227, 0.3);
}

/* =========================================
   12. MODALS & FORMS (GLASS STYLE)
   ========================================= */
.modal {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start; /* 🟢 เปลี่ยนเป็น flex-start ไม่ให้ทะลุขอบบน */
    overflow-y: auto;
    padding: 60px 20px; /* 🟢 เพิ่มระยะห่างด้านบน 60px ให้มีพื้นที่หายใจ */
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    font-family: var(--font-body);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: auto; /* 🟢 เพิ่มบรรทัดนี้ครับ */
}

.modal-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 28px;
    margin-top: 0;
}

.close-btn {
    color: #cbd5e1;
    float: right;
    font-size: 32px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--color-blue);
}

.modal-gallery {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.modal-gallery .main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #eee;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.thumbnail-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 15px;
    padding-bottom: 5px;
}

.thumbnail-nav img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumbnail-nav img:hover {
    opacity: 0.8;
}

.thumbnail-nav img.active {
    opacity: 1;
    border-color: var(--color-blue);
    transform: scale(0.95);
}

.modal-tag {
    background: #e0f2fe;
    color: var(--color-blue);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
}

.modal-info-grid {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
}

.info-item i {
    color: var(--color-blue);
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-buttons .modal-button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-family: var(--font-head);
    height: 50px;
}

.map-btn {
    background-color: #3b82f6;
}

.map-btn:hover {
    background-color: #2563eb;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--color-blue);
    outline: none;
    background: white;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.modal-button {
    background: var(--color-blue);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.modal-button:hover {
    background: var(--color-cyan);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 133, 227, 0.2);
}

.review-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.review-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-user {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-blue);
}

.review-date {
    font-size: 12px;
    color: #94a3b8;
}

.review-stars {
    color: var(--color-yellow);
    font-size: 13px;
    margin-bottom: 8px;
}

.review-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.star-rating-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 28px;
    color: #e2e8f0;
    cursor: pointer;
    justify-content: center;
}

.star-rating-input i.filled {
    color: var(--color-yellow);
    filter: drop-shadow(0 2px 4px rgba(255, 206, 112, 0.4));
}

/* =========================================
   13. FOOTER REDESIGN & GRID SYSTEM
   ========================================= */
.footer {
    background: #0f172a;
    padding: 80px 5% 40px;
    color: white;
    text-align: left;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-slogan {
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 350px;
}

.footer-links h4 {
    font-family: var(--font-head);
    font-size: 18px;
    color: white;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    font-size: 15px;
    color: #94a3b8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--color-cyan);
    transform: translateX(8px);
}

.footer-divider {
    margin: 60px 0 30px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: #64748b;
}



/* =========================================
   15. SEARCH TAG STYLES
   ========================================= */
.search-tag-hint {
    background-color: #f1f5f9;
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-weight: 500;
}

.search-tag-hint:hover {
    background-color: #e0f2fe;
    color: var(--color-blue);
    transform: translateY(-2px);
}

/* =========================================
   16. DETAIL PAGE STYLES (NEW MODERN)
   ========================================= */
.detail-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.detail-container {
    max-width: 1100px;
    margin: -120px auto 50px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.detail-header-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.detail-title {
    font-size: 56px;
    color: var(--color-blue);
    margin: 10px 0;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -1px;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #64748b;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.detail-meta i {
    color: var(--color-cyan);
    margin-right: 8px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.story-section h3,
.menu-section h3 {
    font-family: var(--font-head);
    font-size: 28px;
    border-left: 6px solid var(--color-yellow);
    padding-left: 20px;
    margin-bottom: 30px;
    color: var(--color-text);
    font-weight: 700;
}

.story-text {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    text-align: left; /* บังคับชิดซ้ายเพื่อไม่ให้ช่องไฟห่างเกินไป */
    word-break: normal; /* ให้เบราว์เซอร์ตัดคำไทยตามหลักพจนานุกรม */
    overflow-wrap: normal;
}

.story-text p {
    margin-top: 0;
    margin-bottom: 15px;
}

.info-sidebar {
    background: white;
    padding: 35px;
    border-radius: 10px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.info-row {
    margin-bottom: 20px;
    display: flex;
    align-items: start;
    gap: 15px;
    font-size: 15px;
    color: var(--color-text);
}

.info-row i {
    color: var(--color-blue);
    margin-top: 3px;
    font-size: 18px;
}

/* Bento Grid Style for Menu */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.menu-item {
    border-radius: 10px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.4s ease;
}

.menu-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.menu-item:hover img {
    transform: scale(1.1);
}


    .content-grid {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 36px;
    }

    .detail-container {
        margin-top: -60px;
    }

    .detail-header-card {
        padding: 30px 20px;
    }


/* --- Active State Menu --- */
.nav ul li a.active {
    color: var(--color-cyan) !important;
    position: relative;
}

.nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Loading Animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.loader-spinner {
    border-color: var(--color-bg-soft);
    border-top-color: var(--color-blue);
}

.user-menu span {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   USER PROFILE MENU (HEADER) - BLOOM THEME
   ========================================= */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.6);
    /* เอฟเฟกต์กระจกใส */
    backdrop-filter: blur(10px);
    padding: 6px 6px 6px 18px;
    /* ทำรูปทรงแคปซูล */
    border-radius: 10px;
    border: 1px solid rgba(0, 133, 227, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    animation: fadeInDown 0.4s ease;
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 212, 194, 0.3);
    box-shadow: 0 6px 20px rgba(0, 133, 227, 0.1);
    transform: translateY(-2px);
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-blue);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: default;
}

/* ทำให้ไอคอนรูปคนไล่สี (Gradient) เหมือนโลโก้ BLOOM */
.user-name i {
    font-size: 18px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ปุ่ม Logout สีชมพูที่เข้ากับธีม */
.logout-btn {
    background: var(--color-pink);
    color: white;
    border: none;
    padding: 8px 18px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    background: #d88395;
    /* สีชมพูเข้มขึ้นตอนชี้เมาส์ */
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(234, 152, 169, 0.4);
}

/* แอนิเมชันตอนโหลดชื่อขึ้นมา */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* รูปโปรไฟล์บนแถบ Header */
.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-cyan);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ทำให้ชื่อบน Header คลิกได้ */
.user-name {
    transition: 0.3s;
}

.user-name:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* =========================================
   CUSTOM TOAST NOTIFICATION
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 6px solid var(--color-cyan);
    padding: 16px 25px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    /* แอนิเมชันตอนเริ่ม (ซ่อนอยู่ขวาจอ) */
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* เด้งๆ ดึ๋งๆ */
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* กรณีแจ้งเตือน Error จะเป็นสีแดง */
.custom-toast.error {
    border-left-color: #ff4757;
}

.custom-toast i {
    font-size: 22px;
}

.custom-toast.success i {
    color: var(--color-cyan);
}

.custom-toast.error i {
    color: #ff4757;
}

/* =========================================
   SOCIAL LOGIN BUTTONS
   ========================================= */
.social-login-container {
    margin-top: 20px;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 15px 0 20px;
    color: #94a3b8;
    font-size: 13px;
}

.divider-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider-text span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-btn-group {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.google-btn {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.google-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.facebook-btn {
    background: #1877f2;
    color: white;
    box-shadow: 0 2px 5px rgba(24,119,242,0.2);
}

.facebook-btn:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24,119,242,0.3);
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr; /* บังคับให้เมนูด้านขวา ตกลงมาอยู่ด้านล่างเมื่อจอแคบ */
        gap: 30px;
    }
}

/* ป้องกันคำฉีกขาดในหน้าต่าง Popup */
#modalDetails {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
    margin-top: 20px;
}

/* =========================================
   COMMUNITY FEED (Lemon8 Style)
   ========================================= */
.community-grid {
    column-count: 2; /* แบ่ง 2 คอลัมน์บนมือถือ/แท็บเล็ต */
    column-gap: 15px;
    padding: 0 10px;
}

@media (min-width: 992px) {
    .community-grid {
        column-count: 4; /* แบ่ง 4 คอลัมน์บนจอคอม */
        column-gap: 20px;
    }
}

.feed-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px; /* มือถือใช้ 15px */
    break-inside: avoid; /* ป้องกันการ์ดโดนตัดครึ่ง */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}

@media (min-width: 992px) {
    .feed-card { margin-bottom: 20px; }
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feed-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 400px;
    background: #f8fafc;
}

.feed-content {
    padding: 15px;
}

.feed-shop-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 5px;
}

.feed-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* ตัดข้อความถ้ายาวเกิน 3 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ตกแต่ง Hashtag */
.feed-text .hashtag {
    color: var(--color-pink);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.feed-text .hashtag:hover { text-decoration: underline; }

.feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.feed-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.feed-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.like-btn {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
    font-family: var(--font-body);
    font-weight: 600;
    transition: 0.2s;
}

.like-btn:hover { color: var(--color-pink); }
.like-btn.liked { color: var(--color-pink); }
.like-btn.liked i { animation: heartBeat 0.3s ease-in-out; }

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* =========================================
   14. RESPONSIVE สำหรับมือถือ (รวมครบจบในอันเดียว 100%)
   ========================================= */
@media (max-width: 768px) {
    /* --- 1. แถบเมนูด้านบน (Header & Hamburger Menu) --- */
    .header {
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.98);
    }

    .menu-icon {
        display: block !important; 
        font-size: 28px;
        color: var(--color-blue);
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        display: none;
        z-index: 99;
    }

    .nav.open { display: flex; }
    .nav ul { flex-direction: column; gap: 25px; text-align: center; }

    /* --- 2. หน้าแรก (Hero Section & Logo) --- */
    .hero-title { font-size: 42px; }
    .hero-subtitle { font-size: 16px; }
    .hero-container-ref { margin-top: 0; }
    
    .hero-logo-custom .logo-text { 
        font-size: 50px; 
        -webkit-text-stroke: 2px white; 
    }
    .hero-logo-custom .logo-dot {
        height: 40px;
        width: 10px;
    }
    
    .hero-bottom-features {
        flex-direction: column;
        gap: 15px;
        left: 20px;
        bottom: 20px;
    }

    /* --- 3. การ์ดร้านค้าและปุ่มฟิลเตอร์ --- */
    .sections-container { padding: 100px 20px 80px; }
    .custom-back-btn { top: 80px; left: 20px; }
    .card-grid { grid-template-columns: 1fr; }
    .filter-container { gap: 10px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }

    /* --- 4. หน้าต่าง Popup (Login, Profile, Details) --- */
    .modal { padding: 20px 15px; }
    .modal-content { padding: 25px 20px; }
    .modal-title { font-size: 24px; }
    .social-btn-group { flex-direction: column; }
    .modal-gallery .main-image { height: 200px; }
    .modal-buttons { flex-direction: column; gap: 15px; }
    .profile-stats { gap: 20px !important; }
    .review-item { flex-direction: column; align-items: flex-start; }

    /* --- 5. หน้า About & Contact --- */
    .about-intro-block { flex-direction: column; text-align: center; gap: 40px; }
    .image-decoration { left: 15px; top: 15px; }
    .about-slogan { font-size: 28px; }
    .contact-card-modern { flex-direction: column; }
    .contact-info-panel, .contact-form-panel { padding: 30px 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .circle-deco-1, .circle-deco-2 { display: none; }
    .send-btn { width: 100%; justify-content: center; }

    /* --- 6. หน้า Detail ร้านค้า (ดึงข้อมูลมาจากหน้า Details) --- */
    .content-grid { grid-template-columns: 1fr; }
    .detail-title { font-size: 36px; }
    .detail-container { margin-top: -60px; }
    .detail-header-card { padding: 30px 20px; }

    /* --- 7. Footer --- */
    .footer-content-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand { align-items: center; }
    .footer-slogan { text-align: center; margin: 15px auto; }
    .footer-links ul li a:hover { transform: none; }
}

/* 🟢 ปุ่มลอยสำหรับโพสต์รีวิว */
.floating-post-btn {
    position: fixed;
    bottom: 30px;
    right: 100px; /* วางไว้ข้างๆ ปุ่ม Back to Top */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(234, 152, 169, 0.4);
    z-index: 998;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-post-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.custom-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-family: var(--font-body);
    font-size: 16px;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .floating-post-btn {
        right: 20px;
        bottom: 90px; /* หลบปุ่ม Back to Top บนมือถือ */
    }

    /* 🟢 1. ทำให้ปุ่ม Filter ปัดซ้าย-ขวาได้ (Swipeable) */
    .filter-container {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* ให้ปัดลื่นๆ บน iOS */
    }
    
    /* ซ่อนหลอด Scrollbar แนวนอนเพื่อความสวยงาม */
    .filter-container::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        white-space: nowrap; /* บังคับไม่ให้ข้อความในปุ่มฉีกขาด */
        flex-shrink: 0; /* ป้องกันปุ่มโดนบีบจนเบี้ยว */
    }

    /* 🟢 2. ลดความสูงแผนที่บนมือถือ ป้องกันนิ้วติด */
    .map-container {
        height: 280px !important; 
    }
    
    /* ปรับวงกลมเส้นปะสีชมพูให้เล็กลงตามแผนที่ */
    .map-container > div {
        width: 200px !important;
        height: 200px !important;
    }

    /* 🟢 3. ขยับปุ่มกากบาทและขอบ Modal ให้กดง่ายขึ้น */
    .modal {
        padding: 40px 15px 20px; /* ลดขอบบนลง ไม่ให้ติดติ่งรูกล้องมือถือ */
    }
    .close-btn {
        font-size: 36px; /* ขยายปุ่ม X ให้ใหญ่ขึ้นกดยาก */
        margin-top: -10px;
        margin-right: -5px;
    }
}
