/**
 * Simple Shortlet Bookings - Frontend Styles
 * Premium, modern styling for booking forms and listings
 */

/* ============================================
   Imports & Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   Variables & Base Styles
   ============================================ */
:root {
    /* Primary Brand Colors - Deep Indigo & Violet */
    --ssb-primary: #4f46e5;
    --ssb-primary-dark: #4338ca;
    --ssb-primary-light: #818cf8;
    --ssb-accent: #8b5cf6;

    /* Functional Colors */
    --ssb-success: #10b981;
    --ssb-error: #ef4444;
    --ssb-warning: #f59e0b;
    --ssb-info: #3b82f6;

    /* Neutrals - Slate */
    --ssb-white: #ffffff;
    --ssb-gray-50: #f8fafc;
    --ssb-gray-100: #f1f5f9;
    --ssb-gray-200: #e2e8f0;
    --ssb-gray-300: #cbd5e1;
    --ssb-gray-400: #94a3b8;
    --ssb-gray-500: #64748b;
    --ssb-gray-600: #475569;
    --ssb-gray-700: #334155;
    --ssb-gray-800: #1e293b;
    --ssb-gray-900: #0f172a;

    /* Shadows - Soft & Layered */
    --ssb-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ssb-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ssb-shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ssb-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --ssb-shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --ssb-shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Border Radius */
    --ssb-radius-sm: 0.375rem;
    --ssb-radius: 0.5rem;
    --ssb-radius-lg: 1rem;
    --ssb-radius-xl: 1.5rem;

    /* Transitions */
    --ssb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ssb-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --ssb-font-heading: 'Outfit', sans-serif;
    --ssb-font-body: 'Inter', sans-serif;
}

/* Base Reset for Plugin Elements */
.ssb-booking-form,
.ssb-shortlet-list,
.ssb-single-shortlet-wrapper {
    box-sizing: border-box;
    color: var(--ssb-gray-800);
    font-family: var(--ssb-font-body);
    line-height: 1.6;
}

.ssb-booking-form *,
.ssb-shortlet-list *,
.ssb-single-shortlet-wrapper * {
    box-sizing: border-box;
}

/* ============================================
   Typography
   ============================================ */
h1.ssb-single-title,
h2.ssb-section-title,
h3.ssb-shortlet-title {
    font-family: var(--ssb-font-heading);
    color: var(--ssb-gray-900);
    margin-top: 0;
}

h1.ssb-single-title {
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    line-height: 1.1 !important;
    font-size: 2rem !important; /* Explicit font size */
    margin-bottom: 1rem !important; /* Add spacing */
    display: block !important; /* Ensure it's visible */
    visibility: visible !important;
    color: var(--ssb-gray-900) !important;
}

.ssb-single-header {
    margin-bottom: 2rem !important;
}

/* Ensure title is visible even with theme overrides */
.ssb-single-content-wrapper .ssb-single-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   Booking Form Styles (Card Style)
   ============================================ */
.ssb-booking-form {
    background: var(--ssb-white);
    border-radius: var(--ssb-radius-lg);
    box-shadow: var(--ssb-shadow-lg);
    padding: 2rem;
    border: 1px solid var(--ssb-gray-100);
    position: relative;
    overflow: hidden;
}

/* Subtle top accent bar */
.ssb-booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ssb-primary), var(--ssb-accent));
}

.ssb-form-group {
    margin-bottom: 1.25rem;
}

.ssb-booking-form label {
    display: block;
    font-family: var(--ssb-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ssb-gray-700);
    margin-bottom: 0.5rem;
}

.ssb-input-wrapper {
    position: relative;
}

.ssb-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ssb-gray-400);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.ssb-booking-form input:focus+.ssb-input-icon,
.ssb-booking-form input:focus~.ssb-input-icon {
    color: var(--ssb-primary);
}

/* Select the icon when input is focused (using :focus-within on wrapper if needed, but sibling selector works if icon is after input, wait, icon is before input) */
.ssb-input-wrapper:focus-within .ssb-input-icon {
    color: var(--ssb-primary);
}

