:root {
    --msd-primary-color: #000000;
    --msd-secondary-color: #0f0f0f;
    --msd-primary-light: #fdf2ff;
    --msd-primary-dark: #0f0f0f;
    --msd-border-color: #e2e8f0;
    --msd-text-primary: #1a202c;
    --msd-text-secondary: #4a5568;
    --msd-text-muted: #718096;
    --msd-bg-white: #ffffff;
    --msd-bg-light: #f7fafc;
    --msd-bg-hover: #edf2f7;
    --msd-shadow-color: rgba(106, 106, 106, 0.2);
    --msd-overlay-color: rgba(0, 0, 0, 0.5);
}

/* Primary color uses variable */
.msd-magenta-bg {
    background-color: var(--msd-primary-color);
}

.price-range,
.filters-content input[type="checkbox"],
.filters-content input[type="radio"] {
    accent-color: var(--msd-primary-color);
}

#booking-form button,
#booking-form button[type="button"],
#booking-form button[type="submit"],
#booking-form button:focus,
#payment-form button,
#payment-form button[type="button"],
#payment-form button[type="submit"],
#payment-form button:focus,
#thankYouPopup button[type="button"],
#thankYouPopup button[type="submit"],
#thankYouPopup button:focus {
    background: var(--msd-primary-color) !important;
    border: var(--msd-primary-color) !important;
    color: #ffffff !important;
}

#booking-form button:hover,
#booking-form button[type="button"]:hover,
#booking-form button[type="submit"]:hover,
#payment-form button:hover,
#payment-form button[type="button"]:hover,
#payment-form button[type="submit"]:hover,
#thankYouPopup button:hover,
#thankYouPopup button[type="button"]:hover,
#thankYouPopup button[type="submit"]:hover {
    border: var(--msd-primary-color) !important;
    color: #ffffff !important;
}

.msd-search-form input {
    border: 0 !important;
    padding: 0 !important;
}

/* Ensure all three main inputs have equal width */
.msd-search-form>div {
    flex: 1 1 0%;
    min-width: 0;
}

/* Placeholder styles - black with no opacity */
.msd-where-input::placeholder,
.msd-date-range::placeholder {
    color: #111827 !important;
    opacity: .6 !important;
    font-weight: 700 !important;
}

/* For browsers that don't support ::placeholder */
.msd-where-input::-webkit-input-placeholder,
.msd-date-range::-webkit-input-placeholder {
    color: #111827 !important;
    opacity: .6 !important;
    font-weight: 700 !important;
}

.msd-where-input::-moz-placeholder,
.msd-date-range::-moz-placeholder {
    color: #111827 !important;
    opacity: .6 !important;
    font-weight: 700 !important;
}

.msd-where-input:-ms-input-placeholder,
.msd-date-range:-ms-input-placeholder {
    color: #111827 !important;
    opacity: .6 !important;
    font-weight: 700 !important;
}

/* Search button hover effect */
.msd-search-btn,
button.msd-search-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 56px;
    background-color: var(--msd-primary-color);
    color: var(--msd-bg-white);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    box-shadow: 0 10px 15px -3px var(--msd-shadow-color);
    border: none;
    cursor: pointer;
}

.msd-search-btn:hover,
.msd-search-btn:focus,
button.msd-search-btn:hover,
button.msd-search-btn:focus {
    width: 120px !important;
    background-color: var(--msd-secondary-color) !important;
    transform: scale(1.05);
}

.msd-search-btn i {
    transition: opacity 0.3s ease;
}

.msd-text-black {
    color: #000000 !important;
}

.msd-search-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    font-size: 0.875rem;
}

.msd-search-btn:hover span {
    opacity: 1;
}

/* Ensure all labels have same style */
.msd-search-form label {
    font-size: 10px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    display: block;
}

/* Ensure all input areas have same text style */
.msd-where-input,
.msd-date-range,
.msd-guest-display {
    font-size: 16px;
    line-height: 1.5;
    height: 24px;
    color: #111827;
    font-weight: 700;
}

.msd-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--msd-border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: var(--msd-bg-white);
    cursor: pointer;
}

.msd-qty-btn:hover {
    border-color: var(--msd-primary-color);
    color: var(--msd-primary-color);
    background: var(--msd-primary-light);
}

.msd-result-item:last-child {
    border-bottom: none;
}

/* Loading state */
.msd-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Flatpickr customization */
.flatpickr-calendar {
    font-family: 'Inter', sans-serif !important;
}

/* Ensure Tailwind classes work with dynamically added content */
.msd-search-wrapper * {
    transition: all 0.2s ease;
}

