:root {
    --brand-gold: #C5A059;
    --brand-dark: #1A1A1A;
    --brand-gray: #F5F5F5;
    --brand-accent: #D4AF37;
}

* {
    font-family: 'Prompt', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #6c757d;
}

/* Navbar Styles */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-dark) !important;
}

.navbar-brand span {
    color: var(--brand-gold);
}

.nav-link {
    color: #6c757d !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--brand-gold) !important;
}

.btn-nav-cta {
    background-color: var(--brand-dark);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-nav-cta:hover {
    background-color: var(--brand-gold);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-description {
    color: #e5e5e5;
    font-size: 1.125rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero Buttons with Proper Spacing */
.hero-content .d-flex {
    gap: 3rem !important; /* Default for Desktop */
}

.btn-hero-primary {
    background-color: var(--brand-gold);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--brand-gold);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    min-width: 180px;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    background-color: white;
    color: var(--brand-gold);
}

.btn-hero-secondary {
    background-color: transparent;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid white;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    min-width: 180px;
    white-space: nowrap;
}

.btn-hero-secondary:hover {
    background-color: white;
    color: var(--brand-dark);
}

.slider-dots {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background-color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 49%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.3s;
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Headers */
.section-label {
    color: var(--brand-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 0.5rem;
}

.section-divider {
    width: 4rem;
    height: 4px;
    background-color: var(--brand-gold);
    margin: 1rem auto;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    border-radius: 12px;
    background-color: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--brand-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background-color: var(--brand-gold);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--brand-dark);
    transition: color 0.3s;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background-color: var(--brand-dark);
    color: white;
    padding: 4rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Portfolio/Styles Section */
.portfolio-section {
    background-color: rgba(245, 245, 245, 0.3);
    padding: 5rem 0;
    overflow: hidden;
}

.portfolio-scroll-container {
    position: relative;
    width: 100%;
    overflow: visible; 
}

.portfolio-fade-left,
.portfolio-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8rem;
    z-index: 10;
    pointer-events: none;
}

.portfolio-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(245, 245, 245, 1), transparent);
}

.portfolio-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(245, 245, 245, 1), transparent);
}

.portfolio-slider {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    /* Default animation for desktop */
    animation: scroll-portfolio 30s linear infinite;
    width: 100%;
}

.portfolio-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll-portfolio {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.portfolio-item {
    position: relative;
    height: 320px;
    width: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

@media (min-width: 768px) {
    .portfolio-item {
        width: 400px;
    }
}

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

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--brand-gold);
}

/* Projects Section */
.projects-section {
    background-color: white;
    padding: 5rem 0;
    overflow: hidden;
}

.projects-fade-left,
.projects-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8rem;
    z-index: 10;
    pointer-events: none;
}

.projects-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent);
}

.projects-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), transparent);
}

.project-item {
    width: 300px;
    flex-shrink: 0;
    cursor: pointer;
}

@media (min-width: 768px) {
    .project-item {
        width: 350px;
    }
}

.project-image-container {
    position: relative;
    height: 256px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-item:hover .project-image-container img {
    transform: scale(1.1);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.2);
    transition: background-color 0.3s;
}

.project-item:hover .project-image-overlay {
    background-color: rgba(26, 26, 26, 0);
}

.project-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-dark);
    transition: color 0.3s;
}

.project-item:hover .project-title {
    color: var(--brand-gold);
}

.project-details {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Residential Types */
.residential-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.residential-type-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.residential-type-title i {
    color: var(--brand-gold);
    margin-right: 1rem;
}

.residential-item {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 10px; /* เพิ่มระยะเผื่อไว้สำหรับหน้าจอที่ Grid ไม่ทำงาน */
}

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

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

.residential-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.residential-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.residential-item-subtitle {
    color: var(--brand-gold);
    font-size: 0.875rem;
}

/* Process Section */
.process-section {
    padding: 5rem 0;
    background-color: white;
}

.process-step {
    text-align: center;
    background-color: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    height: 100%;
}

.process-step:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.process-number {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background-color: var(--brand-dark); /* Default Black for Odd Items */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 0 0 2px #e9ecef;
}

/* Target the column to apply gold color to even items correctly */
.process-section .row > div:nth-child(even) .process-number {
    background-color: var(--brand-gold);
}

.process-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
}

.process-step-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Button Styles */
.btn-outline-dark-custom {
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    background-color: white;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-dark-custom:hover {
    background-color: var(--brand-dark);
    color: white;
}
 
/* ----------------------------------------------------
   CONTACT SECTION STYLES
   ---------------------------------------------------- */
.contact-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
}