.ssb-booking-form input[type="text"],
.ssb-booking-form input[type="email"],
.ssb-booking-form input[type="tel"],
.ssb-booking-form input[type="date"],
.ssb-date-picker {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    /* Extra left padding for icon */
    font-size: 1rem;
    font-family: var(--ssb-font-body);
    color: var(--ssb-gray-900);
    background-color: var(--ssb-white);
    border: 1px solid var(--ssb-gray-200);
    border-radius: var(--ssb-radius);
    transition: var(--ssb-transition-fast);
    box-shadow: var(--ssb-shadow-inner);
}

.ssb-booking-form input:focus,
.ssb-date-picker:focus {
    outline: none;
    background-color: var(--ssb-white);
    border-color: var(--ssb-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.ssb-booking-form input:hover,
.ssb-date-picker:hover {
    border-color: var(--ssb-gray-300);
}

/* Submit Button */
.ssb-booking-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-family: var(--ssb-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ssb-white);
    background: linear-gradient(135deg, var(--ssb-primary) 0%, var(--ssb-primary-dark) 100%);
    border: none;
    border-radius: var(--ssb-radius);
    cursor: pointer;
    transition: var(--ssb-transition);
    box-shadow: var(--ssb-shadow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.ssb-booking-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--ssb-shadow-md);
    background: linear-gradient(135deg, var(--ssb-primary-dark) 0%, var(--ssb-primary) 100%);
}

.ssb-booking-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Pricing Display */
#ssb-pricing-display {
    background: var(--ssb-gray-50) !important;
    border: 1px solid var(--ssb-gray-200) !important;
    border-left: 4px solid var(--ssb-primary) !important;
    border-radius: var(--ssb-radius) !important;
    padding: 1.25rem !important;
    margin: 1.5rem 0 !important;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ssb-total-price {
    color: var(--ssb-primary-dark) !important;
    font-family: var(--ssb-font-heading) !important;
    font-size: 1.25rem !important;
}

/* ============================================
   Flatpickr Customization (Premium Look)
   ============================================ */
.flatpickr-calendar {
    border: none !important;
    border-radius: var(--ssb-radius-lg) !important;
    box-shadow: var(--ssb-shadow-xl) !important;
    font-family: var(--ssb-font-body) !important;
    padding: 1rem !important;
}

.flatpickr-months {
    background: transparent !important;
    margin-bottom: 1rem !important;
}

.flatpickr-month {
    color: var(--ssb-gray-800) !important;
    fill: var(--ssb-gray-800) !important;
}

.flatpickr-current-month {
    font-family: var(--ssb-font-heading) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.flatpickr-weekdays {
    margin-bottom: 0.5rem !important;
}

.flatpickr-weekday {
    color: var(--ssb-gray-400) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.flatpickr-day {
    border-radius: var(--ssb-radius-sm) !important;
    border: 1px solid transparent !important;
    color: var(--ssb-gray-700) !important;
}

.flatpickr-day.today {
    border-color: var(--ssb-primary) !important;
}

.flatpickr-day:hover {
    background: var(--ssb-gray-100) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--ssb-primary) !important;
    border-color: var(--ssb-primary) !important;
    box-shadow: var(--ssb-shadow-sm) !important;
}

.flatpickr-day.inRange {
    background: var(--ssb-gray-100) !important;
    border-color: transparent !important;
    box-shadow: -5px 0 0 var(--ssb-gray-100), 5px 0 0 var(--ssb-gray-100) !important;
    color: var(--ssb-gray-900) !important;
}

/* ============================================
   Shortlet List Styles (Grid)
   ============================================ */
.ssb-shortlet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.ssb-shortlet-item {
    background: var(--ssb-white);
    border-radius: var(--ssb-radius-lg);
    border: 1px solid var(--ssb-gray-200);
    overflow: hidden;
    transition: var(--ssb-transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.ssb-shortlet-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--ssb-shadow-xl);
    border-color: transparent;
}

.ssb-shortlet-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.ssb-shortlet-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ssb-shortlet-item:hover .ssb-shortlet-thumb img {
    transform: scale(1.08);
}

.ssb-shortlet-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.875rem !important; /* Reduced further for Hello Elementor compatibility */
    font-weight: 600 !important; /* Reduced from 700 */
    line-height: 1.3 !important; /* Tighter line height */
    margin: 0 !important; /* Reset any theme margins */
}

/* Extra specificity for Hello Elementor theme - multiple levels */
body .ssb-shortlet-title,
.elementor-page .ssb-shortlet-title,
.hello-elementor .ssb-shortlet-title,
body.elementor-page .ssb-shortlet-title,
body.hello-elementor .ssb-shortlet-title,
.elementor-page .ssb-shortlet-list .ssb-shortlet-title,
.hello-elementor .ssb-shortlet-list .ssb-shortlet-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Target h3 specifically for maximum override */
h3.ssb-shortlet-title,
body h3.ssb-shortlet-title,
.elementor-page h3.ssb-shortlet-title,
.hello-elementor h3.ssb-shortlet-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Ultra-specific Elementor overrides - target all possible Elementor containers */
.elementor-element h3.ssb-shortlet-title,
.elementor-widget h3.ssb-shortlet-title,
.elementor-section h3.ssb-shortlet-title,
.elementor-container h3.ssb-shortlet-title,
.elementor-row h3.ssb-shortlet-title,
.elementor-column h3.ssb-shortlet-title,
[class*="elementor"] h3.ssb-shortlet-title,
body.elementor-page [class*="elementor"] h3.ssb-shortlet-title,
body.hello-elementor [class*="elementor"] h3.ssb-shortlet-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
}

