/**
 * Beaches Page Styles
 * Modern, attractive UI following Caribbean BlueBook design
 */

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Move scrollbar to left when filter modal is open */
html.filter-modal-open {
    direction: rtl;
}

/* Keep body and all content in LTR direction even when scrollbar is on left */
html.filter-modal-open body {
    direction: ltr;
}

/* Ensure all content elements maintain LTR direction */
html.filter-modal-open body * {
    direction: ltr;
}

/* Responsive: Ensure scrollbar positioning works on mobile */
@media (max-width: 1024px) {
    html.filter-modal-open {
        direction: rtl;
    }
    
    html.filter-modal-open body {
        direction: ltr;
    }
    
    html.filter-modal-open body * {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    html.filter-modal-open {
        direction: rtl;
    }
    
    html.filter-modal-open body {
        direction: ltr;
    }
    
    html.filter-modal-open body * {
        direction: ltr;
    }
}

@media (max-width: 480px) {
    html.filter-modal-open {
        direction: rtl;
    }
    
    html.filter-modal-open body {
        direction: ltr;
    }
    
    html.filter-modal-open body * {
        direction: ltr;
    }
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transition: transform 0.6s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1.4rem;
}

.breadcrumbs li {
    display: inline;
}

/* Remove duplicate slash - global CSS already handles it with ::before */
/* .breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #999;
} */

.breadcrumbs a {
    color: #3367d6;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #2563eb;
}

.breadcrumbs li:last-child {
    color: #5f6368;
    font-weight: 400;
}

/* ============================================
   Beaches Section
   ============================================ */
.beaches-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 100%);
    width: 100%;
    overflow-x: hidden;
}

.beaches-section-header {
    margin-bottom: 40px;
}

.beaches-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.map-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-view-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-view-btn i {
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .map-view-btn {
        padding: 8px 16px;
        font-size: 1.3rem;
    }
}

.beaches-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Filter Pills Bar */
.beaches-filter-pills-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    align-items: center;
    position: relative;
}

.filter-pill-wrapper {
    position: relative;
}

.filter-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 500;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-pill-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.filter-pill-btn.active {
    border-color: var(--primary-color);
    background: #eff6ff;
    color: var(--primary-color);
}

.filter-pill-btn i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.filter-pill-btn.active i {
    transform: rotate(180deg);
}

.filter-pill-all {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.filter-pill-all:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.filter-pill-clear {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff;
}

.filter-pill-clear:hover {
    background: #fee2e2;
}

/* Filter Dropdown Menu */
.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 100;
    display: none;
    /* max-height: 400px; */
    /* overflow-y: auto; */
}

.filter-dropdown-menu.show {
    display: block;
}

.filter-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
}

.filter-dropdown-options {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

.filter-dropdown-body {
    padding: 12px 16px;
}

.filter-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1.4rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-dropdown-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-dropdown-option:hover {
    background: #f3f4f6;
}

.filter-dropdown-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-dropdown-option label {
    flex: 1;
    font-size: 1.4rem;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.filter-dropdown-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}

.filter-clear-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-clear-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.filter-apply-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-apply-btn:hover {
    background: #0056b3;
}

/* ============================================
   Beaches Grid (4 cards per row)
   ============================================ */
.beaches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-bottom: 60px;
    min-height: 200px; /* Ensure grid has minimum height */
}

/* Ensure loading message spans full width */
.beaches-grid > .beaches-loading {
    grid-column: 1 / -1;
}

@media (max-width: 1400px) {
    .beaches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .beaches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .beaches-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   Beach Card
   ============================================ */
.beach-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.beach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.beach-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%; /* Slightly taller for better card proportions */
    overflow: hidden;
    background: #f1f5f9;
}

.beach-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.beach-card:hover .beach-card-image {
    transform: scale(1.05);
}

.wishlist-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.wishlist-button:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.wishlist-button i {
    font-size: 1.6rem;
    color: #ffffff;
}

.wishlist-button:hover i {
    color: #ffffff;
}

/* Filled heart when favorited */
.wishlist-button i.fas.fa-heart {
    color: #ffffff;
}

.beach-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.beach-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.3rem;
    color: #0B1215;
    margin-bottom: 10px;
}

