:root {
    --bg-dark: #0a1120;
    --bg-card: #131c31;
    --primary-gold: #c6a87c;
    --primary-gold-hover: #e0cba8;
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    padding-bottom: 0;
    /* Updated for bottom nav on mobile */
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gold-text {
    color: var(--primary-gold);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

.btn-login {
    background: #06C755;
    /* LINE Green */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Prompt';
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: scale(1.05);
}

/* User Profile Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-manage-data {
    color: var(--primary-gold);
    text-decoration: underline;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-manage-data:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Deep Blue Gradient for Ocean Feel */
    background: linear-gradient(180deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    overflow: hidden;
}

/* Wave Animation Styles */
.wave-container {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    line-height: 0;
    z-index: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

/* Parallax Animation */
.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* ===== ไฟสัญญาณเรือ (Navigation Light Blink) ===== */
/* กระพริบแบบไม่สม่ำเสมอ เหมือนไฟ Morse/Navigation จริง */
@keyframes nav-blink-halo {
    0%   { opacity: 0; }
    4%   { opacity: 0.35; }
    8%   { opacity: 0; }
    12%  { opacity: 0.3; }
    16%  { opacity: 0; }
    60%  { opacity: 0; }
    64%  { opacity: 0.4; }
    68%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes nav-blink-glow {
    0%   { opacity: 0; }
    4%   { opacity: 0.75; }
    8%   { opacity: 0; }
    12%  { opacity: 0.7; }
    16%  { opacity: 0; }
    60%  { opacity: 0; }
    64%  { opacity: 0.8; }
    68%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes nav-blink-core {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    8%   { opacity: 0; }
    12%  { opacity: 1; }
    16%  { opacity: 0; }
    60%  { opacity: 0; }
    64%  { opacity: 1; }
    68%  { opacity: 0; }
    100% { opacity: 0; }
}

.nav-light-halo {
    animation: nav-blink-halo 4s ease-in-out infinite;
    filter: blur(2px);
}
.nav-light-glow {
    animation: nav-blink-glow 4s ease-in-out infinite;
    filter: blur(0.5px);
}
.nav-light-core {
    animation: nav-blink-core 4s ease-in-out infinite;
}

/* Animated Sailboat on Waves */
.animated-boat {
    position: absolute;
    bottom: 50px;
    /* Base bottom height for desktop */
    left: -10%;
    /* Start off-screen */
    font-size: 2.5rem;
    color: #fff;
    z-index: 2;
    /* Between waves overlay and text */
    animation:
        sail-boat 25s linear infinite,
        rock-boat 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

@keyframes sail-boat {
    0% {
        left: -10%;
    }

    100% {
        left: 110%;
    }
}

@keyframes rock-boat {
    0% {
        transform: translateY(0) rotate(-8deg);
    }

    100% {
        transform: translateY(-12px) rotate(8deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .waves {
        height: 85px;
        min-height: 85px;
    }

    .animated-boat {
        bottom: 30px;
        font-size: 2rem;
    }

    .animated-boat svg {
        width: 60px;
        height: 35px;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 0;
        align-items: center;
    }

    .wave-container {
        bottom: 55px;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Light overlay to ensure text is readable but waves are visible */
    background: radial-gradient(circle, rgba(10, 17, 32, 0.2) 0%, rgba(10, 17, 32, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 20px;
    color: var(--text-gray);
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px 20px 15px 50px;
    border-radius: 30px;
    font-family: 'Prompt';
    width: 250px;
}

.input-group input:focus {
    outline: 1px solid var(--primary-gold);
}

.btn-search {
    background: linear-gradient(45deg, #c6a87c, #b08d55);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(198, 168, 124, 0.3);
}

/* Stats */
.stats {
    padding: 40px 0;
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 20px 10px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
}


.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    font-family: 'Prompt', sans-serif;
    /* Use Prompt instead of Playfair for numbers */
}

.stat-item p {
    color: var(--text-gray);
}

/* Boat Section */
.boat-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.divider {
    height: 2px;
    width: 100px;
    background: var(--primary-gold);
    margin: 20px auto;
}

.boat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .boat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .boat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 0 8px;
    }

    .boat-card {
        border-radius: 10px;
    }

    .boat-img {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .boat-info {
        padding: 8px 10px;
    }

    .boat-title h3 {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .boat-header {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 6px;
    }

    .price-box {
        text-align: left;
    }

    .price-box .old-price {
        font-size: 0.65rem;
    }

    .price-box .current-price {
        font-size: 0.85rem;
    }

    .location,
    .rating {
        font-size: 0.7rem;
    }

    .btn-book {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 15px;
    }

    .boat-section {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 25px;
    }
}

.boat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-gold);
}

.boat-img {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
    object-fit: cover;
}

.boat-info {
    padding: 25px;
}

.boat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.boat-title h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 5px;
}

.location {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.rating {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.price-box {
    text-align: right;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.new-price {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Prompt', sans-serif;
}

.features {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--text-gray);
    cursor: default;
    transition: opacity 0.2s ease;
    /* minimum tap target */
    min-height: 28px;
    align-items: center;
    display: inline-flex;
}

a.tag {
    cursor: pointer;
}

a.tag:hover,
a.tag:active {
    opacity: 0.8;
}

.btn-book {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Prompt';
}

.btn-book:hover {
    background: var(--primary-gold);
    color: #000;
}

.loading-spinner {
    text-align: center;
    color: var(--primary-gold);
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.socials {
    margin-top: 15px;
    font-size: 1.2rem;
}

.socials a {
    color: var(--text-gray);
    margin: 0 10px;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav a {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 5px;
    flex: 1;
    transition: 0.3s;
}

.mobile-bottom-nav a i {
    font-size: 1.2rem;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary-gold);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .nav-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn-login {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .user-profile {
        padding: 5px 10px 5px 5px;
        gap: 5px;
    }

    .user-profile span {
        display: none;
        /* Hide name on mobile */
    }

    .btn-manage-data {
        font-size: 0.75rem;
    }

    .waves {
        height: 85px;
        min-height: 85px;
    }



    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .search-box {
        flex-direction: column;
        width: 90%;
    }

    .input-group input {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    /* ===== Mobile Card Layout Fix ===== */
    .boat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 0 8px;
    }

    .boat-card {
        border-radius: 10px;
    }

    .boat-card:hover {
        transform: none;
        box-shadow: none;
    }

    .boat-img {
        height: 120px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .boat-info {
        padding: 8px 10px;
    }

    .boat-header {
        margin-bottom: 4px;
        flex-direction: column;
        gap: 2px;
    }

    .boat-title h3 {
        font-size: 0.8rem;
        margin-bottom: 2px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .boat-info>p {
        font-size: 0.7rem !important;
        margin-bottom: 6px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .features {
        gap: 4px;
        margin: 4px 0;
    }

    .tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .new-price {
        font-size: 0.95rem !important;
    }

    .btn-book {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .price-box {
        text-align: left;
    }

    /* Filter & View Toggle Mobile */
    .view-toggle {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .btn-filter {
        font-size: 0.78rem;
        padding: 5px 12px;
        margin: 3px 3px;
    }

    /* Map container mobile */
    #map, #userMap {
        height: 350px !important;
        border-radius: 10px !important;
    }

    .leaflet-popup-content {
        margin: 8px !important;
        max-width: 200px !important;
    }

    /* Section headings mobile */
    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title .gold-text {
        font-size: 1.5rem;
    }

    /* Stats row mobile (home page) */
    .stats-grid {
        gap: 15px 8px;
    }

    .stat-item {
        min-width: 80px;
        flex: 1 1 calc(50% - 16px);
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    /* Footer mobile */
    footer {
        padding: 20px 0;
        padding-bottom: 80px;
    }
}

/* View Toggle Buttons */
.view-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Prompt';
}

.view-toggle:hover {
    border-color: var(--primary-gold);
    color: white;
}

.view-toggle.active {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

.btn-filter {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 5px 15px;
    margin: 0 5px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

.owner-clickable {
    cursor: pointer !important;
    opacity: 0.8;
}

.owner-clickable:hover {
    opacity: 1;
    border: 2px solid white;
}

/* ===== COMPREHENSIVE RESPONSIVE ===== */

/* Airbnb Style Map Marker */
.airbnb-marker {
    background: white;
    color: black;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid #ddd;
    text-align: center;
    font-family: 'Prompt', sans-serif;
}

.airbnb-marker:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* Masonry Grid (1 large left, 2 small stacked right) */
.masonry-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 200px);
    gap: 10px;
    border-radius: 15px;
    overflow: hidden;
}

.masonry-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.masonry-grid img:hover {
    transform: scale(1.02);
}

.masonry-grid .img-1 {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.masonry-grid .img-2 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.masonry-grid .img-3 {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

.masonry-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.masonry-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Fallbacks for fewer images */
.masonry-grid.grid-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 400px;
}

.masonry-grid.grid-1 .img-1 {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.masonry-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 400px;
}

.masonry-grid.grid-2 .img-1 {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.masonry-grid.grid-2 .img-2 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

/* Review smaller grids */
.review-masonry {
    grid-template-rows: repeat(2, 100px);
    margin-top: 15px;
    max-width: 500px;
}

.review-masonry.grid-1,
.review-masonry.grid-2 {
    grid-template-rows: 200px;
}


/* Medium-sized screens / small desktops */
@media (max-width: 1200px) {
    .nav-links {
        gap: 12px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .boat-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        display: none !important;
    }

    .stats-grid {
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        padding-top: 60px;
        padding-bottom: 0;
        align-items: center;
    }

    .wave-container {
        bottom: 55px;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-top: 0;
    }

    .hero p {
        font-size: 0.8rem;
    }

    .boat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 6px;
    }

    .boat-img {
        height: 100px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .boat-info {
        padding: 6px 8px !important;
    }

    .boat-title h3 {
        font-size: 0.72rem !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
    }

    .location,
    .rating {
        font-size: 0.65rem !important;
    }

    .btn-book {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
    }

    .stat-item h3 {
        font-size: 1.2rem;
    }

    .stat-item p {
        font-size: 0.7rem;
    }

    .mobile-bottom-nav {
        padding: 6px 0 4px;
    }

    .mobile-bottom-nav a {
        font-size: 0.6rem;
    }

    .mobile-bottom-nav i {
        font-size: 1rem;
    }

    .search-box {
        padding: 10px;
        gap: 8px;
    }

    .input-group input {
        padding: 10px 10px 10px 40px;
        font-size: 0.85rem;
    }

    .btn-search {
        padding: 10px;
        font-size: 0.85rem;
    }

    footer {
        font-size: 0.75rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 0 30px;
    }

    .mobile-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* Ensure touch targets */
@media (pointer: coarse) {

    .btn-book,
    .btn-filter,
    .view-toggle,
    .btn-search {
        min-height: 44px;
    }

    .day {
        min-height: 38px;
        min-width: 38px;
    }
}

/* =========================================
   Animation สำหรับคลื่นน้ำกระจายหน้าเรือ
========================================= */
.splash-1,
.splash-2 {
    /* กำหนดจุดหมุน/จุดขยายให้อยู่ที่หัวเรือ (ด้านขวา) */
    transform-origin: right center;
    transform-box: fill-box;
}

.splash-1 {
    animation: water-splash 1.2s infinite ease-out;
}

.splash-2 {
    /* ใส่ delay 0.6s เพื่อให้คลื่น 2 เส้นกระจายสลับจังหวะกัน */
    animation: water-splash 1.2s infinite ease-out 0.6s;
}

@keyframes water-splash {
    0% {
        /* เริ่มต้น: คลื่นเล็กๆ รวมตัวที่หัวเรือ */
        transform: translate(5px, -2px) scale(0.5);
        opacity: 0;
    }

    30% {
        /* จังหวะกระแทกน้ำ: สว่างและชัดเจนที่สุด */
        opacity: 0.9;
    }

    100% {
        /* ตอนท้าย: คลื่นถูกพัดไปด้านหลัง ขยายตัว และจางหายไป */
        transform: translate(-15px, 4px) scale(1.3);
        opacity: 0;
    }
}

/* =========================================
   เรือลำที่ 2 (วิ่งสวนทางจากขวาไปซ้าย)
========================================= */
.animated-boat-2 {
    position: absolute;
    bottom: 65px;
    /* วางให้สูงกว่าลำแรกนิดนึง จะได้ดูเหมือนอยู่ไกลออกไป */
    right: -15%;
    /* เริ่มวิ่งจากขอบขวา */
    z-index: 3;
    /* ให้อยู่หลังเรือลำแรกเวลาสวนกัน */
    animation:
        sail-boat-reverse 37s linear infinite,
        /* ใช้เวลา 37 วิ (เหลื่อมกับ 25s ของลำแรก) */
        rock-boat-reverse 2.8s ease-in-out infinite alternate;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
}

/* คลาสสำหรับกลับด้าน SVG ให้เรือหันไปทางซ้าย */
.boat-flip {
    transform: scaleX(-1);
}

@keyframes sail-boat-reverse {
    0% {
        right: -15%;
    }

    100% {
        right: 115%;
    }
}

@keyframes rock-boat-reverse {
    0% {
        transform: translateY(0) rotate(-4deg);
    }

    100% {
        transform: translateY(-8px) rotate(4deg);
    }
}

/* ปรับตำแหน่งและขนาดเพิ่มเติมสำหรับหน้าจอมือถือ */
@media (max-width: 768px) {
    .animated-boat-2 {
        bottom: 40px;
        /* ลดความสูงลงมาในจอมือถือ */
    }

    .animated-boat-2 svg {
        width: 60px;
        /* ย่อขนาดให้เหมาะสมกับมือถือ */
        height: 35px;
    }
}

/* Searchable Province Dropdown */
.prov-search {
    position: relative;
    width: 100%;
}
.prov-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 28, 48, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: left;
}
.prov-dropdown.show {
    display: block;
}
.prov-dropdown .prov-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.prov-dropdown .prov-item:hover {
    background: rgba(198, 168, 124, 0.15);
    color: #fff;
    padding-left: 18px;
}

/* Hide Map API attribution logo universally */
.leaflet-control-attribution {
    display: none !important;
}
/* Fullscreen styles for Leaflet Maps */
#userMap:fullscreen, #boatMap:fullscreen {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    max-height: none !important;
}
#userMap:-webkit-full-screen, #boatMap:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    max-height: none !important;
}

/* Universal Leaflet Fullscreen Toggle Styles (100% iOS & Android Compatibility) */
#userMap.leaflet-fullscreen-active,
#boatMap.leaflet-fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important; /* Extremely high z-index to cover header & footer-bar */
    border-radius: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.leaflet-fullscreen-body-active {
    overflow: hidden !important;
}

/* Custom Active Colors for Homepage Categories */
.btn-filter[data-type="all"].active {
    background: var(--primary-gold) !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(198, 168, 124, 0.4) !important;
}
.btn-filter[data-type="boat"].active {
    background: #0088FF !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.4) !important;
}
.btn-filter[data-type="shop"].active {
    background: #8E24AA !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(142, 36, 170, 0.4) !important;
}
.btn-filter[data-type="bait"].active {
    background: #00E676 !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4) !important;
}
.btn-filter[data-type="pond"].active {
    background: #FF9100 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(255, 145, 0, 0.4) !important;
}
