/* --- Global Styles & Variables --- */
:root {
    --mint: #86efac;
    --sky: #38bdf8;
    --dark-blue: #0c4a6e;
    --light-bg: #f0f9ff;
    --white: #ffffff;
    --gray: #f3f4f6;
    --text-color: #333;
    --primary-font: 'Kanit', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--sky), var(--mint));
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: var(--sky);
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--sky), var(--mint));
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(56, 189, 248, 0.3);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar .container {
    display: flex;
    justify-content: flex-end;
}
.top-bar a {
    color: var(--white);
    margin-left: 20px;
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: var(--mint);
}
.top-bar i {
    margin-right: 8px;
    color: var(--mint);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 80px;
}
.main-nav ul {
    list-style: none;
    display: flex;
}
.main-nav li {
    margin-left: 30px;
}
.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--sky);
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-blue);
}

/* --- Mobile Menu (Simple Version) --- */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 143px; /* Adjusted for larger logo */
    right: 0;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 143px);
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}
.mobile-menu.active {
    transform: translateX(0);
}
.mobile-menu a {
    padding: 20px;
    color: var(--dark-blue);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--gray);
    transition: background-color 0.3s;
}
.mobile-menu a:hover {
    background-color: var(--light-bg);
}

/* --- Hero Section Slider --- */
#hero {
    padding: 40px 0;
    background-color: var(--light-bg);
}
.swiper {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    aspect-ratio: 1280 / 720; 
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:root {
    --swiper-theme-color: var(--sky);
}

/* --- Introduction Section --- */
#introduction {
    background-color: var(--white);
}
.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.intro-title {
    font-size: 2.2rem;
    color: #0d5e68;
    font-weight: 600;
    margin-bottom: 5px;
}
.intro-address {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}
.intro-text {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.intro-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}
.btn-intro {
    color: var(--white);
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-intro:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}
.btn-call { background-color: #f97316; }
.btn-line { background-color: #14b8a6; }
.btn-facebook { background-color: #3b82f6; }
.intro-promotion h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 40px 0 20px 0;
}
.promo-highlight {
    color: #ef4444;
    font-size: 2.2rem;
    font-weight: 600;
}

/* --- Services Section --- */
#services {
    padding: 60px 0;
    background-color: var(--light-bg);
}
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.service-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-card-content h3 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}
.service-card-content p {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
}
.service-card-content .btn {
    align-self: flex-start;
    background: var(--dark-blue);
}
.service-card-content .btn:hover {
     background: var(--sky);
}

/* --- Room Types Section --- */
#rooms {
    background-color: var(--white);
}
.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.room-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--light-bg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.room-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.room-card-content {
    padding: 25px 20px;
}
.room-card-content h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin: 0 0 10px 0;
}
.room-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* --- Video Section --- */
#videos {
    background-color: var(--white);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.video-container {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}
.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.video-container:hover img {
    transform: scale(1.05);
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}
.play-button i {
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.video-container:hover .play-button {
    background-color: rgba(255, 0, 0, 0.8);
}
.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Gallery Section --- */
#gallery {
    padding: 60px 0;
    background-color: var(--light-bg);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item::after {
    content: '\f00e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(56, 189, 248, 0.6);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* --- Contact Section --- */
#contact {
    background-color: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: stretch; 
}
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
}
.contact-form h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}
.contact-form p {
    margin-bottom: 30px;
    color: #555;
    font-size: 1.1rem;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--primary-font);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.form-contact-details {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.form-contact-details h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}
.form-contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}
.form-contact-details p i {
    color: var(--sky);
    margin-right: 15px;
    width: 20px;
    font-size: 1.2rem;
}
.form-contact-details a {
    color: var(--text-color);
    transition: color 0.3s;
}
.form-contact-details a:hover {
    color: var(--sky);
}
.contact-map {
    position: relative; /* < กำหนดให้เป็นจุดอ้างอิง */
    overflow: hidden;   /* < ซ่อนส่วนของแผนที่ที่ล้นออกไป */
    border-radius: 10px;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9; /* ยังคงสัดส่วนเดิมไว้ */
}

.contact-map iframe {
    position: absolute; /* < ทำให้เราสามารถจัดตำแหน่งได้อย่างอิสระ */
    top: 50%;
    left: 50%;
    transform: translate(-70%, -50%); /* < จัดให้กึ่งกลางของ iframe อยู่กึ่งกลางกรอบ */
    
    width: 120%;  /* < ขยายแผนที่ให้ใหญ่กว่ากรอบ */
    height: 120%; /* < ขยายแผนที่ให้ใหญ่กว่ากรอบ */
    
    border: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}
footer .container a[href*="free-counters.org"] {
    display: block; 
    margin-top: 15px; 
}

/* --- Floating Action Buttons --- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fab-item {
    width: 55px;
    height: 55px;
    background-color: var(--sky);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.fab-item:nth-child(2) { background-color: #06C755; }
.fab-item:nth-child(3) { background-color: #1877F2; }
.fab-item:nth-child(4) { background-color: var(--dark-blue); display: none; }
.fab-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; }
    .room-grid { grid-template-columns: 1fr; }
    .services-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hamburger { display: block; }
    .top-bar .container { justify-content: center; }
    .section-title { font-size: 2rem; }
    .intro-title { font-size: 1.8rem; }
    .intro-promotion h2 { font-size: 1.4rem; }
    .promo-highlight { font-size: 1.7rem; }
    .services-page-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .intro-buttons {
        gap: 8px;
    }
    .btn-intro {
        flex: 1;
        padding: 12px 5px;
        font-size: 0.9rem;
        justify-content: center;
    }
}
/* --- Visitor Counter Style --- */
footer .container {
    text-align: center;
}

footer .container img[alt*="visitor counter"] {
    display: block;
    margin: 15px auto 0;
}
/* --- Social Icons in Contact Section --- */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* ระยะห่างระหว่างไอคอน */
    margin-top: 25px; /* ระยะห่างจากข้อความด้านบน */
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--sky);
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