/* Target the link inside the title as well */
.ssb-shortlet-title a,
h3.ssb-shortlet-title a,
body .ssb-shortlet-title a,
.elementor-page .ssb-shortlet-title a,
.hello-elementor .ssb-shortlet-title a,
[class*="elementor"] .ssb-shortlet-title a {
    font-size: inherit !important;
    font-weight: inherit !important;
    display: inline !important;
}

/* ============================================
   MAXIMUM PRIORITY OVERRIDES FOR ELEMENTOR
   Place at end of file for maximum cascade priority
   ============================================ */
/* Nuclear option: Target every possible Elementor combination */
body.elementor-page .ssb-shortlet-list h3.ssb-shortlet-title,
body.hello-elementor .ssb-shortlet-list h3.ssb-shortlet-title,
body.elementor-page .ssb-shortlet-item h3.ssb-shortlet-title,
body.hello-elementor .ssb-shortlet-item h3.ssb-shortlet-title,
.elementor-page .ssb-shortlet-list .ssb-shortlet-item h3.ssb-shortlet-title,
.hello-elementor .ssb-shortlet-list .ssb-shortlet-item h3.ssb-shortlet-title,
body.elementor-page .elementor-element .ssb-shortlet-list h3.ssb-shortlet-title,
body.hello-elementor .elementor-element .ssb-shortlet-list h3.ssb-shortlet-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
    display: block !important;
}