.beach-card-location i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.beach-card-title {
    font-size: 2rem !important;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beach-card-description {
    font-size: 1.3rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beach-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.beach-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    color: #64748b;
    flex: 1;
    min-width: 0; /* Allow text truncation */
    overflow: hidden;
}

.beach-card-tags i {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.beach-card-tags span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    flex: 1;
    min-width: 0;
}

.beach-card-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beach-card-view-btn:hover {
    background: #0056b3;
    transform: translateX(4px);
}

.beach-card-view-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* Responsive adjustments for wishlist button */
@media (max-width: 768px) {
    .wishlist-button {
        width: 36px;
        height: 36px;
    }

    .wishlist-button i {
        font-size: 1.4rem;
    }
}

.beach-card-view-btn:hover i {
    transform: translateX(2px);
}

/* ============================================
   Filter Modal (Right Sidebar)
   ============================================ */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: flex-end;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-modal.active {
    visibility: visible;
    opacity: 1;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1001;
    transition: background 0.3s ease;
}

.filter-modal.active .filter-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.filter-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    max-height: 100vh;
    background: #fff;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
    overflow-x: hidden;
    box-sizing: border-box;
}

.filter-modal.active .filter-modal-content {
    transform: translateX(0);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.filter-modal-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.filter-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: rotate(90deg) scale(1.1);
}

.filter-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
    background: #fafbfc;
    min-height: 0;
}

.filter-section {
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 8px;
    background: #ffffff;
    border-radius: 5px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.filter-section:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.filter-section:last-of-type {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.filter-input {
    width: 100%;
    padding: 7px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1.15rem;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select {
    width: 100%;
}

.filter-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    gap: 12px;
    flex-shrink: 0;
}

.btn-clear-all {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-clear-all:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
    transform: translateY(-1px);
}

.btn-show-results {
    flex: 1;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-show-results:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.35);
}

.btn-show-results:active {
    transform: translateY(0);
}

.btn-show-results:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Map Modal
   ============================================ */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-modal.active {
    visibility: visible;
    opacity: 1;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2001;
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.map-modal.active .map-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.map-modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    background: #fff;
    z-index: 2002;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0);
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease,
                box-shadow 0.4s ease;
}

.map-modal.active .map-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.map-modal-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.map-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: rotate(90deg) scale(1.1);
}

.map-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.map-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #f7fafc;
}

.map-modal-body #beachesMap,
.map-modal-body #natureMap,
.map-modal-body #cultureMap,
.map-modal-body #nightlifeMap,
.map-modal-body #activitiesMap,
.map-modal-body #eventsMap,
.map-modal-body #cuisineMap,
.map-modal-body #shoppingMap {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

@media (max-width: 768px) {
    .map-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .map-modal-header {
        padding: 16px 20px;
    }
    
    .map-modal-header h3 {
        font-size: 1.6rem;
    }
}

/* ============================================
   Pagination
   ============================================ */
.pagination-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.pag-btn {
    background-color: white;
    color: #0B1215;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.pag-btn:hover:not(.disabled):not(.active) {
    background-color: #f0f0f0;
}

.pag-btn.active {
    background-color: #000;
    color: white;
    font-weight: bold;
    border-color: #000;
}

.pag-btn.disabled {
    color: #aaa;
    border-color: #eee;
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.ellipsis {
    display: inline-block;
    padding: 6px 12px;
    color: #666;
    font-size: 14px;
}

/* ============================================
   Loading & Empty States
   ============================================ */
.beaches-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.6rem;
    color: #64748b;
}

