/**
 * CloudStay Experiences - Frontend Styles
 *
 * @package CloudStay_Experiences
 */

/* ==========================================================================
   Wrapper
   ========================================================================== */

.cloudstay-experiences-wrapper {
    font-family: inherit;
    max-width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   Map
   ========================================================================== */

.cloudstay-experiences-map {
    width: 100%;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    z-index: 1;
}

.cloudstay-map-hover-card {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: none;
    z-index: 1000;
    pointer-events: none;
    width: 200px;
}

.cloudstay-map-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.cloudstay-map-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 0;
    text-align: center;
    color: #333;
}

/* Map Popup Styles */
.cloudstay-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cloudstay-map-popup .leaflet-popup-content {
    margin: 0;
    min-width: 240px;
}

.cloudstay-popup-content {
    font-family: inherit;
}

.cloudstay-popup-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.cloudstay-popup-body {
    padding: 15px;
}

.cloudstay-popup-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1d2327;
    line-height: 1.3;
}

.cloudstay-popup-location,
.cloudstay-popup-price {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cloudstay-popup-location i,
.cloudstay-popup-price i {
    color: #667eea;
    width: 14px;
}

.cloudstay-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.cloudstay-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    background: #667eea;
    color: #fff;
    transition: all 0.2s;
}

.cloudstay-popup-btn:hover {
    background: #5a6fd6;
    color: #fff;
}

.cloudstay-popup-btn.cloudstay-popup-btn-outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.cloudstay-popup-btn.cloudstay-popup-btn-outline:hover {
    background: #667eea;
    color: #fff;
}

/* Custom Marker Styles */
.cloudstay-custom-marker {
    background: transparent !important;
    border: none !important;
}

/* ==========================================================================
   Categories Filter
   ========================================================================== */

.cloudstay-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

.cloudstay-category {
    display: inline-block;
    padding: 8px 18px;
    text-decoration: none;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    border-radius: 25px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.cloudstay-category:hover {
    background: #e8e8e8;
    color: #333;
    border-color: #d0d0d0;
}

.cloudstay-category.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.cloudstay-experiences-grid {
    margin-bottom: 30px;
}

.cloudstay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

@media (max-width: 640px) {
    .cloudstay-grid {
        grid-template-columns: 1fr;
    }
}

/* Column override via data attribute */
.cloudstay-experiences-grid[data-columns="1"] .cloudstay-grid {
    grid-template-columns: 1fr;
}

.cloudstay-experiences-grid[data-columns="2"] .cloudstay-grid {
    grid-template-columns: repeat(2, 1fr);
}

.cloudstay-experiences-grid[data-columns="4"] .cloudstay-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .cloudstay-experiences-grid[data-columns="4"] .cloudstay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cloudstay-no-experiences {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ==========================================================================
   CSS Variables (Defaults)
   ========================================================================== */

:root {
    /* Layout */
    --cloudstay-body-width: 1440px;

    /* Colors */
    --cloudstay-primary: #ef4444;
    --cloudstay-secondary: #6b7280;

    /* Card */
    --cloudstay-card-bg: #ffffff;
    --cloudstay-card-border: #e5e7eb;
    --cloudstay-card-radius: 12px;
    --cloudstay-card-border-width: 1px;
    --cloudstay-card-padding: 0px;
    --cloudstay-content-padding: 16px;
    --cloudstay-spacing: 8px;
    --cloudstay-image-height: 200px;
    --cloudstay-image-radius: 0px;
    --cloudstay-title-size: 18px;
    --cloudstay-title-weight: 600;
    --cloudstay-title-color: #1f2937;
    --cloudstay-title-line-height: 1.3;
    --cloudstay-meta-size: 14px;
    --cloudstay-meta-color: #777777;
    --cloudstay-meta-icon-color: #777777;
    --cloudstay-pill-bg: #f3f4f6;
    --cloudstay-pill-color: #374151;
    --cloudstay-pill-radius: 20px;
    --cloudstay-pill-px: 12px;
    --cloudstay-pill-py: 6px;
    --cloudstay-btn-bg: #ef4444;
    --cloudstay-btn-color: #ef4444;
    --cloudstay-btn-border: #ef4444;
    --cloudstay-btn-radius: 20px;
    --cloudstay-btn-size: 14px;
    --cloudstay-btn-weight: 500;
    --cloudstay-btn-hover-bg: #ef4444;
    --cloudstay-btn-hover-color: #ffffff;
}

/* ==========================================================================
   Experience Card
   ========================================================================== */

.cloudstay-experience-card {
    background: var(--cloudstay-card-bg);
    border: var(--cloudstay-card-border-width) solid var(--cloudstay-card-border);
    border-radius: var(--cloudstay-card-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Legacy class support */
.cloudstay-card {
    background: var(--cloudstay-card-bg);
    border: var(--cloudstay-card-border-width) solid var(--cloudstay-card-border);
    border-radius: var(--cloudstay-card-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Image Wrap */
.cloudstay-card-image-wrap {
    position: relative;
    overflow: hidden;
}

/* Card Image */
.cloudstay-card-image {
    height: var(--cloudstay-image-height);
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    transition: transform 0.3s ease;
}


.cloudstay-card-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card Body */
.cloudstay-card-body {
    padding: var(--cloudstay-content-padding);
}

/* Card Title */
.cloudstay-card-title {
    font-size: var(--cloudstay-title-size);
    font-weight: var(--cloudstay-title-weight);
    color: var(--cloudstay-title-color);
    line-height: var(--cloudstay-title-line-height);
    margin: 0 0 var(--cloudstay-spacing);
}

.cloudstay-card-title a {
    color: inherit;
    text-decoration: none;
}

.cloudstay-card-title a:hover {
    color: var(--cloudstay-primary);
}

/* Card Meta (Location & Category) */
.cloudstay-card-meta {
    display: flex;
    flex-direction: column;
    gap: calc(var(--cloudstay-spacing) / 2);
    margin-bottom: var(--cloudstay-spacing);
}

.cloudstay-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--cloudstay-meta-size);
    color: var(--cloudstay-meta-color);
}

.cloudstay-meta-item i {
    color: var(--cloudstay-meta-icon-color);
    width: 14px;
    text-align: center;
    font-size: 12px;
}

/* Card Footer */
.cloudstay-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: calc(var(--cloudstay-spacing) * 1.5);
    padding-top: calc(var(--cloudstay-spacing) * 1.5);
    border-top: 1px solid var(--cloudstay-card-border);
}

/* Card Pill */
.cloudstay-card-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--cloudstay-pill-py) var(--cloudstay-pill-px);
    background: var(--cloudstay-pill-bg);
    color: var(--cloudstay-pill-color);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--cloudstay-pill-radius);
}

/* Learn More Button */
.cloudstay-card-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--cloudstay-pill-py) var(--cloudstay-pill-px);
    font-size: var(--cloudstay-btn-size);
    font-weight: var(--cloudstay-btn-weight);
    text-decoration: none;
    border-radius: var(--cloudstay-btn-radius);
    transition: all 0.2s ease;
    cursor: pointer;
    /* Default: outline style */
    background: transparent;
    color: var(--cloudstay-btn-color);
    border: 1px solid var(--cloudstay-btn-border);
}

.cloudstay-card-learn-more:hover {
    background: var(--cloudstay-btn-hover-bg);
    color: var(--cloudstay-btn-hover-color);
    border-color: var(--cloudstay-btn-hover-bg);
}

.cloudstay-card-learn-more i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.cloudstay-card-learn-more:hover i {
    transform: translateX(3px);
}

/* Card Highlighted (from map hover) */
.cloudstay-experience-card.cloudstay-highlighted {
    box-shadow: 0 0 0 3px var(--cloudstay-primary);
}

.cloudstay-experience-card.cloudstay-flash {
    animation: cloudstay-flash 0.5s ease;
}

@keyframes cloudstay-flash {
    0%, 100% { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 0 3px var(--cloudstay-primary); }
}

/* Card Hidden (filtered out) */
.cloudstay-experience-card.cloudstay-hidden {
    display: none;
}

/* Legacy card styles for backwards compatibility */
.cloudstay-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: var(--cloudstay-meta-size);
    color: var(--cloudstay-meta-color);
    margin-bottom: var(--cloudstay-spacing);
}

.cloudstay-card-details i {
    margin-right: 6px;
    color: var(--cloudstay-meta-icon-color);
}

.cloudstay-price,
.cloudstay-hours {
    display: inline-flex;
    align-items: center;
}

/* Card Note (Personal Note) */
.cloudstay-card-note {
    font-family: 'Caveat', cursive;
    font-size: 17px;
    font-weight: 500;
    color: #333;
    background: rgba(236, 217, 125, 0.4);
    padding: 10px 12px;
    margin-top: 12px;
    border-radius: 6px;
    border-top: 3px solid #ECD97D;
    line-height: 1.4;
}