/* Hero Section Styles */
.msd-hero-container {
    position: relative;
    transition: all 0.3s ease;
}

.msd-hero-container .msd-search-form {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msd-hero-container .msd-search-form:hover {
    box-shadow: 0 25px 50px -12px var(--msd-shadow-color) !important;
}

.msd-overlay {
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Stats Section */
.msd-stats-item {
    text-align: center;
    color: var(--msd-bg-white);
}

.msd-stats-number {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.msd-stats-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Form Field Styles */
.msd-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--msd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.msd-field-input {
    font-weight: 700;
    color: var(--msd-text-primary);
    background: transparent;
    outline: none;
    width: 100%;
}

.msd-field-input:focus {
    outline: none;
}

.msd-field-input::placeholder {
    color: var(--msd-text-muted);
    font-weight: 400;
}

/* Dropdown Styles */
.msd-dropdown {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    min-width: 350px;
    background: var(--msd-bg-white);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
    overflow: hidden;
    border: 1px solid var(--msd-border-color);
}

.msd-dropdown-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--msd-border-color);
    transition: background-color 0.2s ease;
}

.msd-dropdown-item:hover {
    background-color: var(--msd-bg-hover);
}

.msd-dropdown-item:last-child {
    border-bottom: none;
}

.msd-dropdown-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: var(--msd-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.msd-dropdown-item:hover .msd-dropdown-icon {
    background-color: var(--msd-primary-light);
}

.msd-dropdown-icon i {
    color: var(--msd-text-muted);
    transition: color 0.2s ease;
}

.msd-dropdown-item:hover .msd-dropdown-icon i {
    color: var(--msd-primary-color);
}

/* Room Configuration Styles */
.msd-room-card {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--msd-border-color);
}

.msd-room-card:last-child {
    border-bottom: none;
}

.msd-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.msd-room-title {
    font-weight: 700;
    color: var(--msd-text-primary);
    font-size: 1.125rem;
}

.msd-remove-room {
    color: #dd6b20;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.msd-remove-room:hover {
    color: #c35f1a;
}

.msd-remove-room i {
    font-size: 0.875rem;
}

/* Guest Counter Styles */
.msd-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.msd-guest-label {
    font-weight: 700;
    color: var(--msd-text-primary);
}

.msd-guest-label-small {
    display: block;
    color: var(--msd-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.msd-counter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.msd-counter-value {
    font-weight: 700;
    width: 1rem;
    text-align: center;
    font-size: 1.125rem;
}

/* Child Age Selector */
.msd-child-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.msd-child-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--msd-text-primary);
}

.msd-age-select {
    width: 50%;
    padding: 0.5rem;
    border: 1px solid var(--msd-border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) 50%;
    background-size: 10px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
}

.msd-age-select.error {
    border-color: #ef4444;
}

.msd-age-select:focus {
    border-color: var(--msd-primary-color);
    box-shadow: 0 0 0 3px var(--msd-shadow-color);
}

.msd-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Button Styles */
.msd-btn-primary {
    background-color: var(--msd-primary-color);
    color: var(--msd-bg-white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msd-btn-primary:hover {
    background-color: var(--msd-primary-dark);
    transform: scale(1.05);
}

.msd-btn-secondary {
    background-color: transparent;
    color: var(--msd-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid var(--msd-border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.msd-btn-secondary:hover {
    background-color: var(--msd-bg-hover);
    border-color: var(--msd-primary-color);
    color: var(--msd-primary-color);
}

/* Custom scrollbar for dropdowns */
.msd-search-results::-webkit-scrollbar,
.msd-rooms-list::-webkit-scrollbar {
    width: 6px;
}

.msd-search-results::-webkit-scrollbar-track,
.msd-rooms-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.msd-search-results::-webkit-scrollbar-thumb,
.msd-rooms-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.msd-search-results::-webkit-scrollbar-thumb:hover,
.msd-rooms-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
.flatpickr-day.endRange.startRange,
.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
    background: var(--msd-primary-color);
    border-radius: 10px;
    border: 0;
    box-shadow: none !important;
}

.flatpickr-day.today,
.flatpickr-day.today:hover {
    border: 0;
    background: none;
}

.rangeMode .flatpickr-day:hover {
    border-radius: 10px;
    background: var(--msd-secondary-color);
    color: #ffffff;
}

.flatpickr-day.inRange {
    background: #292929;
    box-shadow: -5px 0 0 #292929, 5px 0 0 #292929;
    color: #ffffff;
    border: 0;
}

.dayContainer {
    justify-content: start;
    gap: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .msd-search-form {
        flex-direction: column;
        padding: 1rem;
    }

    .msd-search-form>div {
        width: 100%;
        border-right: none !important;
        border-bottom: 1px solid var(--msd-border-color);
        padding: 12px 16px;
    }

    .msd-search-btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .msd-search-btn:hover {
        width: 100% !important;
    }

    .msd-where-dropdown {
        min-width: 100% !important;
        top: 60px !important;
    }

    .msd-guests-dropdown {
        width: 100% !important;
        right: 0 !important;
    }

    .msd-hero-container {
        min-height: 500px !important;
        padding: 40px 20px;
    }

    .msd-hero-container h1 {
        font-size: 2.5rem;
    }

    .msd-hero-container p {
        font-size: 1.25rem;
    }

    .msd-hero-container .flex {
        flex-direction: column;
        gap: 1rem;
    }

    .msd-stats-item {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .msd-search-form {
        border: 1px solid #000;
    }
}

.im-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 450px;
}

.im-gallery-main {
    grid-row: span 2;
}

/* Modal overlay & animations */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 64rem;
    /* 4xl */
    max-height: 90vh;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.active .modal-content {
    transform: translateY(0);
}

/* glow highlight card */
.highlight-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    border: 1px solid #fae8ff;
    transition: transform 0.2s;
}

.highlight-card:hover {
    transform: translateY(-4px);
}

.highlight-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(to right, #fbcfe8, #e9d5ff);
    border-radius: 1.1rem;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}

/* facility chips (for popup) */
.facility-chip-popup {
    transition: all 0.15s;
    border: 1px solid #e9d5ff;
}

.facility-chip-popup:hover {
    background: #f5f0ff;
    border-color: #c084fc;
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .im-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 100px;
        height: auto;
    }

    .im-gallery-grid>*:first-child {
        grid-column: span 2;
    }
}

.smart-glow-card {
    background-color: #ffffff;
    /* Keeping your white bg */
    box-shadow:
        0 0 2px rgba(00, 00, 00, 0.3),
        /* Core purple glow */
        0 0 25px rgba(00, 00, 00, 0.15),
        /* Outer purple spread */
        0 10px 30px -5px rgba(95, 95, 95, 0.2);
    /* Warm bottom glow */
    border: 1px solid rgba(00, 00, 00, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover State: Intense Glow + Your specific hover bg */
.smart-glow-card:hover {
    /* Keep your hover bg or set specific one here */
    background-color: #ffffff;
    box-shadow:
        0 0 5px rgba(00, 00, 00, 0.5),
        0 0 40px rgba(00, 00, 00, 0.25),
        0 20px 40px -10px rgba(255, 165, 0, 0.3);
    transform: translateY(-5px);
    border-color: rgba(00, 00, 00, 0.4);
}

.icon-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1.5px solid #f3f4f6;
    background: #fafafa;
    color: #6b7280;
}

.hidden-review {
    display: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.custom-pink {
    color: var(--msd-primary-color);
}

.bg-custom-pink {
    background-color: var(--msd-primary-color);
}

[x-cloak] {
    display: none !important;
}

.rotate-45 {
    transform: rotate(45deg);
}

.custom-radio button {
    background: none !important;
    color: var(--msd-primary-color) !important;
}

.no-hover-bg:hover {
    background: none !important;
    color: var(--msd-primary-color);
}

.hotel-card-image {
    height: 100% !important;
    border-radius: 10px !important;
}

.modal-hidden {
    display: none !important;
}

/* Lazy loading styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #f0f0f0;
}

img.lazy.loaded {
    opacity: 1;
}

img.lazy.error {
    opacity: 0.5;
    background-color: #fee2e2;
}

/* Optional: Add a pulsing animation for loading state */
.hotel-card-image.lazy {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.im-field,
.im-field:focus {
    border: 0 !important;
    outline: 0 !important;
}

#xs-social-login-container {
    margin: 0 !important;
    max-height: inherit !important;
}

.pagination-number:hover,
.pagination-prev:hover,
.pagination-next:hover {
    background: var(--msd-primary-color) !important;
    color: #ffffff !important;
    border-color: var(--msd-primary-color) !important;
}

.room-slider-container button,
.room-detail-slider-container button {
    border-color: var(--msd-text-primary) !important;
}

.room-slider-container button:hover,
.room-detail-slider-container button:hover,
.room-slider-container button:focus,
.room-detail-slider-container button:focus {
    color: var(--msd-primary-color) !important;
    background: #ffffff !important;
    color: var(--msd-primary-color) !important;
}