.beaches-empty {
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 24px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.empty-state-error .empty-icon {
    color: #f59e0b;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.empty-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.empty-subtitle {
    font-size: 1.4rem;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.empty-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.empty-action-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.empty-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.empty-action-btn i {
    font-size: 1.2rem;
}

.empty-state-error .empty-action-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.empty-state-error .empty-action-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
    .beaches-empty {
        padding: 60px 20px;
        min-height: 300px;
    }
    
    .empty-icon {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .empty-title {
        font-size: 1.8rem;
    }
    
    .empty-subtitle {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }
    
    .empty-action-btn {
        padding: 10px 20px;
        font-size: 1.3rem;
    }
}

/* ============================================
   Section Padding
   ============================================ */
.section-padding {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 30px 0;
    }
}

/* ============================================
   Select2 Customization
   ============================================ */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    border: 2px solid #e2e8f0 !important;
    border-radius: 4px !important;
    min-height: auto !important;
    padding: 5px 8px !important;
    font-size: 1.15rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    font-size: 1.15rem !important;
    color: #9ca3af !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--primary-color) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    margin: 2px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
    border-right: none !important;
    padding-right: 0 !important;
    cursor: pointer !important;
    position: static !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* ============================================
   Filter Checkboxes (3 columns)
   ============================================ */
.filter-checkboxes-wrapper {
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.filter-checkboxes-wrapper::after {
    content: '';
    display: table;
    clear: both;
}

.filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
}

.filter-checkboxes.collapsed .filter-checkbox-item:nth-child(n+4) {
    display: none;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 34px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.filter-checkbox-item:hover {
    border-color: var(--primary-color);
    background: #f8faff;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.08);
}

.filter-checkbox-item:has(input:checked) {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
}

.filter-checkbox-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.filter-checkbox-item:hover::before {
    transform: scaleY(1);
}

.filter-checkbox-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
    align-self: center;
}

.filter-checkbox-item:hover input[type="checkbox"] {
    transform: scale(1.05);
}

.filter-checkbox-item input[type="checkbox"]:checked {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.filter-checkbox-item label {
    flex: 1;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a365d;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
    hyphens: none;
    display: block;
}

/* When expanded, allow text to wrap and show fully */
.filter-checkboxes.expanded .filter-checkbox-item label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-wrap: break-word;
}

.filter-checkbox-item:hover label {
    color: var(--primary-color);
}

/* Show More Button */
.btn-show-more {
    margin-top: 5px;
    padding: 4px 10px;
    background: #ffffff !important;
    border: 1.5px solid var(--primary-color) !important;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden by default, shown via inline style when needed */
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    line-height: 1.25;
    float: right;
    clear: both;
    box-shadow: 0 1px 2px rgba(0, 102, 204, 0.1);
    position: relative;
}

/* Only show when explicitly set to inline-flex */
.btn-show-more[style*="inline-flex"] {
    display: inline-flex !important;
}

/* Ensure border is always visible regardless of state */
.btn-show-more.expanded,
.btn-show-more:not(.expanded),
.btn-show-more:focus,
.btn-show-more:active,
.btn-show-more:focus-visible {
    border: 1.5px solid var(--primary-color) !important;
    background: #ffffff !important;
    outline: none !important;
}

/* Only change background on hover, not on click */
.btn-show-more:active:not(:hover) {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color) !important;
}

.btn-show-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    z-index: 0;
}

.btn-show-more:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 3px 8px rgba(0, 102, 204, 0.25);
    transform: translateY(-1px);
}

.btn-show-more:hover::before {
    opacity: 1;
}

.btn-show-more:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 102, 204, 0.2);
}

.btn-show-more .show-more-text {
    display: inline;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-show-more .show-more-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(0, 102, 204, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 3px;
    min-width: 26px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-show-more::after {
    content: '▼';
    font-size: 0.9rem;
    margin-left: 4px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.btn-show-more:hover .show-more-text {
    color: #fff;
}

.btn-show-more:hover .show-more-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-show-more:hover::after {
    color: #fff;
    transform: translateY(2px);
}

/* When expanded, rotate chevron */
.filter-checkboxes.expanded ~ .btn-show-more::after,
.btn-show-more.expanded::after {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .filter-checkboxes {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .filter-dropdown-menu {
        position: absolute;
        min-width: calc(100vw - 78px);
        max-width: calc(100vw - 48px);
        width: calc(100vw - 48px);
        box-sizing: border-box;
        left: 0;
        right: auto;
    }
    
    .beaches-grid {
        gap:20px;
        min-height: 100px; /* Ensure grid has minimum height */
    }
    .filter-checkboxes {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .filter-checkbox-item {
        padding: 6px 8px;
        gap: 5px;
        min-height: 34px;
    }
    
    .filter-checkbox-item input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .filter-checkbox-item label {
        font-size: 1.3rem;
    }
    
    .btn-show-more {
        padding: 3px 8px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .filter-checkboxes {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* ============================================
   Event Card (same as Beach Card)
   ============================================ */
.event-card,
.event-card-image-wrapper,
.event-card-image,
.event-card-body,
.event-card-location,
.event-card-title,
.event-card-description,
.event-card-footer,
.event-card-tags,
.event-card-view-btn {
    /* Inherit all beach-card styles */
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.event-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    background: #f1f5f9;
}

.event-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-image {
    transform: scale(1.05);
}

.event-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.3rem;
    color: #0B1215;
    margin-bottom: 10px;
}

.event-card-location i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.event-card-title {
    font-size: 2rem !important;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-description {
    font-size: 1.3rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.event-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    color: #64748b;
    flex: 1;
    min-width: 0; /* Allow text truncation */
    overflow: hidden;
}

.event-card-tags i {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.event-card-tags span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    flex: 1;
    min-width: 0;
}

.event-card-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-card-view-btn:hover {
    background: #0056b3;
    transform: translateX(4px);
}

.event-card-view-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.event-card-view-btn:hover i {
    transform: translateX(2px);
}

/* Event Card Date - Positioned below title */
.event-card-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.event-card-date i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.event-card-date span {
    color: #1e293b;
}