/* ==========================================================================
   Powered By
   ========================================================================== */

.cloudstay-powered-by {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #888;
    font-size: 13px;
}

.cloudstay-powered-by a {
    color: #666;
    text-decoration: none;
}

.cloudstay-powered-by a:hover {
    color: #333;
}

/* ==========================================================================
   Loading Skeleton
   ========================================================================== */

.cloudstay-loading-skeleton {
    animation: cloudstay-pulse 1.5s ease-in-out infinite;
}

.cloudstay-skeleton-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
}

.cloudstay-skeleton-pill {
    width: 80px;
    height: 36px;
    background: #e8e8e8;
    border-radius: 25px;
}

.cloudstay-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cloudstay-skeleton-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cloudstay-skeleton-image {
    height: 220px;
    background: #e8e8e8;
}

.cloudstay-skeleton-body {
    padding: 16px;
}

.cloudstay-skeleton-title {
    height: 22px;
    background: #e8e8e8;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 70%;
}

.cloudstay-skeleton-meta {
    height: 14px;
    background: #e8e8e8;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 50%;
}

.cloudstay-skeleton-details {
    height: 14px;
    background: #e8e8e8;
    border-radius: 4px;
    width: 40%;
}

@keyframes cloudstay-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

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

@media (max-width: 640px) {
    .cloudstay-skeleton-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.cloudstay-hide {
    display: none !important;
}

/* Card hover animation for map interaction */
.cloudstay-card.cloudstay-highlighted {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    outline: 2px solid #0066cc;
}

/* Leaflet overrides for better styling */
.cloudstay-experiences-wrapper .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cloudstay-experiences-wrapper .leaflet-popup-content {
    margin: 10px;
    font-size: 14px;
}

/* ==========================================================================
   Page Template - Main Experiences Page
   ========================================================================== */

.cloudstay-experiences-page {
    font-family: inherit;
    width: 100%;
}

/* ==========================================================================
   Page Layout - Sidebar + Content
   ========================================================================== */

/* CSS Variable for header offset - default 0px */
:root {
    --cloudstay-header-offset: 0px;
}

.cloudstay-page-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--cloudstay-header-offset));
}

/* Category Sidebar (Left) */
.cloudstay-category-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--cloudstay-header-offset));
    position: sticky;
    top: var(--cloudstay-header-offset);
    z-index: 100;
}

.cloudstay-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cloudstay-sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.cloudstay-category-sidebar .cloudstay-category-filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.cloudstay-category-sidebar .cloudstay-filter-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.cloudstay-category-sidebar .cloudstay-filter-btn:hover {
    background: #f3f4f6;
}

.cloudstay-category-sidebar .cloudstay-filter-btn.active {
    background: #1f2937;
    color: #fff;
}

.cloudstay-category-sidebar .cloudstay-filter-btn .filter-name {
    flex: 1;
}

.cloudstay-category-sidebar .cloudstay-filter-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.cloudstay-category-sidebar .cloudstay-filter-btn.active .cloudstay-filter-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar Sections (Month, Sort) */
.cloudstay-sidebar-section {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}

.cloudstay-sidebar-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cloudstay-month-select,
.cloudstay-sort-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.cloudstay-month-select:hover,
.cloudstay-sort-select:hover {
    border-color: #d1d5db;
}

.cloudstay-month-select:focus,
.cloudstay-sort-select:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.1);
}

/* Search Box */
.cloudstay-search-section {
    border-top: none !important;
    padding-top: 0 !important;
}

.cloudstay-search-wrap {
    position: relative !important;
}

.cloudstay-search-input {
    width: 100% !important;
    padding: 12px 12px 12px 40px !important;
    font-size: 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #374151 !important;
    box-sizing: border-box !important;
}

.cloudstay-search-input:focus {
    outline: none !important;
    border-color: #1f2937 !important;
    box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.1) !important;
}

.cloudstay-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    pointer-events: none !important;
}

/* Results Count */
.cloudstay-results-section {
    display: block !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-top: none !important;
    text-align: center !important;
}

.cloudstay-results-count {
    font-size: 13px !important;
    color: #6b7280 !important;
    display: block !important;
}

/* Clear Filters Section */
.cloudstay-clear-section {
    padding-top: 0 !important;
    padding-bottom: 12px !important;
}

.cloudstay-clear-filters,
.cloudstay-btn-clear {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ef4444 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.cloudstay-clear-filters:hover,
.cloudstay-btn-clear:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

/* Action Buttons (Near Me, Favorites) - Unique styling to override Elementor */
.cloudstay-btn-action {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px 16px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.cloudstay-btn-action:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
}

.cloudstay-btn-action.active {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #fff !important;
}

.cloudstay-btn-action .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
}

/* Near Me Button */
.cloudstay-nearme-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.cloudstay-nearme-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px 16px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}

.cloudstay-nearme-btn:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
}

.cloudstay-nearme-btn.active {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #fff !important;
}

.cloudstay-nearme-btn.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.cloudstay-nearme-btn .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

/* Favorites Button */
.cloudstay-favorites-section {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
}

.cloudstay-favorites-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px 16px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}

.cloudstay-favorites-btn:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

.cloudstay-favorites-btn.active {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

.cloudstay-favorites-btn .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.cloudstay-favorites-count {
    font-size: 12px !important;
    opacity: 0.8 !important;
}

/* Radius Selector */
.cloudstay-radius-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.cloudstay-radius-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
}

.cloudstay-radius-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

.cloudstay-radius-select:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.1);
}

/* Distance badge on cards */
.cloudstay-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.cloudstay-distance-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Radius hidden cards */
.cloudstay-experience-card.radius-hidden {
    display: none !important;
}

/* Favorites Button on Cards */
.cloudstay-favorite-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    outline: none !important;
    padding: 0 !important;
}

.cloudstay-favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.cloudstay-favorite-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.cloudstay-favorite-btn.is-favorite .dashicons {
    color: #ef4444;
}

/* View Toggle in Sidebar */
.cloudstay-category-sidebar .cloudstay-view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px;
}

.cloudstay-category-sidebar .cloudstay-toggle-map,
.cloudstay-category-sidebar .cloudstay-toggle-grid {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.cloudstay-category-sidebar .cloudstay-toggle-map.active,
.cloudstay-category-sidebar .cloudstay-toggle-grid.active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cloudstay-category-sidebar .cloudstay-toggle-map .dashicons,
.cloudstay-category-sidebar .cloudstay-toggle-grid .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Main Content Area */
.cloudstay-main-content {
    flex: 1;
    min-width: 0;
}

/* Mobile Off-Canvas Menu */
.cloudstay-mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
    gap: 8px;
}

.cloudstay-mobile-menu-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cloudstay-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cloudstay-sidebar-overlay.active {
    opacity: 1;
}

.cloudstay-sidebar-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    border-radius: 6px;
}

.cloudstay-sidebar-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.cloudstay-sidebar-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Page Header */
.cloudstay-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cloudstay-page-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px;
}

.cloudstay-page-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters Bar */
.cloudstay-filters-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cloudstay-filters-bar .cloudstay-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cloudstay-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cloudstay-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cloudstay-filter-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.cloudstay-filter-btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.cloudstay-filter-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.cloudstay-filter-btn.active .cloudstay-filter-count {
    background: rgba(255, 255, 255, 0.2);
}