/* Card Main Container */
.contact-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- Left Column (Dark) --- */
.contact-info {
    background-color: #151515;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}
 
.contact-info::before {
    display: none; 
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: #a0a0a0;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Phone Highlight Box */
.phone-highlight-box {
    background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%);
    border: 1px solid #4a4a4a;
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.phone-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    background: radial-gradient(circle, #C5A059 0%, #8E7030 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.phone-label-gold {
    color: #C5A059;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.phone-number-big {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

/* Divider Line */
.divider-line {
    height: 1px;
    background-color: #333;
    width: 100%;
}

/* Contact Methods List (LINE/Email) */
.contact-method-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    color: white;
    transition: opacity 0.3s;
}

.contact-method-item:hover {
    color: #C5A059;
}

.method-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    color: white;
}

.line-bg {
    background-color: #06C755;
}

.email-bg {
    background-color: #333333;
}

.method-text {
    font-size: 1rem;
    font-weight: 400;
}

/* Social Circles Bottom */
.social-links {
    display: flex;
    gap: 10px;
}

.social-circle {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.social-circle:hover {
    background-color: #C5A059;
    color: white;
}

/* --- Right Column (Form) --- */
.contact-form-container {
    padding: 3rem;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
}

.form-label-custom {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: #fff;
    color: #495057;
    width: 100%;
}

.form-control-custom::placeholder {
    color: #adb5bd;
}

.form-control-custom:focus {
    border-color: #C5A059;
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.25);
    outline: none;
}

textarea.form-control-custom {
    min-height: 100px;
    resize: vertical;
}

/* Submit Button */
.btn-submit-gold {
    background-color: #C19A5B;
    color: white;
    font-weight: 700;
    padding: 0.9rem;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(193, 154, 91, 0.2);
    cursor: pointer;
}

.btn-submit-gold:hover {
    background-color: #a38148;
    color: white;
    transform: translateY(-2px);
}

/* =======================================================
   NEW FEATURE: FLOATING SOCIAL WIDGET (RE-DESIGNED)
   ======================================================= */
.floating-social-widget {
    position: fixed;
    right: 15px; /* ขยับออกมาจากขอบเล็กน้อยให้ดูสวยงาม */
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px; /* ระยะห่างระหว่างปุ่มที่กระชับขึ้น */
    padding: 5px;
}

.social-item {
    width: 38px;  /* ลดจาก 45px เป็น 38px */
    height: 38px; /* ลดจาก 45px เป็น 38px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.1rem; /* ลดขนาดไอคอนลงเล็กน้อย */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* เงานุ่มๆ */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effect เด้งดึ๋ง */
    text-decoration: none !important;
    position: relative;
}

/* Hover Effect */
.social-item:hover {
    transform: scale(1.15) translateX(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* --- COLORS (MATCHING REAL BRANDS) --- */

/* Phone: Vibrant Green */
.item-phone {
    background-color: #2ECC71; 
}

/* Facebook: Official Blue */
.item-fb {
    background-color: #1877F2;
}

/* Instagram: Official Gradient */
.item-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Line: Official Green */
.item-line {
    background-color: #06C755;
}

/* Message: Gold (Theme Color) */
.item-msg {
    background-color: #C5A059; 
    border: 2px solid #fff; /* เพิ่มขอบขาวให้ปุ่มหลักเด่นขึ้นนิดนึง */
}

/* =========================================
   RESPONSIVE FIXES (Includes Mobile Widget)
   ========================================= */
@media (max-width: 991px) {
    
    /* 1. OVERRIDE PANORA.CSS CONFLICTS */
    #projects,
    .projects-section,
    #styles,
    .portfolio-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* 2. HIDE OVERLAYS ON MOBILE */
    .portfolio-fade-left,
    .portfolio-fade-right,
    .projects-fade-left,
    .projects-fade-right {
        display: none !important;
    }

    /* 3. RE-ENABLE CSS ANIMATION */
    .portfolio-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important; 
        animation: scroll-portfolio 30s linear infinite !important; 
        padding-bottom: 0 !important; 
        gap: 15px !important;
        transform: translateX(0);
    }

    /* PAUSE ANIMATION ON TOUCH */
    .portfolio-slider:active,
    .portfolio-slider:focus,
    .portfolio-item:active {
        animation-play-state: paused !important;
    }

    /* 4. FIX ITEM SIZING AND REDUCE FOR MOBILE */
    .portfolio-item, 
    .project-item {
        flex: 0 0 auto !important; 
        width: 250px !important; /* ลดจาก 280px */
        min-width: 250px !important;
        scroll-snap-align: center;
        margin-right: 15px !important;
        display: block !important;
        visibility: visible !important;
    }

    .portfolio-item {
        height: 260px !important; /* ลดจาก 320px */
    }

    .project-image-container {
        height: 180px !important; /* ลดความสูงรูปลง */
    }
    
    .portfolio-item img,
    .project-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .floating-call-tooltip {
        display: none !important;
    }

    /* --- REDUCE FONT SIZES & PADDING --- */
    
    /* Global Section Spacing */
    .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .mb-5 { margin-bottom: 2rem !important; }

    /* Hero Section */
    .hero-title { font-size: 2.25rem !important; }
    .hero-subtitle { font-size: 0.9rem !important; }
    .hero-description { font-size: 0.95rem !important; }
    .hero-content .d-flex { gap: 1rem !important; }
    .btn-hero-primary, .btn-hero-secondary {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem !important;
        min-width: 140px !important;
    }

    /* Headings */
    .section-title { font-size: 1.75rem !important; margin-top: 0 !important; }
    .section-label { font-size: 0.75rem !important; }

    /* Service Cards */
    .service-card { padding: 1.5rem !important; }
    .service-icon { width: 3rem !important; height: 3rem !important; margin-bottom: 1rem !important; }
    .service-icon i { font-size: 1.25rem !important; }
    .service-title { font-size: 1.1rem !important; }

    /* Stats */
    .stats-section { padding: 3rem 0 !important; }
    .stat-number { font-size: 2rem !important; }
    .stat-label { font-size: 0.8rem !important; }

    /* Contact Form & Info */
    .contact-info, .contact-form-container { padding: 1.5rem !important; }
    .contact-title, .contact-form-title { font-size: 1.35rem !important; }
    .phone-icon-circle { width: 3rem !important; height: 3rem !important; font-size: 1.25rem !important; }
    .phone-number-big { font-size: 1.2rem !important; }
    .social-circle { width: 35px !important; height: 35px !important; }
    .contact-card { border-radius: 12px; }

    /* Residential Types Fixes */
    .residential-section .row {
        display: flex;
        flex-wrap: wrap;
    }
    .residential-section .col-md-6 {
        width: 100% !important; 
        margin-bottom: 20px; 
    }
    .residential-item {
        height: 250px !important; /* ลดจาก 300px */
        width: 100% !important;
    }
    .residential-item-title { font-size: 1rem !important; }

    /* Process */
    .process-step { padding: 1rem !important; }
    .process-number { width: 4rem !important; height: 4rem !important; font-size: 1.25rem !important; }

    /* --- MOBILE FLOATING WIDGET LOGIC --- */
    .floating-social-widget {
        right: 10px; 
        bottom: 30px; /* ย้ายลงมาด้านล่างขวา */
        top: auto;
        transform: none;
        flex-direction: column-reverse; /* ปุ่ม Toggle อยู่ล่างสุด */
    }

    /* ปุ่มหลักในมือถือให้ใหญ่ขึ้นนิดนึงเพื่อให้กดง่าย */
    .item-msg {
        width: 44px;  /* ลดจาก 50px เป็น 44px */
        height: 44px; /* ลดจาก 50px เป็น 44px */
        font-size: 1.25rem; /* ลดขนาดไอคอน */
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    /* ซ่อนไอคอนอื่นๆ */
    .floating-social-widget .social-item:not(.item-msg) {
        display: none;
        opacity: 0;
        transform: translateY(20px) scale(0.5);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    /* แสดงเมื่อ Active (Dropdown Animation) */
    .floating-social-widget.active .social-item:not(.item-msg) {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    
    /* Animation หมุนปุ่ม Message */
    .floating-social-widget.active .item-msg i {
        transform: rotate(360deg);
        transition: transform 0.5s;
    }
}

/* CSS Fix: ป้องกันปุ่มบนมือถือค้างสถานะ Hover หรือเปลี่ยนสี */
@media (max-width: 991px) {
    #btn-house-toggle,
    #btn-condo-toggle,
    .btn-outline-dark-custom,
    .btn-outline-dark-custom:hover,
    .btn-outline-dark-custom:focus,
    .btn-outline-dark-custom:active,
    .btn-outline-dark-custom:visited {
        background-color: #ffffff !important;
        color: #1A1A1A !important;
        border: 1px solid #1A1A1A !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-content .d-flex {
        gap: 3rem !important; /* เพิ่มระยะห่างบน Desktop */
    }
}

@media (max-width: 576px) {
    .hero-content .d-flex {
        gap: 1.25rem !important; 
    }
}