/* Ensure link inherits size */
body.elementor-page .ssb-shortlet-title a,
body.hello-elementor .ssb-shortlet-title a,
body.elementor-page h3.ssb-shortlet-title a,
body.hello-elementor h3.ssb-shortlet-title a {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.ssb-shortlet-title a {
    color: var(--ssb-gray-900);
    text-decoration: none;
    background-image: linear-gradient(var(--ssb-primary), var(--ssb-primary));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.ssb-shortlet-title a:hover {
    background-size: 100% 2px;
    color: var(--ssb-primary);
}

.ssb-shortlet-excerpt {
    padding: 0 1.5rem;
    color: var(--ssb-gray-500);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.ssb-shortlet-price {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.ssb-price-amount {
    font-family: var(--ssb-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ssb-primary);
    letter-spacing: -0.02em;
}

.ssb-price-label {
    font-size: 0.9rem;
    color: var(--ssb-gray-500);
    font-weight: 500;
}

.ssb-shortlet-link {
    display: block;
    margin: 0 1.5rem 1.5rem;
    padding: 0.875rem;
    text-align: center;
    background: var(--ssb-gray-50);
    color: var(--ssb-gray-700);
    text-decoration: none;
    border-radius: var(--ssb-radius);
    border: 1px solid var(--ssb-gray-300) !important; /* Added rounded border line */
    font-weight: 500 !important; /* Reduced from 600 */
    font-size: 0.875rem !important; /* Reduced from 0.9rem, !important to override theme */
    line-height: 1.5 !important;
    transition: var(--ssb-transition);
}

/* Extra specificity for Hello Elementor theme */
body .ssb-shortlet-link,
.elementor-page .ssb-shortlet-link,
.hello-elementor .ssb-shortlet-link {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid var(--ssb-gray-300) !important; /* Ensure border shows on Hello Elementor */
}

.ssb-shortlet-link:hover {
    background: var(--ssb-primary);
    color: var(--ssb-white) !important;
    border-color: var(--ssb-primary) !important;
    box-shadow: var(--ssb-shadow-md);
}

/* ============================================
   Single Shortlet Page
   ============================================ */
.ssb-single-shortlet-wrapper {
    max-width: 100%;
    background: var(--ssb-white);
}

/* Hero Gallery Container - Constrained Width */
.ssb-single-gallery-container {
    max-width: 1280px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.ssb-single-gallery {
    border-radius: var(--ssb-radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--ssb-shadow-lg);
}

.ssb-single-gallery .ssb-carousel {
    max-height: 550px;
    min-height: 400px;
}

.ssb-single-gallery .ssb-carousel-container {
    height: 550px;
}

.ssb-single-gallery .ssb-carousel-slide {
    height: 100%;
}

.ssb-single-gallery .ssb-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.ssb-single-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.ssb-single-main-content {
    min-width: 0;
    margin-bottom: 3rem;
}

/* Form and Map Wrapper - Side by Side (2/3 and 1/3) */
.ssb-single-shortlet-wrapper .ssb-form-map-wrapper,
.ssb-single-content-wrapper .ssb-form-map-wrapper,
.ssb-form-map-wrapper {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 3rem !important;
    align-items: start !important;
    margin-top: 3rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Booking section in form-map wrapper */
.ssb-form-map-wrapper .ssb-booking-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Map section styling - sticky positioning */
.ssb-form-map-wrapper .ssb-map-section {
    position: sticky !important;
    top: 2rem !important;
    align-self: start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ssb-single-header {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.ssb-single-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ssb-gray-900);
    line-height: 1.2;
}

.ssb-single-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--ssb-gray-50);
    border: 1px solid var(--ssb-gray-200);
    border-radius: var(--ssb-radius);
    color: var(--ssb-gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

.ssb-single-location-badge svg {
    color: var(--ssb-primary);
    flex-shrink: 0;
}

.ssb-single-description {
    font-size: 1.05rem;
    color: var(--ssb-gray-700);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.ssb-single-description p {
    margin-bottom: 1.25rem;
}

/* Price Display */
.ssb-price-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ssb-gray-200);
}

.ssb-price-display .ssb-price-amount {
    font-family: var(--ssb-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ssb-primary);
    letter-spacing: -0.02em;
}

.ssb-price-display .ssb-price-unit {
    font-size: 1.1rem;
    color: var(--ssb-gray-500);
    font-weight: 500;
}

/* Booking Section */
.ssb-booking-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--ssb-gray-200);
}

.ssb-booking-section .ssb-booking-form {
    margin-top: 1.5rem;
}

/* Sidebar (Map) */
.ssb-single-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* Booking section inside main content */
.ssb-single-main-content .ssb-booking-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--ssb-gray-200);
}

/* Location Section */
.ssb-location-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Location section in sidebar */
.ssb-single-sidebar .ssb-location-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ssb-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ssb-gray-900);
}