/* View Toggle */
.cloudstay-view-toggle {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.cloudstay-toggle-map,
.cloudstay-toggle-grid {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cloudstay-toggle-map.active,
.cloudstay-toggle-grid.active {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cloudstay-toggle-map .dashicons,
.cloudstay-toggle-grid .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Main Content - Split Layout */
.cloudstay-main-content {
    padding: 0;
    background: #f8f9fa;
    min-height: calc(100vh - var(--cloudstay-header-offset));
}

/* Full width layout */
.cloudstay-experiences-page .cloudstay-main-content .cloudstay-container {
    max-width: 100%;
    padding: 0;
}

.cloudstay-split-layout {
    display: grid;
    /* 60/40 split: more space for cards, less for map */
    grid-template-columns: var(--cloudstay-layout-columns, 3fr 2fr);
    gap: 0;
    transition: grid-template-columns 0.3s ease;
}

.cloudstay-split-layout[data-map-visible="false"] {
    grid-template-columns: 1fr;
}

.cloudstay-split-layout[data-map-visible="false"] .cloudstay-map-container {
    display: none;
}

.cloudstay-split-layout[data-map-visible="false"] .cloudstay-experiences-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Experiences List */
.cloudstay-experiences-list {
    max-height: calc(100vh - var(--cloudstay-header-offset));
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome, Safari, Opera */
.cloudstay-experiences-list::-webkit-scrollbar {
    display: none;
}

.cloudstay-experiences-grid[data-columns="2"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cloudstay-experiences-grid[data-columns="3"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cloudstay-experiences-grid[data-columns="4"] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Map Container */
.cloudstay-map-container {
    position: sticky;
    top: var(--cloudstay-header-offset);
    height: calc(100vh - var(--cloudstay-header-offset));
}

.cloudstay-map {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Map Search/Geocoder Controls - Override Leaflet plugin styles */
.cloudstay-map .leaflet-control-geocoder,
.cloudstay-map .leaflet-control-search,
.cloudstay-map .leaflet-control-geocoder input,
.cloudstay-map .leaflet-control-search input,
.cloudstay-map .leaflet-control-geocoder-form,
.cloudstay-map .leaflet-control-search-form,
.cloudstay-map-container .leaflet-control-geocoder,
.cloudstay-map-container .leaflet-control-search,
.cloudstay-map-container .leaflet-control-geocoder input,
.cloudstay-map-container .leaflet-control-search input {
    border-radius: 0 !important;
}

.cloudstay-map .leaflet-bar,
.cloudstay-map-container .leaflet-bar {
    border-radius: 0 !important;
}

.cloudstay-map .leaflet-bar a,
.cloudstay-map-container .leaflet-bar a {
    border-radius: 0 !important;
}

/* ==========================================================================
   Experience Card - Enhanced
   ========================================================================== */

.cloudstay-experience-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cloudstay-experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.cloudstay-experience-card.hidden {
    display: none;
}

/* Card Image Container */
.cloudstay-card-image-container {
    position: relative;
}

/* Card Image */
.cloudstay-card-image-wrap {
    position: relative;
    overflow: hidden;
    display: block;
}

.cloudstay-experience-card .cloudstay-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
    transition: transform 0.4s ease;
}

/* Image Aspect Ratios based on grid data attribute */
[data-image-ratio="1:1"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 1 / 1;
}

[data-image-ratio="4:3"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 4 / 3;
}

[data-image-ratio="3:2"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 3 / 2;
}

[data-image-ratio="16:9"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 16 / 9;
}

[data-image-ratio="2:1"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 2 / 1;
}

[data-image-ratio="3:4"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 3 / 4;
}

[data-image-ratio="2:3"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 2 / 3;
}

[data-image-ratio="9:16"] .cloudstay-experience-card .cloudstay-card-image {
    aspect-ratio: 9 / 16;
}

[data-image-ratio="custom"] .cloudstay-experience-card .cloudstay-card-image {
    width: 100%;
    aspect-ratio: unset;
    height: var(--cloudstay-card-image-height, 200px);
}

.cloudstay-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    aspect-ratio: inherit;
    height: inherit;
}

.cloudstay-card-image-placeholder::after {
    content: '\f128';
    font-family: dashicons;
    font-size: 48px;
    color: #ccc;
}

.cloudstay-experience-card .cloudstay-card-link-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.cloudstay-experience-card:hover .cloudstay-card-link-icon {
    opacity: 1;
    transform: translateY(0);
}

.cloudstay-card-link-icon .dashicons {
    color: #fff;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.cloudstay-card-price-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Card Content */
.cloudstay-card-content {
    padding: 15px;
}

/* Pills */
.cloudstay-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.cloudstay-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cloudstay-pill-category {
    background: #e8f4fd;
    color: #1976d2;
}

.cloudstay-pill-tag {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Card Title */
.cloudstay-experience-card .cloudstay-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cloudstay-experience-card .cloudstay-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.cloudstay-experience-card .cloudstay-card-title a:hover {
    color: #667eea;
}

/* Card Meta */
.cloudstay-experience-card .cloudstay-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.cloudstay-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cloudstay-meta-item i {
    font-size: 12px;
    color: #999;
}

/* Card Description */
.cloudstay-card-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Card Actions */
.cloudstay-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.cloudstay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cloudstay-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.cloudstay-btn-primary {
    background: #667eea;
    color: #fff;
}

.cloudstay-btn-primary:hover {
    background: #5a6fd6;
}

.cloudstay-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.cloudstay-btn-secondary:hover {
    background: #e0e0e0;
}

.cloudstay-btn-link {
    background: transparent;
    color: #667eea;
    padding-left: 0;
    padding-right: 0;
}

.cloudstay-btn-link:hover {
    color: #5a6fd6;
}

/* No Experiences */
.cloudstay-experiences-list .cloudstay-no-experiences {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 12px;
}

.cloudstay-no-experiences .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.cloudstay-no-experiences p {
    color: #666;
    margin-bottom: 20px;
}

/* ==========================================================================
   Single Experience Page
   ========================================================================== */

.cloudstay-single-experience {
    font-family: inherit;
}

/* Hero Section */
.cloudstay-single-hero {
    background-size: cover;
    background-position: center;
    background-color: #333;
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
}

.cloudstay-hero-content {
    max-width: calc(100% - 420px); /* Align with main content column (380px sidebar + 40px gap) */
}

@media (max-width: 1200px) {
    .cloudstay-hero-content {
        max-width: 100%;
    }
}

/* Breadcrumb */
.cloudstay-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.cloudstay-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.cloudstay-breadcrumb a:hover {
    text-decoration: underline;
}

.cloudstay-breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.cloudstay-breadcrumb-current {
    opacity: 0.7;
}

/* Hero Categories */
.cloudstay-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.cloudstay-category-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Hero Title */
.cloudstay-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
}

/* Hero Meta */
.cloudstay-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.cloudstay-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.cloudstay-hero-meta-item i {
    opacity: 0.7;
}

/* Hero CTA */
.cloudstay-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #333;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cloudstay-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.cloudstay-single-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.cloudstay-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Main Content */
.cloudstay-content-main {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cloudstay-content-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.cloudstay-content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cloudstay-content-section h2 {
    font-size: 22px;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cloudstay-content-section h2 i {
    color: #667eea;
    font-size: 18px;
}

.cloudstay-personal-note .cloudstay-note-content {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    line-height: 1.6;
    color: #444;
    background: rgba(236, 217, 125, 0.2);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ECD97D;
}

/* Tags Section */
.cloudstay-tags-section h3 {
    font-size: 16px;
    margin: 0 0 15px;
    color: #666;
}

.cloudstay-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cloudstay-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

.cloudstay-tag i {
    color: #999;
    font-size: 12px;
}

/* Sidebar */
.cloudstay-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cloudstay-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cloudstay-sidebar-widget h3 {
    font-size: 16px;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloudstay-sidebar-widget h3 i {
    color: #667eea;
}

/* Single Map */
.cloudstay-single-map {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.cloudstay-directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.cloudstay-directions-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* Details Widget */
.cloudstay-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cloudstay-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cloudstay-details-list li:last-child {
    border-bottom: none;
}

.cloudstay-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.cloudstay-detail-label i {
    color: #999;
    width: 16px;
}

.cloudstay-detail-value {
    font-weight: 500;
    color: #333;
}

.cloudstay-visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #667eea;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.2s;
}

.cloudstay-visit-btn:hover {
    background: #5a6fd6;
}

/* Related Experiences */
.cloudstay-related-experiences {
    padding: 60px 0;
    background: #fff;
}

.cloudstay-related-title {
    font-size: 28px;
    text-align: center;
    margin: 0 0 40px;
}

/* ==========================================================================
   Responsive - Templates
   ========================================================================== */

/* Tablet and below - stack layout vertically, off-canvas sidebar */
@media (max-width: 1024px) {
    /* Page layout - hide sidebar, show toggle */
    .cloudstay-page-layout {
        flex-direction: column;
    }

    /* Off-canvas sidebar */
    .cloudstay-category-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .cloudstay-category-sidebar.open {
        left: 0;
    }

    .cloudstay-sidebar-close {
        display: block;
    }

    .cloudstay-sidebar-overlay {
        display: block;
    }

    .cloudstay-mobile-menu-toggle {
        display: flex;
    }

    /* Prevent body scroll when menu open */
    body.cloudstay-menu-open {
        overflow: hidden;
    }

    .cloudstay-split-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    /* Map at the top on mobile */
    .cloudstay-map-container {
        position: relative;
        top: 0;
        height: 300px;
        order: -1;
        width: 100%;
    }

    .cloudstay-experiences-list {
        max-height: none;
        overflow: visible;
        width: 100%;
        padding: 15px;
    }

    /* Single column cards on mobile */
    .cloudstay-experiences-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* Single experience page */
    .cloudstay-content-grid {
        grid-template-columns: 1fr;
    }

    .cloudstay-content-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cloudstay-sidebar-widget {
        flex: 1;
        min-width: 280px;
    }
}

/* Small mobile - even smaller map */
@media (max-width: 600px) {
    .cloudstay-map-container {
        height: 250px;
    }

    .cloudstay-experiences-list {
        padding: 10px;
    }

    .cloudstay-experiences-grid {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .cloudstay-page-header {
        padding: 40px 0;
    }

    .cloudstay-page-title {
        font-size: 32px;
    }

    .cloudstay-filters-bar .cloudstay-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cloudstay-category-filters {
        justify-content: center;
    }

    .cloudstay-view-toggle {
        justify-content: center;
    }

    .cloudstay-experiences-grid[data-columns="2"],
    .cloudstay-experiences-grid[data-columns="3"],
    .cloudstay-experiences-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }

    .cloudstay-hero-title {
        font-size: 32px;
    }

    .cloudstay-hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    .cloudstay-sidebar-widget {
        min-width: 100%;
    }

    .cloudstay-toggle-label {
        display: none;
    }
}

/* ==========================================================================
   Yelp Integration - Card Rating Bar
   ========================================================================== */

/* Yelp Rating Bar - Top of card */
.cloudstay-yelp-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--cloudstay-card-bg, #ffffff);
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s ease;
    border-radius: var(--cloudstay-card-radius, 12px) var(--cloudstay-card-radius, 12px) 0 0;
}

.cloudstay-yelp-bar:hover {
    background: #fafafa;
}

.cloudstay-yelp-rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloudstay-yelp-stars-img {
    display: block;
    height: 20px;
    width: auto;
}

.cloudstay-yelp-rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cloudstay-yelp-review-count {
    font-size: 13px;
    color: #666;
}

.cloudstay-yelp-logo {
    display: flex;
    align-items: center;
}

.cloudstay-yelp-logo-img {
    height: 25px;
    width: auto;
}

/* Empty rating bar placeholder - matches Yelp bar height for consistent card layout */
.cloudstay-rating-bar-placeholder {
    height: 41px; /* 10px padding top + 20px content + 10px padding bottom + 1px border */
    background: var(--cloudstay-card-bg, #ffffff);
    border-bottom: 1px solid #f0f0f0;
    border-radius: var(--cloudstay-card-radius, 12px) var(--cloudstay-card-radius, 12px) 0 0;
}

/* Card with rating bar - remove top border-radius from image */
.cloudstay-experience-card.has-yelp-data .cloudstay-card-image-wrap,
.cloudstay-experience-card.has-google-data .cloudstay-card-image-wrap,
.cloudstay-experience-card .cloudstay-rating-bar-placeholder + .cloudstay-card-image-container .cloudstay-card-image-wrap {
    border-radius: 0;
}

/* ==========================================================================
   Google Places Integration - Card Rating Bar
   ========================================================================== */

/* Google Rating Bar - Top of card */
.cloudstay-google-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--cloudstay-card-bg, #ffffff);
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s ease;
    border-radius: var(--cloudstay-card-radius, 12px) var(--cloudstay-card-radius, 12px) 0 0;
}

.cloudstay-google-bar:hover {
    background: #fafafa;
}

.cloudstay-google-rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Google Stars */
.cloudstay-google-stars {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    letter-spacing: 1px;
}

.cloudstay-google-star {
    color: #fbbc04; /* Google's yellow */
    line-height: 1;
}

.cloudstay-google-star-empty {
    color: #dadce0;
}

.cloudstay-google-star-half {
    background: linear-gradient(90deg, #fbbc04 50%, #dadce0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloudstay-google-rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cloudstay-google-review-count {
    font-size: 13px;
    color: #666;
}

.cloudstay-google-logo {
    display: flex;
    align-items: center;
}

.cloudstay-google-logo-svg {
    height: 20px;
    width: auto;
}

/* Clickable card image wrap */
a.cloudstay-card-image-wrap {
    display: block;
    text-decoration: none;
}

/* Meta icons (SVG) */
.cloudstay-meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--cloudstay-meta-icon-color, #9ca3af);
}

/* Address with ellipsis */
.cloudstay-meta-address {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Learn More button SVG icon */
.cloudstay-card-learn-more svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cloudstay-card-learn-more:hover svg {
    transform: translateX(3px);
}

/* Meta items stack properly */
.cloudstay-experience-card .cloudstay-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cloudstay-experience-card .cloudstay-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/* Address specifically */
.cloudstay-experience-card .cloudstay-meta-address {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category meta item */
.cloudstay-experience-card .cloudstay-meta-category {
    white-space: nowrap;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.cloudstay-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.cloudstay-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cloudstay-share-label {
    font-size: 14px;
    opacity: 0.8;
}

.cloudstay-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cloudstay-share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cloudstay-share-btn svg {
    width: 18px;
    height: 18px;
}

.cloudstay-share-facebook:hover {
    background: #1877f2;
}

.cloudstay-share-twitter:hover {
    background: #1da1f2;
}

.cloudstay-share-pinterest:hover {
    background: #e60023;
}

.cloudstay-share-email:hover {
    background: #ea4335;
}

.cloudstay-share-copy:hover {
    background: #6b7280;
}

.cloudstay-share-print:hover {
    background: #374151;
}

.cloudstay-share-copy.copied {
    background: #10b981;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    /* Hide non-essential elements */
    .cloudstay-mobile-menu-toggle,
    .cloudstay-category-sidebar,
    .cloudstay-sidebar-overlay,
    .cloudstay-share-buttons,
    .cloudstay-hero-cta,
    .cloudstay-visit-btn,
    .cloudstay-directions-btn,
    .cloudstay-related-experiences,
    .cloudstay-similar-experiences,
    .cloudstay-favorite-btn,
    header:not(.cloudstay-single-hero),
    footer,
    nav,
    #wpadminbar {
        display: none !important;
    }

    /* Reset layout */
    .cloudstay-page-layout,
    .cloudstay-main-content,
    .cloudstay-split-layout,
    .cloudstay-content-grid {
        display: block !important;
    }

    /* Single experience print styles */
    .cloudstay-single-experience {
        font-size: 12pt;
        color: #000;
    }

    .cloudstay-single-hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
        border-bottom: 2px solid #000;
    }

    .cloudstay-hero-title {
        font-size: 24pt !important;
        color: #000 !important;
    }

    .cloudstay-hero-meta,
    .cloudstay-hero-categories,
    .cloudstay-breadcrumb {
        color: #333 !important;
    }

    .cloudstay-category-pill {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }

    .cloudstay-single-content {
        padding: 20px 0 !important;
        background: none !important;
    }

    .cloudstay-content-main,
    .cloudstay-sidebar-widget {
        box-shadow: none !important;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }

    .cloudstay-single-map {
        display: none !important;
    }

    /* Page breaks */
    .cloudstay-content-section {
        page-break-inside: avoid;
    }

    /* Show URLs for links */
    .cloudstay-content-main a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* ==========================================================================
   Lazy Loading Images
   ========================================================================== */

.cloudstay-lazy-load {
    transition: opacity 0.3s ease;
}

.cloudstay-lazy-load.loaded {
    opacity: 1;
}

.cloudstay-card-image.cloudstay-lazy-load {
    background-color: #e8e8e8;
}

/* Only hide lazy load images until loaded - but provide fallback with inline style */
.cloudstay-lazy-load:not(.loaded):not([style*="background-image"]) {
    opacity: 0.5;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.cloudstay-pagination {
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
}

.cloudstay-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cloudstay-pagination li {
    margin: 0;
}

.cloudstay-pagination a,
.cloudstay-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cloudstay-pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.cloudstay-pagination .current {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.cloudstay-pagination .dots {
    background: transparent;
    border: none;
    color: #6b7280;
}

.cloudstay-pagination .prev,
.cloudstay-pagination .next {
    gap: 6px;
}

.cloudstay-pagination .prev .dashicons,
.cloudstay-pagination .next .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .cloudstay-pagination ul {
        flex-wrap: wrap;
    }

    .cloudstay-pagination a,
    .cloudstay-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Category Header (Listing Page)
   ========================================================================== */

.cloudstay-category-header {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cloudstay-category-header-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}

.cloudstay-category-header-image:empty {
    display: none;
}

.cloudstay-category-header-content {
    padding: 25px;
}

.cloudstay-category-headline {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.cloudstay-category-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.cloudstay-category-description p {
    margin: 0 0 1em 0;
}

.cloudstay-category-description p:last-child {
    margin-bottom: 0;
}

.cloudstay-category-description a {
    color: #6366f1;
    text-decoration: underline;
}

.cloudstay-category-description a:hover {
    color: #4f46e5;
}

/* With image variant */
.cloudstay-category-header.has-image .cloudstay-category-header-image {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .cloudstay-category-header {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .cloudstay-category-header-image {
        height: 150px;
    }

    .cloudstay-category-header-content {
        padding: 20px;
    }

    .cloudstay-category-headline {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cloudstay-category-description {
        font-size: 14px;
    }
}

/* ==========================================================================
   Video Embed Section
   ========================================================================== */

.cloudstay-video-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.cloudstay-video-section h2 i {
    color: #6366f1;
}

.cloudstay-video-embed {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* Responsive video container for iframes */
.cloudstay-video-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
    .cloudstay-video-embed {
        padding-bottom: 56.25%; /* 16:9 fallback */
        height: 0;
    }

    .cloudstay-video-embed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .cloudstay-video-section h2 {
        font-size: 18px;
    }

    .cloudstay-video-embed {
        border-radius: 8px;
    }
}

/* ==========================================================================
   Similar Experiences Section (Horizontal Scrollable Grid)
   ========================================================================== */

.cloudstay-similar-experiences {
    padding: 60px 0;
    background: #f8f9fa;
}

.cloudstay-similar-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px 0;
    text-align: left;
}

.cloudstay-similar-scroll-container {
    position: relative;
}

.cloudstay-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Cards within similar grid */
.cloudstay-similar-grid .cloudstay-experience-card {
    min-width: 0;
    max-width: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .cloudstay-similar-experiences {
        padding: 40px 0;
    }

    .cloudstay-similar-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .cloudstay-similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

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

    .cloudstay-similar-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cloudstay-similar-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   Single Experience V2 - Redesigned Layout
   ========================================================================== */

/* Import script font for headlines */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');

/* V2 Container - uses CSS variable from styling settings */
.cloudstay-single-experience .cloudstay-container,
.cloudstay-content-v2 .cloudstay-container {
    max-width: var(--cloudstay-single-body-width, 1440px);
    margin: 0 auto;
    padding: 0 20px;
}

/* V2 Hero Section */
.cloudstay-hero-v2 {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.cloudstay-hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.cloudstay-hero-v2-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.cloudstay-hero-script {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    font-weight: 500;
    color: #CC3D2E;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cloudstay-hero-v2-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
}

/* V2 Content Area */
.cloudstay-content-v2 {
    padding: 60px 0;
    background: #fff;
}

.cloudstay-content-v2-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

/* V2 Main Content */
.cloudstay-main-v2 {
    min-width: 0;
}

.cloudstay-script-headline {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    font-weight: 500;
    color: #CC3D2E;
    display: block;
    margin-bottom: 8px;
}

.cloudstay-title-v2 {
    font-size: 38px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-family: var(--cloudstay-single-title-font, inherit);
}

/* V2 Yelp Rating */
.cloudstay-yelp-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cloudstay-yelp-stars-v2 {
    display: flex;
    align-items: center;
}

.cloudstay-yelp-stars-v2 svg {
    width: 32px;
    height: 32px;
}

.cloudstay-yelp-rating-v2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.cloudstay-yelp-count-v2 {
    font-size: 15px;
    color: #6b7280;
}

.cloudstay-yelp-logo-v2 {
    margin-left: auto;
}

.cloudstay-yelp-logo-v2 svg {
    width: 60px;
    height: auto;
}

/* V2 Single Page Google Rating Bar */
.cloudstay-google-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cloudstay-google-stars-v2 {
    display: flex;
    align-items: center;
}

.cloudstay-google-stars-v2 .cloudstay-google-stars {
    font-size: 24px;
}

.cloudstay-google-stars-v2 .cloudstay-google-star {
    color: #fbbc04;
}

.cloudstay-google-stars-v2 .cloudstay-google-star-empty {
    color: #e0e0e0;
}

.cloudstay-google-stars-v2 .cloudstay-google-star-half {
    background: linear-gradient(90deg, #fbbc04 50%, #e0e0e0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloudstay-google-rating-v2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.cloudstay-google-count-v2 {
    font-size: 15px;
    color: #6b7280;
}

.cloudstay-google-logo-v2 {
    margin-left: auto;
}

.cloudstay-google-logo-v2 svg {
    width: 60px;
    height: auto;
}

/* Google Review Rating Stars */
.cloudstay-review-rating {
    margin-bottom: 8px;
}

.cloudstay-review-rating .cloudstay-google-stars {
    font-size: 14px;
}

.cloudstay-review-rating .cloudstay-google-star {
    color: #fbbc04;
}

.cloudstay-review-rating .cloudstay-google-star-empty {
    color: #e0e0e0;
}

/* V2 Contact Info */
.cloudstay-contact-v2 {
    margin-bottom: 30px;
}

.cloudstay-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #4b5563;
}

.cloudstay-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #CC3D2E;
    margin-top: 2px;
}

.cloudstay-contact-item a {
    color: #CC3D2E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cloudstay-contact-item a:hover {
    color: #a52f24;
    text-decoration: underline;
}

/* V2 Description */
.cloudstay-description-v2 {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 30px;
}

.cloudstay-description-v2 p {
    margin: 0 0 1em 0;
}

.cloudstay-additional-v2 {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 30px;
}

/* V2 Video */
.cloudstay-video-v2 {
    margin-bottom: 40px;
}

.cloudstay-video-v2 .cloudstay-video-embed {
    border-radius: 12px;
    overflow: hidden;
}

/* V2 Blog Link */
.cloudstay-blog-link-v2 {
    margin-bottom: 30px;
}

.cloudstay-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.cloudstay-blog-link:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #7dd3fc;
    color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.15);
}

.cloudstay-blog-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cloudstay-blog-link .dashicons-external {
    font-size: 14px;
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* V2 Section Title */
.cloudstay-section-title-v2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

/* V2 Reviews */
.cloudstay-reviews-v2 {
    margin-top: 40px;
}

.cloudstay-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cloudstay-review-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.cloudstay-review-avatar {
    flex-shrink: 0;
}

.cloudstay-review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.cloudstay-review-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #CC3D2E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.cloudstay-review-content {
    flex: 1;
    min-width: 0;
}

.cloudstay-review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 10px 0;
    font-style: italic;
}

.cloudstay-review-author {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* V2 Sidebar */
.cloudstay-sidebar-v2 {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cloudstay-widget-v2 {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
}

.cloudstay-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

/* V2 Opening Hours */
.cloudstay-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cloudstay-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.cloudstay-hours-list li:last-child {
    border-bottom: none;
}

.cloudstay-hours-list li.cloudstay-today {
    background: #fef3f2;
    margin: 0 -25px;
    padding: 10px 25px;
    border-radius: 0;
}

.cloudstay-hours-list li.cloudstay-today .cloudstay-day {
    font-weight: 700;
    color: #CC3D2E;
}

.cloudstay-day {
    color: #374151;
}

.cloudstay-time {
    color: #6b7280;
}

.cloudstay-hours-simple {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* V2 Newsletter */
.cloudstay-newsletter-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.cloudstay-newsletter-form {
    display: flex;
    gap: 10px;
}

.cloudstay-newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.cloudstay-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #CC3D2E;
}

.cloudstay-newsletter-btn {
    background: #CC3D2E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloudstay-newsletter-btn:hover {
    background: #a52f24;
}

.cloudstay-newsletter-btn svg {
    stroke: currentColor;
}

/* V2 Share Buttons */
.cloudstay-share-buttons-v2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cloudstay-share-btn-v2 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cloudstay-share-btn-v2:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.cloudstay-share-btn-v2.cloudstay-share-facebook {
    background: #1877f2;
}

.cloudstay-share-btn-v2.cloudstay-share-twitter {
    background: #000;
}

.cloudstay-share-btn-v2.cloudstay-share-pinterest {
    background: #e60023;
}

.cloudstay-share-btn-v2.cloudstay-share-email {
    background: #6b7280;
}

/* V2 Map Widget */
.cloudstay-map-widget-v2 {
    overflow: hidden;
}

.cloudstay-single-map-v2 {
    height: var(--cloudstay-single-map-height, 200px);
    min-height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cloudstay-single-map-v2 .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

.cloudstay-directions-btn-v2 {
    display: block;
    width: 100%;
    padding: 12px;
    background: #CC3D2E;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cloudstay-directions-btn-v2:hover {
    background: #a52f24;
    color: #fff;
}

/* V2 Responsive */
@media (max-width: 1024px) {
    .cloudstay-content-v2-grid {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .cloudstay-hero-v2-title {
        font-size: 44px;
    }

    .cloudstay-title-v2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .cloudstay-hero-v2 {
        height: 300px;
    }

    .cloudstay-hero-script {
        font-size: 24px;
    }

    .cloudstay-hero-v2-title {
        font-size: 32px;
    }

    .cloudstay-content-v2 {
        padding: 40px 0;
    }

    .cloudstay-content-v2-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cloudstay-script-headline {
        font-size: 22px;
    }

    .cloudstay-title-v2 {
        font-size: 28px;
    }

    .cloudstay-yelp-v2,
    .cloudstay-google-v2 {
        flex-wrap: wrap;
    }

    .cloudstay-yelp-logo-v2,
    .cloudstay-google-logo-v2 {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .cloudstay-widget-v2 {
        padding: 20px;
    }

    .cloudstay-hours-list li.cloudstay-today {
        margin: 0 -20px;
        padding: 10px 20px;
    }

    .cloudstay-review-item {
        flex-direction: column;
        gap: 12px;
    }

    .cloudstay-section-title-v2 {
        font-size: 20px;
    }
}

/* ==========================================================================
   CSS-Only Skeleton Loading
   ========================================================================== */

/* Skeleton shimmer animation */
@keyframes cloudstay-skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton base for card images before load */
.cloudstay-card-image:empty,
.cloudstay-card-image:not([style*="background-image"]) {
    background: linear-gradient(
        90deg,
        #e8e8e8 0%,
        #f5f5f5 50%,
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: cloudstay-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Skeleton for card body elements during initial load */
.cloudstay-experience-card.is-loading .cloudstay-card-title,
.cloudstay-experience-card.is-loading .cloudstay-card-meta {
    background: linear-gradient(
        90deg,
        #e8e8e8 0%,
        #f5f5f5 50%,
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: cloudstay-skeleton-shimmer 1.5s ease-in-out infinite;
    color: transparent !important;
    border-radius: 4px;
}

.cloudstay-experience-card.is-loading .cloudstay-card-title a,
.cloudstay-experience-card.is-loading .cloudstay-card-meta * {
    visibility: hidden;
}

/* Grid skeleton placeholder (for initial page load) */
.cloudstay-skeleton-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cloudstay-skeleton-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(
        90deg,
        #e8e8e8 0%,
        #f5f5f5 50%,
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: cloudstay-skeleton-shimmer 1.5s ease-in-out infinite;
}

.cloudstay-skeleton-content {
    padding: 16px;
}

.cloudstay-skeleton-title {
    height: 20px;
    width: 80%;
    background: linear-gradient(
        90deg,
        #e8e8e8 0%,
        #f5f5f5 50%,
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: cloudstay-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.cloudstay-skeleton-meta {
    height: 14px;
    width: 60%;
    background: linear-gradient(
        90deg,
        #e8e8e8 0%,
        #f5f5f5 50%,
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: cloudstay-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .cloudstay-card-image:empty,
    .cloudstay-card-image:not([style*="background-image"]),
    .cloudstay-experience-card.is-loading .cloudstay-card-title,
    .cloudstay-experience-card.is-loading .cloudstay-card-meta,
    .cloudstay-skeleton-image,
    .cloudstay-skeleton-title,
    .cloudstay-skeleton-meta {
        animation: none;
        background: #e8e8e8;
    }
}

/* V2 Print Styles */
@media print {
    .cloudstay-hero-v2 {
        height: auto;
        min-height: 150px;
        background: none !important;
        color: #000;
    }

    .cloudstay-hero-v2::before {
        display: none;
    }

    .cloudstay-hero-script,
    .cloudstay-script-headline {
        color: #CC3D2E !important;
    }

    .cloudstay-hero-v2-title {
        color: #000 !important;
        text-shadow: none;
    }

    .cloudstay-content-v2-grid {
        display: block;
    }

    .cloudstay-sidebar-v2,
    .cloudstay-share-buttons-v2,
    .cloudstay-newsletter-widget,
    .cloudstay-map-widget-v2 {
        display: none !important;
    }
}

/* ==========================================================================
   Desktop Sidebar - Compact Layout (1440px and below)
   ========================================================================== */

/* Compact desktop sticky sidebar */
.cloudstay-sidebar-v2 {
    /* Remove dividers/borders between sections */
}

.cloudstay-sidebar-v2 .cloudstay-sidebar-section {
    border-top: none;
    padding: 8px 14px;
}

.cloudstay-sidebar-v2 .cloudstay-sidebar-section:first-child {
    padding-top: 0;
}

/* Compact header */
.cloudstay-sidebar-v2 .cloudstay-sidebar-header {
    padding: 10px 14px;
    border-bottom: none;
    margin-bottom: 4px;
}

.cloudstay-sidebar-v2 .cloudstay-sidebar-header h3 {
    font-size: 15px;
    margin: 0;
}

/* Compact view toggle buttons */
.cloudstay-sidebar-v2 .cloudstay-view-toggle button {
    width: 30px;
    height: 30px;
    padding: 0;
}

.cloudstay-sidebar-v2 .cloudstay-view-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Compact search box */
.cloudstay-sidebar-v2 .cloudstay-search-section {
    padding: 6px 14px;
}

.cloudstay-sidebar-v2 .cloudstay-search-input {
    padding: 8px 10px 8px 34px;
    font-size: 13px;
    border-radius: 6px;
}

.cloudstay-sidebar-v2 .cloudstay-search-icon {
    left: 10px;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Compact results count */
.cloudstay-sidebar-v2 .cloudstay-results-section {
    padding: 4px 14px;
}

.cloudstay-sidebar-v2 .cloudstay-results-count {
    font-size: 11px;
}

/* Compact clear button */
.cloudstay-sidebar-v2 .cloudstay-clear-section {
    padding: 4px 14px 8px;
}

.cloudstay-sidebar-v2 .cloudstay-clear-filters,
.cloudstay-sidebar-v2 .cloudstay-btn-clear {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Compact action buttons (Near Me, Favorites) */
.cloudstay-sidebar-v2 .cloudstay-nearme-section,
.cloudstay-sidebar-v2 .cloudstay-favorites-section {
    padding: 4px 14px;
}

.cloudstay-sidebar-v2 .cloudstay-btn-action,
.cloudstay-sidebar-v2 .cloudstay-nearme-btn,
.cloudstay-sidebar-v2 .cloudstay-favorites-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.cloudstay-sidebar-v2 .cloudstay-btn-action .dashicons,
.cloudstay-sidebar-v2 .cloudstay-nearme-btn .dashicons,
.cloudstay-sidebar-v2 .cloudstay-favorites-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.cloudstay-sidebar-v2 .cloudstay-favorites-count {
    font-size: 11px;
}

/* Compact category filters - this is the main list */
.cloudstay-sidebar-v2 .cloudstay-category-filters {
    padding: 4px 14px;
    gap: 2px;
    display: flex;
    flex-direction: column;
}

.cloudstay-sidebar-v2 .cloudstay-filter-btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 5px;
    margin-bottom: 0;
}

.cloudstay-sidebar-v2 .cloudstay-filter-count {
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 8px;
}

/* Compact dropdowns (Sort, Month, Cuisine) */
.cloudstay-sidebar-v2 .cloudstay-sidebar-label {
    font-size: 10px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cloudstay-sidebar-v2 .cloudstay-month-select,
.cloudstay-sidebar-v2 .cloudstay-sort-select,
.cloudstay-sidebar-v2 .cloudstay-cuisine-select,
.cloudstay-sidebar-v2 .cloudstay-radius-select {
    padding: 7px 30px 7px 10px;
    font-size: 12px;
    border-radius: 5px;
    background-position: right 8px center;
}

/* Radius controls */
.cloudstay-sidebar-v2 .cloudstay-radius-wrap {
    margin-top: 6px;
}

.cloudstay-sidebar-v2 .cloudstay-radius-label {
    font-size: 10px;
}

/* Category highlight color customization via CSS variable */
.cloudstay-sidebar-v2 .cloudstay-filter-btn.active {
    background: var(--cloudstay-category-highlight-bg, #1f2937);
    color: var(--cloudstay-category-highlight-text, #fff);
}

.cloudstay-sidebar-v2 .cloudstay-filter-btn.active .cloudstay-filter-count {
    background: var(--cloudstay-category-highlight-count-bg, rgba(255, 255, 255, 0.2));
}

/* ==========================================================================
   V2 Template - 50/50 Split Layout with Sticky Header Controls
   ========================================================================== */

/* Main V2 Layout Container */
.cloudstay-v2 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.cloudstay-v2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--cloudstay-header-offset, 0px));
    width: 100%;
}

/* Left Panel: Cards */
.cloudstay-v2-cards-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--cloudstay-header-offset, 0px));
    overflow: hidden;
    background: #fff;
}

/* Right Panel: Map */
.cloudstay-v2-map-panel {
    position: sticky;
    top: var(--cloudstay-header-offset, 0px);
    height: calc(100vh - var(--cloudstay-header-offset, 0px));
}

.cloudstay-v2-map-panel .cloudstay-map {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Sticky Controls Header */
.cloudstay-v2-controls-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

/* Control Rows */
.cloudstay-v2-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Row 1: Search + View Toggle */
.cloudstay-v2-row-search {
    gap: 12px;
}

.cloudstay-v2-row-search .cloudstay-search-wrap {
    flex: 1;
    position: relative;
}

.cloudstay-v2-row-search .cloudstay-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    transition: border-color 0.2s, background 0.2s;
}

.cloudstay-v2-row-search .cloudstay-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
}

.cloudstay-v2-row-search .cloudstay-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.cloudstay-v2-row-search .cloudstay-view-toggle {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 3px;
    border-radius: 8px;
}

.cloudstay-v2-row-search .cloudstay-view-toggle button {
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.cloudstay-v2-row-search .cloudstay-view-toggle button.active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cloudstay-v2-row-search .cloudstay-view-toggle button:hover:not(.active) {
    color: #374151;
}

/* Row 2: Categories (horizontal scroll) */
.cloudstay-v2-row-categories {
    margin: 0 -16px;
    padding: 0 16px;
    overflow: hidden;
}

.cloudstay-v2-category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.cloudstay-v2-category-scroll::-webkit-scrollbar {
    display: none;
}

.cloudstay-v2-category-scroll .cloudstay-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cloudstay-v2-category-scroll .cloudstay-filter-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.cloudstay-v2-category-scroll .cloudstay-filter-btn.active {
    background: var(--cloudstay-category-highlight-bg, #1f2937);
    border-color: var(--cloudstay-category-highlight-bg, #1f2937);
    color: #fff;
}

.cloudstay-v2-category-scroll .cloudstay-filter-count {
    font-size: 11px;
    padding: 1px 6px;
    background: #f3f4f6;
    border-radius: 10px;
    color: #6b7280;
}

.cloudstay-v2-category-scroll .cloudstay-filter-btn.active .cloudstay-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Row 3: Actions (Sort, Near Me, Favorites, Clear) */
.cloudstay-v2-row-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.cloudstay-v2-actions-left,
.cloudstay-v2-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Sort and Filter Dropdowns */
.cloudstay-v2-sort-wrap,
.cloudstay-v2-filter-wrap {
    position: relative;
}

.cloudstay-v2-sort-wrap select,
.cloudstay-v2-filter-wrap select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    cursor: pointer;
    color: #374151;
}

.cloudstay-v2-sort-wrap select:focus,
.cloudstay-v2-filter-wrap select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Action Buttons (Near Me, Favorites, Clear) */
.cloudstay-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cloudstay-v2-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.cloudstay-v2-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Near Me Active State */
.cloudstay-v2-btn.cloudstay-nearme-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* Favorites Active State */
.cloudstay-v2-btn.cloudstay-favorites-btn.active {
    background: #fce7f3;
    border-color: #ec4899;
    color: #be185d;
}

.cloudstay-v2-btn .cloudstay-favorites-count {
    font-size: 11px;
    color: #9ca3af;
}

.cloudstay-v2-btn.active .cloudstay-favorites-count {
    color: inherit;
}

/* Clear Button */
.cloudstay-v2-btn.cloudstay-clear-filters {
    border-color: #fca5a5;
    color: #dc2626;
}

.cloudstay-v2-btn.cloudstay-clear-filters:hover {
    background: #fef2f2;
}

/* Row 4: Info Row (Results + Radius) */
.cloudstay-v2-row-info {
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.cloudstay-v2-row-info .cloudstay-radius-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cloudstay-v2-row-info .cloudstay-radius-label {
    font-size: 12px;
    color: #6b7280;
}

.cloudstay-v2-row-info .cloudstay-radius-select {
    padding: 4px 24px 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 6px center;
    appearance: none;
}

/* Scrollable Cards Container */
.cloudstay-v2-cards-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Cards Grid in V2 */
.cloudstay-v2 .cloudstay-experiences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Category Header in V2 */
.cloudstay-v2 .cloudstay-category-header {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

/* ==========================================================================
   V2 Template - Grid Only View (Map Hidden)
   ========================================================================== */

.cloudstay-v2-layout[data-map-visible="false"] {
    grid-template-columns: 1fr;
}

.cloudstay-v2-layout[data-map-visible="false"] .cloudstay-v2-map-panel {
    display: none;
}

.cloudstay-v2-layout[data-map-visible="false"] .cloudstay-experiences-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   V2 Template - Responsive Styles
   ========================================================================== */

@media (max-width: 1200px) {
    .cloudstay-v2-layout[data-map-visible="false"] .cloudstay-experiences-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .cloudstay-v2-layout {
        grid-template-columns: 1fr;
    }

    .cloudstay-v2-cards-panel {
        height: auto;
        min-height: auto;
    }

    .cloudstay-v2-map-panel {
        position: relative;
        top: 0;
        height: 50vh;
        order: -1;
    }

    .cloudstay-v2-cards-container {
        max-height: none;
        overflow: visible;
    }

    .cloudstay-v2 .cloudstay-experiences-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cloudstay-v2-layout[data-map-visible="false"] .cloudstay-experiences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cloudstay-v2-controls-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .cloudstay-v2-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cloudstay-v2-actions-left,
    .cloudstay-v2-actions-right {
        justify-content: flex-start;
    }

    .cloudstay-v2-btn .btn-text {
        display: none;
    }

    .cloudstay-v2-btn {
        padding: 8px 10px;
    }

    .cloudstay-v2 .cloudstay-experiences-grid,
    .cloudstay-v2-layout[data-map-visible="false"] .cloudstay-experiences-grid {
        grid-template-columns: 1fr;
    }

    .cloudstay-v2-cards-container {
        padding: 12px;
    }

    .cloudstay-v2-map-panel {
        height: 40vh;
    }
}

@media (max-width: 480px) {
    .cloudstay-v2-row-search {
        flex-direction: column;
        gap: 8px;
    }

    .cloudstay-v2-row-search .cloudstay-view-toggle {
        align-self: flex-end;
    }

    .cloudstay-v2-category-scroll .cloudstay-filter-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ========================================
   Experience Widget Shortcode Styles
   ======================================== */

.cloudstay-widget {
    --widget-columns: 3;
    --widget-gap: 20px;
    --widget-split: 66.666% 33.333%;
    --widget-title-size: var(--cloudstay-title-size, 18px);
    --widget-title-weight: var(--cloudstay-title-weight, 600);
    width: 100%;
    --widget-title-color: var(--cloudstay-title-color, #1f2937);
    --widget-meta-size: var(--cloudstay-meta-size, 14px);
    --widget-meta-color: var(--cloudstay-meta-color, #777777);
    --widget-card-bg: var(--cloudstay-card-bg, #ffffff);
    --widget-card-border: var(--cloudstay-card-border, #e5e7eb);
    --widget-accent: var(--cloudstay-primary, #ef4444);
    --widget-card-padding: var(--cloudstay-card-padding, 0);
    --widget-card-gap: 20px;
    --widget-border-radius: var(--cloudstay-card-radius, 12px);
    --widget-image-height: var(--cloudstay-image-height, 200px);
}

.cloudstay-widget-error,
.cloudstay-widget-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9fafb;
    border-radius: 8px;
}

/* Widget Header with Map Toggle */
.cloudstay-widget-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.cloudstay-widget-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.cloudstay-widget-map-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}

.cloudstay-widget-map-toggle.active {
    background: var(--widget-accent);
    border-color: var(--widget-accent);
    color: #fff;
}

.cloudstay-widget-map-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Widget Split Layout */
.cloudstay-widget-layout {
    display: grid;
    grid-template-columns: var(--widget-split);
    gap: var(--widget-gap);
}

.cloudstay-widget-layout[data-map-position="left"] {
    grid-template-columns: var(--widget-split);
}

.cloudstay-widget-layout[data-split="50/50"] {
    --widget-split: 50% 50%;
}

.cloudstay-widget-layout[data-split="66/33"] {
    --widget-split: 66.666% 33.333%;
}

.cloudstay-widget-layout[data-split="33/66"] {
    --widget-split: 33.333% 66.666%;
}

.cloudstay-widget-layout[data-split="100/0"] {
    --widget-split: 100%;
}

/* When map is hidden, grid takes full width */
.cloudstay-widget-layout.map-hidden {
    grid-template-columns: 1fr !important;
}

.cloudstay-widget-layout.map-hidden .cloudstay-widget-map-container {
    display: none;
}

/* Widget Grid */
.cloudstay-widget-grid-container {
    min-width: 0;
}

/* Widget list container - override main template styles */
.cloudstay-widget .cloudstay-widget-grid-container.cloudstay-experiences-list {
    max-height: var(--widget-list-height, 80vh);
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 500px;
}

/* Grid-only mode (no map) - let list flow naturally */
.cloudstay-widget .cloudstay-widget-grid-only.cloudstay-experiences-list {
    max-height: none;
    overflow: visible;
    padding: 20px;
    padding-bottom: 500px;
}

.cloudstay-widget-grid {
    display: grid;
    grid-template-columns: repeat(var(--widget-columns), 1fr);
    gap: var(--widget-card-gap);
}

.cloudstay-widget-grid-only .cloudstay-widget-grid {
    grid-template-columns: repeat(var(--widget-columns), 1fr);
}

/* Widget Card Overrides */
.cloudstay-widget-card {
    background: var(--widget-card-bg);
    border: 1px solid var(--widget-card-border);
    border-radius: var(--widget-border-radius);
    padding: var(--widget-card-padding);
}

.cloudstay-widget-card .cloudstay-card-title {
    font-size: var(--widget-title-size);
    font-weight: var(--widget-title-weight);
    color: var(--widget-title-color);
}

.cloudstay-widget-card .cloudstay-card-meta {
    font-size: var(--widget-meta-size);
    color: var(--widget-meta-color);
}

.cloudstay-widget-card .cloudstay-card-image-wrap .cloudstay-card-image {
    height: var(--widget-image-height);
}

.cloudstay-widget-card .cloudstay-card-learn-more {
    color: var(--widget-accent);
}

.cloudstay-widget-card .cloudstay-card-learn-more:hover {
    color: var(--widget-accent);
    opacity: 0.8;
}

/* Widget Map */
.cloudstay-widget-map-container {
    min-width: 0;
    position: relative;
}

.cloudstay-widget-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--widget-border-radius);
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .cloudstay-widget-layout {
        grid-template-columns: 1fr !important;
    }

    .cloudstay-widget-layout[data-map-position="left"] .cloudstay-widget-map-container {
        order: 2;
    }

    .cloudstay-widget-layout[data-map-position="left"] .cloudstay-widget-grid-container {
        order: 1;
    }

    .cloudstay-widget-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .cloudstay-widget {
        --widget-columns: 2;
    }
}

@media (max-width: 480px) {
    .cloudstay-widget {
        --widget-columns: 1;
    }

    .cloudstay-widget-map {
        min-height: 250px;
    }
}

/* Widget Controls Header */
.cloudstay-widget-controls-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cloudstay-widget-controls-header select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cloudstay-widget-controls-header select:hover {
    border-color: #9ca3af;
}

.cloudstay-widget-controls-header select:focus {
    outline: none;
    border-color: var(--cloudstay-primary, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cloudstay-widget-map-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.cloudstay-widget-map-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}

.cloudstay-widget-map-toggle.active {
    background: var(--cloudstay-primary, #667eea);
    border-color: var(--cloudstay-primary, #667eea);
    color: #fff;
}

.cloudstay-widget-map-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Widget Favorites Button */
.cloudstay-widget-favorites-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.cloudstay-widget-favorites-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.cloudstay-widget-favorites-btn.active {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.cloudstay-widget-favorites-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.cloudstay-widget-favorites-count {
    font-size: 12px;
    color: inherit;
    opacity: 0.8;
}

/* Card Favorite Heart Button */
.cloudstay-widget-card .cloudstay-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cloudstay-widget-card .cloudstay-favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.cloudstay-widget-card .cloudstay-favorite-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: color 0.2s;
}

.cloudstay-widget-card .cloudstay-favorite-btn:hover .dashicons {
    color: #ef4444;
}

.cloudstay-widget-card .cloudstay-favorite-btn.is-favorite .dashicons {
    color: #ef4444;
}

/* Card visibility states */
.cloudstay-widget-card.cloudstay-hidden {
    display: none !important;
}

.cloudstay-widget-card.cloudstay-visible {
    display: block;
}

/* Controls Header Responsive */
@media (max-width: 768px) {
    .cloudstay-widget-controls-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .cloudstay-widget-controls-header select {
        flex: 1;
        min-width: 120px;
    }

    .cloudstay-widget-map-toggle,
    .cloudstay-widget-favorites-btn {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .cloudstay-widget-controls-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cloudstay-widget-controls-header select,
    .cloudstay-widget-map-toggle,
    .cloudstay-widget-favorites-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Widget Sidebar Layout
   ======================================== */

/* Widget with sidebar */
.cloudstay-widget.has-sidebar {
    display: grid;
    gap: 0;
}

.cloudstay-widget.has-sidebar.sidebar-left {
    grid-template-columns: 200px 1fr;
}

.cloudstay-widget.has-sidebar.sidebar-top {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

/* Widget Sidebar */
.cloudstay-widget-sidebar {
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.sidebar-top .cloudstay-widget-sidebar {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

/* Sidebar Header (matches main template) */
.cloudstay-widget-sidebar .cloudstay-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-top .cloudstay-widget-sidebar .cloudstay-sidebar-header {
    border-bottom: none;
    padding: 0;
}

.cloudstay-widget-sidebar .cloudstay-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

/* Widget View Toggle (map/grid icons) */
.cloudstay-widget-sidebar .cloudstay-view-toggle {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.cloudstay-widget-sidebar .cloudstay-view-toggle button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cloudstay-widget-sidebar .cloudstay-view-toggle button:hover {
    background: #e2e8f0;
    color: #334155;
}

.cloudstay-widget-sidebar .cloudstay-view-toggle button.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cloudstay-widget-sidebar .cloudstay-view-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Sidebar sections */
.cloudstay-widget-sidebar .cloudstay-sidebar-section {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.sidebar-top .cloudstay-widget-sidebar .cloudstay-sidebar-section {
    padding: 0;
    border-bottom: none;
}

/* Widget sidebar filters (category list) */
.cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.sidebar-top .cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.sidebar-top .cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn {
    width: auto;
    border-left: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f5f9;
}

.cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn:hover {
    background: #f8fafc;
    border-left-color: #e2e8f0;
    color: #0f172a;
}

.sidebar-top .cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn:hover {
    background: #e2e8f0;
    border-left-color: transparent;
}

.cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn.active {
    background: #f0f9ff;
    border-left-color: #0284c7;
    color: #0369a1;
    font-weight: 500;
}

.sidebar-top .cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn.active {
    background: #0284c7;
    border-left-color: transparent;
    color: #fff;
}

.cloudstay-widget-sidebar .cloudstay-filter-count {
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.cloudstay-widget-sidebar .cloudstay-filter-btn.active .cloudstay-filter-count {
    background: #bae6fd;
    color: #0369a1;
}

.sidebar-top .cloudstay-widget-sidebar .cloudstay-filter-btn.active .cloudstay-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Widget Main Content */
.cloudstay-widget-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Widget layout with dynamic columns */
.cloudstay-widget .cloudstay-split-layout[data-map-visible="false"] {
    grid-template-columns: 1fr;
}

.cloudstay-widget .cloudstay-widget-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.cloudstay-widget .cloudstay-widget-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.cloudstay-widget .cloudstay-widget-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.cloudstay-widget .cloudstay-widget-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.cloudstay-widget .cloudstay-widget-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

/* Responsive widget sidebar */
@media (max-width: 992px) {
    .cloudstay-widget.has-sidebar.sidebar-left {
        grid-template-columns: 1fr;
    }

    .cloudstay-widget-sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        max-height: none;
    }

    .cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 16px;
    }

    .cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn {
        width: auto;
        border-left: none;
        padding: 8px 16px;
        border-radius: 20px;
        background: #f1f5f9;
    }

    .cloudstay-widget-sidebar .cloudstay-widget-sidebar-filters .cloudstay-filter-btn.active {
        background: #0284c7;
        border-left-color: transparent;
        color: #fff;
    }

    .cloudstay-widget-sidebar .cloudstay-filter-btn.active .cloudstay-filter-count {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
}

/* Widget Sidebar - Posts Mode (Shows list) */
.cloudstay-sidebar-posts-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.sidebar-top .cloudstay-sidebar-posts-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.cloudstay-sidebar-post-link {
    display: block;
    padding: 10px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.sidebar-top .cloudstay-sidebar-post-link {
    border-left: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f5f9;
}

.cloudstay-sidebar-post-link:hover {
    background: #f8fafc;
    border-left-color: #e2e8f0;
    color: #0f172a;
}

.sidebar-top .cloudstay-sidebar-post-link:hover {
    background: #e2e8f0;
    border-left-color: transparent;
}

.cloudstay-sidebar-post-link.active {
    background: #f0f9ff;
    border-left-color: #0284c7;
    color: #0369a1;
    font-weight: 500;
}

.sidebar-top .cloudstay-sidebar-post-link.active {
    background: #0284c7;
    border-left-color: transparent;
    color: #fff;
}

/* Highlighted card (when scrolled to from sidebar) */
.cloudstay-experience-card.cloudstay-highlighted {
    box-shadow: 0 0 0 3px #0284c7, 0 4px 20px rgba(2, 132, 199, 0.3);
    animation: cloudstay-highlight-pulse 0.5s ease;
}

@keyframes cloudstay-highlight-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@media (max-width: 991px) {
    .cloudstay-sidebar-posts-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 16px;
    }

    .cloudstay-sidebar-post-link {
        border-left: none;
        padding: 8px 16px;
        border-radius: 20px;
        background: #f1f5f9;
    }

    .cloudstay-sidebar-post-link.active {
        background: #0284c7;
        border-left-color: transparent;
        color: #fff;
    }
}

@media (max-width: 768px) {
    .cloudstay-widget .cloudstay-widget-grid[data-columns="3"],
    .cloudstay-widget .cloudstay-widget-grid[data-columns="4"],
    .cloudstay-widget .cloudstay-widget-grid[data-columns="5"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cloudstay-widget .cloudstay-widget-grid[data-columns="2"],
    .cloudstay-widget .cloudstay-widget-grid[data-columns="3"],
    .cloudstay-widget .cloudstay-widget-grid[data-columns="4"],
    .cloudstay-widget .cloudstay-widget-grid[data-columns="5"] {
        grid-template-columns: 1fr;
    }
}