.ssb-section-title svg {
    color: var(--ssb-primary);
    flex-shrink: 0;
}

.ssb-address {
    background: linear-gradient(135deg, var(--ssb-gray-50) 0%, var(--ssb-white) 100%);
    padding: 1.5rem;
    border-radius: var(--ssb-radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--ssb-gray-200);
    box-shadow: var(--ssb-shadow-sm);
}

.ssb-address-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ssb-gray-500);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--ssb-font-heading);
}

.ssb-address-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ssb-gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ssb-map-container {
    height: 450px;
    width: 100%;
    border-radius: var(--ssb-radius-lg);
    overflow: hidden;
    box-shadow: var(--ssb-shadow-lg);
    border: 1px solid var(--ssb-gray-200);
    position: relative;
    background: var(--ssb-gray-100);
}

.ssb-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--ssb-white);
    padding: 1.5rem 2rem;
    border-radius: var(--ssb-radius);
    box-shadow: var(--ssb-shadow-md);
    font-weight: 500;
    color: var(--ssb-gray-600);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 5;
}

.ssb-map-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid var(--ssb-gray-200);
    border-top-color: var(--ssb-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Map Section - Additional styling */
.ssb-map-section {
    position: sticky !important;
    top: 2rem !important;
    align-self: start !important;
}

.ssb-map-section .ssb-location-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ssb-map-section .ssb-map-container {
    height: 450px;
}

/* ============================================
   Carousel Components
   ============================================ */
.ssb-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ssb-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.ssb-carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeSlide 0.5s ease-in-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ssb-carousel-slide.active {
    display: block;
}

/* Navigation Arrows */
.ssb-carousel-prev,
.ssb-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--ssb-gray-900);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ssb-transition);
    z-index: 20;
    box-shadow: var(--ssb-shadow-md);
    opacity: 0;
    /* Hidden by default, shown on hover */
}

.ssb-carousel:hover .ssb-carousel-prev,
.ssb-carousel:hover .ssb-carousel-next {
    opacity: 1;
}

.ssb-carousel-prev:hover,
.ssb-carousel-next:hover {
    background: var(--ssb-white);
    transform: translateY(-50%) scale(1.1);
    color: var(--ssb-primary);
}

.ssb-carousel-prev {
    left: 20px;
}

.ssb-carousel-next {
    right: 20px;
}

/* Dots */
.ssb-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
}

.ssb-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--ssb-transition);
    padding: 0;
}

.ssb-carousel-dot.active {
    background: var(--ssb-white);
    transform: scale(1.2);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .ssb-single-shortlet-wrapper .ssb-form-map-wrapper,
    .ssb-single-content-wrapper .ssb-form-map-wrapper,
    .ssb-form-map-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .ssb-form-map-wrapper .ssb-map-section {
        position: static !important;
    }

    @media (max-width: 768px) {
        .ssb-shortlet-list {
            grid-template-columns: 1fr;
        }

        .ssb-single-title {
            font-size: 2rem;
        }

        .ssb-booking-form {
            padding: 1.5rem;
        }

        .ssb-single-gallery-container {
            padding: 0;
            margin-bottom: 2rem;
        }

        .ssb-single-gallery {
            border-radius: 0;
        }

        .ssb-single-gallery .ssb-carousel {
            max-height: 400px;
        }

        .ssb-single-gallery .ssb-carousel-container {
            height: 400px;
        }
    }
}

    /* ============================================
   Utilities & Messages
   ============================================ */
    .ssb-message {
        padding: 1rem;
        border-radius: var(--ssb-radius);
        margin-bottom: 1rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .ssb-message-success {
        background-color: #ecfdf5;
        color: #065f46;
        border: 1px solid #a7f3d0;
    }

    .ssb-message-error {
        background-color: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    /* Hide WP default featured image on single shortlet */
    body.single-shortlet .wp-block-post-featured-image,
    body.single-shortlet .post-thumbnail,
    body.single-shortlet img.wp-post-image {
        display: none !important;
    }