/**
 * Alojamientos Frontend Styles
 * Airbnb-inspired design with green/coral palette
 */

:root {
    --aloj-primary: #008A87;
    --aloj-primary-dark: #006B68;
    --aloj-primary-light: #E0F5F4;
    --aloj-accent: #007178;
    --aloj-accent-dark: #005a5a;
    --aloj-text: #222222;
    --aloj-text-light: #717171;
    --aloj-border: #DDDDDD;
    --aloj-border-light: #EBEBEB;
    --aloj-bg: #FFFFFF;
    --aloj-bg-secondary: #F7F7F7;
    --aloj-success: #00A699;
    --aloj-error: #C13515;
    --aloj-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --aloj-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --aloj-radius: 12px;
    --aloj-radius-sm: 8px;
    --aloj-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset for plugin scope */
.aloj-search-widget *,
.aloj-listing *,
.aloj-properties-grid *,
.aloj-availability-standalone *,
.aloj-modal *,
.aloj-lightbox * {
    box-sizing: border-box;
    font-family: var(--aloj-font);
}

/* ============================================= */
/* SEARCH WIDGET                                 */
/* ============================================= */

.aloj-search-widget {
    position: relative !important;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    z-index: 100; /* Normal z-index for the widget, children will be moved to body */
}

.aloj-search-form {
    margin: 0;
}

.aloj-search-fields {
    display: flex;
    align-items: stretch;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    background: #FFFFFF;
    width: 100%;
    max-width: 850px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    margin: 0 auto;
    position: relative;
}

.aloj-search-fields:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.aloj-search-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.aloj-search-field:hover {
    background: #f7f7f7;
}

/* Corner radius fixes on hover */
.aloj-search-field:first-child:hover,
.aloj-search-field:first-child.active {
    border-radius: 12px 0 0 12px;
}

.aloj-search-field--guests-action:hover,
.aloj-search-field--guests-action.active {
    background: #f7f7f7;
    border-radius: 0 12px 12px 0;
}

.aloj-search-field--dates {
    display: flex;
    flex-direction: row;
    flex: 2;
    gap: 0;
}

.aloj-search-field--dates .aloj-field-group {
    flex: 1;
    padding: 2px 10px;
}

.aloj-field-separator {
    width: 1px;
    background: #DDDDDD;
    align-self: stretch;
    margin: 14px 0;
}

.aloj-search-field--guests-action {
    flex: 1.5;
    border-left: 1px solid #DDDDDD;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 7px 7px 7px 24px;
    position: relative;
}

.aloj-search-guests-section {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aloj-search-field label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #222222;
    margin-bottom: 2px;
}

.aloj-search-field input[type="text"] {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #484848 !important;
    width: 100% !important;
    padding: 0 !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.aloj-search-field input[type="text"]:focus,
.aloj-search-field input[type="text"]:active,
.aloj-search-field input[type="text"]:focus-visible,
.aloj-search-widget input:focus,
.aloj-search-widget input:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #484848 !important;
    /* Ensure no border is added on focus for search fields only */
}

/* Specific to some mobile browsers and Firefox */
.aloj-search-widget *:focus {
    outline: none !important;
}

.aloj-guests-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #484848;
}

.aloj-guests-trigger span {
    color: #484848;
}

.aloj-guests-summary {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.aloj-main-guests {
    font-size: 14px;
    color: #484848;
}

.aloj-pets-summary {
    font-size: 13px;
    color: #717171;
    margin-top: -2px;
}

.aloj-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #007178;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.aloj-search-btn:hover {
    background: #005a60;
    box-shadow: 0 4px 12px rgba(0, 113, 120, 0.3);
}

.aloj-search-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 3px;
}

/* Guests dropdown */
.aloj-guests-dropdown {
    display: none;
    position: absolute !important;
    width: 320px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    z-index: 2147483647 !important;
    padding: 16px 24px;
    box-sizing: border-box;
    margin: 0;
}

.aloj-guests-dropdown.active {
    display: block;
}

.aloj-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--aloj-border-light);
}

.aloj-guest-row:last-child {
    border-bottom: none;
}

.aloj-guest-info {
    display: flex;
    flex-direction: column;
}

.aloj-guest-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--aloj-text);
}

.aloj-guest-desc {
    font-size: 12px;
    color: var(--aloj-text-light);
}

.aloj-guest-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aloj-counter-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--aloj-border);
    background: var(--aloj-bg);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--aloj-text-light);
    padding: 0;
}

.aloj-counter-btn:hover {
    border-color: var(--aloj-text);
    color: var(--aloj-text);
}

.aloj-counter-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.aloj-counter-value {
    width: 32px;
    text-align: center;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--aloj-text) !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    height: auto !important;
}

.aloj-counter-value::-webkit-inner-spin-button,
.aloj-counter-value::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* ============================================= */
/* CALENDAR POPUP                                */
/* ============================================= */

.aloj-calendar-popup {
    display: none;
    position: absolute !important;
    z-index: 2147483647 !important; /* Above everything */
    padding: 0;
    margin: 0;
}

.aloj-calendar-popup.active {
    display: block;
}

.aloj-calendar-popup-inner {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    padding: 24px;
    width: max-content;
    min-width: 660px;
    max-width: calc(100vw - 40px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    border: 1px solid #DDDDDD;
}

.aloj-calendar-grids {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.aloj-calendar-grids--dual .aloj-calendar-grid {
    flex: 0 0 calc(50% - 16px);
    max-width: 350px;
}

@media (max-width: 768px) {
    .aloj-calendar-grids {
        flex-direction: column;
        gap: 16px;
    }

    .aloj-calendar-grids--dual .aloj-calendar-grid {
        flex: 1;
        max-width: 100%;
    }

    .aloj-calendar-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .aloj-calendar-footer button {
        width: 100%;
        text-align: center;
    }

    .aloj-calendar-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

.aloj-calendar-grid {
    flex: 0 0 300px;
}

.aloj-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.aloj-cal-nav {
    background: none;
    border: 1px solid var(--aloj-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    color: var(--aloj-text-light);
}

.aloj-cal-nav:hover {
    background: #f7f7f7;
    border-color: var(--aloj-text);
    color: var(--aloj-text);
}

.aloj-calendar-months {
    display: flex;
    justify-content: space-around;
    flex: 1;
    margin: 0 40px;
}

.aloj-cal-month-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--aloj-text);
    text-transform: capitalize;
}

/* Second set of rules removed to prevent conflicts */

/* Unified Calendar Grid */
.aloj-calendar-grid .aloj-cal-grid-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    width: 100%;
}

.aloj-cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    color: var(--aloj-text);
    padding: 2px;
    line-height: 1;
}

.aloj-cal-day span {
    pointer-events: none;
}

.aloj-cal-day--header {
    font-size: 11px;
    font-weight: 700;
    color: var(--aloj-text-light);
    text-transform: uppercase;
    cursor: default;
}

.aloj-cal-day--header:hover {
    background: none !important;
}

.aloj-cal-day:hover:not(.aloj-cal-day--disabled):not(.aloj-cal-day--empty) {
    background: var(--aloj-bg-secondary);
}

.aloj-cal-day--today {
    font-weight: 700;
}

.aloj-cal-day--disabled {
    color: #ccc;
    cursor: default;
}

.aloj-cal-day--empty {
    cursor: default;
}

.aloj-cal-day--selected {
    background: var(--aloj-text) !important;
    color: white !important;
}

.aloj-cal-day--in-range {
    background: var(--aloj-bg-secondary);
    border-radius: 0;
}

.aloj-cal-day--range-start {
    border-radius: 20% 0 0 20%;
}

.aloj-cal-day--range-end {
    border-radius: 0 20% 20% 0;
}

/* Availability dots */
.aloj-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 2px;
}

.aloj-dot--available {
    background: var(--aloj-success);
}

.aloj-dot--unavailable {
    background: var(--aloj-error);
}

.aloj-cal-day .aloj-dot {
    position: absolute;
    bottom: 4px;
}

/* Calendar legend */
.aloj-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #f0f0f0;
}

.aloj-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Calendar Footer */
.aloj-calendar-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.aloj-calendar-footer button {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.aloj-calendar-reset-btn {
    transition: all 0.2s ease;
    opacity: 0.8;
}

.aloj-calendar-reset-btn:hover {
    opacity: 1;
    color: var(--aloj-accent) !important;
}

.aloj-calendar-reset-btn:active {
    transform: scale(0.95);
}

.aloj-calendar-close-btn {
    background: #222 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
}

.aloj-calendar-close-btn:hover {
    background: #000 !important;
}

/* ============================================= */
/* LISTING PAGE — HERO GALLERY                   */
/* ============================================= */

.aloj-gallery {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
}

.aloj-gallery-hero {
    display: grid;
    gap: 8px;
    border-radius: 14px !important;
    overflow: hidden !important;
    height: 480px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.aloj-hero-item {
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.aloj-hero-item:hover {
    filter: brightness(0.9);
}

.aloj-hero-item--0 {
    grid-row: 1 / 3;
}

/* Button to open all photos */
.aloj-show-all-photos {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s;
}

.aloj-show-all-photos:active {
    transform: scale(0.96);
}

/* ============================================= */
/* FULLSCREEN GALLERY MODAL                      */
/* ============================================= */

.aloj-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999999;
    flex-direction: column;
}

.aloj-fullscreen-modal.active {
    display: flex;
}

.aloj-fs-header {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

body.aloj-fs-open {
    overflow: hidden !important;
}

.aloj-fs-close {
    background: #fff;
    border: 1px solid #222;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    z-index: 100;
}

.aloj-fs-close:hover {
    background: #f7f7f7;
    transform: translateY(-1px);
}

.aloj-fs-close svg {
    width: 18px;
    height: 18px;
}

.aloj-fs-nav-actions {
    display: flex;
    gap: 8px;
}

.aloj-fs-action-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.aloj-fs-action-btn:hover {
    background: #f7f7f7;
}

.aloj-fs-body {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.aloj-fs-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.aloj-fs-room-section {
    display: none;
    margin-bottom: 48px;
}

.aloj-fs-room-section.active {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
    animation: alojFadeIn 0.3s ease;
}

@media (max-width: 1024px) {
    .aloj-fs-room-section.active {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@keyframes alojFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tour Nav Navigation */
.aloj-tour-nav-container {
    padding: 30px 24px 0;
    max-width: 900px;
    margin: 0 auto;
}

.aloj-tour-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
}

.aloj-tour-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.aloj-tour-nav::-webkit-scrollbar {
    height: 6px;
}

.aloj-tour-nav::-webkit-scrollbar-thumb {
    background-color: var(--aloj-border);
    border-radius: 4px;
}

.aloj-tour-nav-item {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    flex: 0 0 auto;
    width: 140px;
    border-radius: var(--aloj-radius-sm);
    transition: opacity 0.2s;
    opacity: 0.6;
}

.aloj-tour-nav-item:hover {
    opacity: 0.8;
}

.aloj-tour-nav-item.active {
    opacity: 1;
}

.aloj-fs-nav-actions {
    display: flex;
    gap: 8px;
}

.aloj-fs-action-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.aloj-fs-action-btn:hover {
    background: #f7f7f7;
}

.aloj-tour-nav-img {
    width: 100%;
    height: 90px;
    border-radius: var(--aloj-radius-sm);
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.aloj-tour-nav-item.active .aloj-tour-nav-img {
    border-color: var(--aloj-text);
}

.aloj-tour-nav-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--aloj-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aloj-fs-room-info {
    position: sticky;
    top: 20px;
    margin-bottom: 24px;
}

.aloj-fs-room-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
}

.aloj-fs-room-amenities {
    font-size: 14px;
    color: var(--aloj-text-light);
    margin: 0 0 12px;
}

.aloj-fs-room-desc {
    font-size: 16px;
    color: var(--aloj-text);
    line-height: 1.5;
}

.aloj-fs-room-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aloj-fs-img-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    overflow: hidden;
}

/* Body lock when modal open */
body.aloj-fs-open {
    overflow: hidden;
}

/* ============================================= */
/* LISTING BODY                                  */
/* ============================================= */

.aloj-listing {
    width: 100%;
}

.aloj-listing-body {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    max-width: 1120px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.aloj-listing-main {
    flex: 1;
    min-width: 0;
}

.aloj-listing-sidebar {
    width: 372px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.aloj-booking-card {
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.aloj-listing-header {
    margin-bottom: 8px;
}

.aloj-listing-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--aloj-text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.aloj-listing-meta {
    display: flex;
    gap: 16px;
}

.aloj-meta-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--aloj-text-light);
}

.aloj-listing-divider {
    height: 1px;
    background: var(--aloj-border-light);
    margin: 28px 0;
}

/* Quick info */
.aloj-listing-quickinfo {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.aloj-quickinfo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--aloj-text);
}

/* Sections */
.aloj-listing-section {
    margin-bottom: 8px;
}

.aloj-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--aloj-text);
    margin: 0 0 20px;
}

.aloj-section--highlighted {
    background: #FFF3CD;
    border-radius: var(--aloj-radius);
    padding: 24px;
    margin: -12px;
}

.aloj-unavailable-msg {
    color: var(--aloj-text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Description */
.aloj-description {
    position: relative;
}

.aloj-description-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--aloj-text);
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s;
}

.aloj-description.expanded .aloj-description-text {
    max-height: 2000px;
}

.aloj-description.expanded .aloj-read-more {
    display: none;
}

.aloj-read-more {
    display: inline-block;
    background: none;
    border: none;
    color: var(--aloj-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    text-decoration: underline;
}

/* Amenities */
.aloj-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.aloj-amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--aloj-text);
}

.aloj-amenity-item .aloj-amenity-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #484848;
}

.aloj-amenity-item .aloj-amenity-icon svg {
    width: 100%;
    height: 100%;
}

/* House rules */
.aloj-house-rules {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================= */
/* ROOMS CAROUSEL                                */
/* ============================================= */

.aloj-rooms-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.aloj-rooms-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 12px;
    flex: 1;
    min-width: 0;
}

.aloj-rooms-grid::-webkit-scrollbar {
    display: none;
}

.aloj-room-card {
    flex: 0 0 220px;
    min-width: 180px;
    border: 1px solid var(--aloj-border-light);
    border-radius: var(--aloj-radius);
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.aloj-room-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.aloj-room-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.aloj-room-photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.aloj-room-info {
    padding: 12px;
}

.aloj-room-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--aloj-text);
}

.aloj-carousel-nav {
    background: #fff;
    border: 1px solid var(--aloj-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.aloj-carousel-nav:hover {
    background: #f7f7f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.aloj-carousel-nav:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
}

.aloj-carousel-prev {
    margin-right: 8px;
}

.aloj-carousel-next {
    margin-left: 8px;
}

.aloj-rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--aloj-text);
}

/* Map */
.aloj-location-text {
    font-size: 14px;
    color: var(--aloj-text-light);
    margin-bottom: 12px;
}

.aloj-map {
    border-radius: 12px !important;
    overflow: hidden !important;
    height: 400px;
    z-index: 1;
}

.aloj-map-marker {
    background: transparent;
    border: none;
}

/* ============================================= */
/* HORIZONTAL BOOKING WIDGET                     */
/* ============================================= */

/* ============================================= */
/* LISTING BOOKING WIDGET (SIDEBAR)              */
/* ============================================= */

.aloj-listing-sidebar {
    z-index: 2001;
}

.aloj-booking-card {
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    position: relative;
    max-width: 372px;
}

.aloj-booking-price-header {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.aloj-booking-price {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
}

.aloj-booking-price-label {
    font-size: 16px;
    color: #222222;
}

.aloj-booking-fields-container {
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #FFF;
}

.aloj-booking-dates-box {
    display: flex;
    border-bottom: 1px solid #DDDDDD;
}

.aloj-booking-field {
    flex: 1;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.aloj-booking-field:hover {
    background: #f7f7f7;
}

.aloj-booking-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 2px;
}

.aloj-booking-field input {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #222222 !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.aloj-booking-field--checkin {
    border-right: 1px solid #DDDDDD;
}

.aloj-booking-guests-box {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.aloj-booking-guests-box:hover {
    background: #f7f7f7;
}

.aloj-booking-guests-box label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 2px;
}

.aloj-booking-guests-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aloj-booking-guests-summary {
    font-size: 14px;
    color: #222222;
}

.aloj-arrow-down {
    border: solid #222222;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.aloj-booking-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin-top: 16px;
}

.aloj-rules-btn-container {
    margin-bottom: 16px;
    text-align: center;
}

.aloj-rules-btn {
    display: inline-block;
    background: transparent !important;
    color: #484848 !important;
    border: 1px solid #DDDDDD !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    text-transform: none !important;
}

.aloj-rules-btn:hover {
    background: #f7f7f7 !important;
    border-color: #222 !important;
}


.aloj-book-btn {
    background: #007178 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s !important;
}

.aloj-book-btn:hover {
    background: #007178 !important;
}

.aloj-booking-footer-actions {
    width: 100%;
    margin-top: 16px;
}

.aloj-booking-footer-actions .aloj-book-btn {
    box-shadow: 0 4px 12px rgba(0, 113, 120, 0.2);
}

.aloj-booking-footer-actions .aloj-book-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 113, 120, 0.35);
}

.aloj-no-charge-msg {
    font-size: 14px;
    color: #717171;
    margin: 8px 0 0;
}

/* Sidebar Calendar Popup positioning */
.aloj-booking-card .aloj-calendar-popup {
    top: 0;
    right: calc(100% + 20px);
    width: 660px;
    position: absolute;
    left: auto;
}

@media (max-width: 1200px) {
    .aloj-booking-card .aloj-calendar-popup {
        right: 0;
        top: 100%;
    }
}

.aloj-booking-card .aloj-calendar-popup-inner {
    left: 0;
    transform: none;
    position: relative;
}

.aloj-booking-guests-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 320px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.aloj-booking-control-group {
    position: relative;
    margin-bottom: 16px;
}

.aloj-booking-fields-container {
    border: 1px solid #B0B0B0;
    border-radius: 8px;
    background: #FFF;
    overflow: hidden;
    /* Restored: clipping only affecting fields, not the dropdown because it's now a sibling */
}

/* Price Breakdown table styles */
.aloj-price-breakdown table td {
    vertical-align: middle;
}

.aloj-booking-guests-dropdown.active {
    display: block;
}

.aloj-booking-guests-box {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.aloj-booking-guests-box .aloj-calendar-footer button {
    width: 100%;
    text-align: center;
}

/* Availability Dots */
.aloj-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 4px auto 0;
    background: #e0e0e0; /* Default neutral */
}

.aloj-dot--available {
    background: #00A699 !important; /* Airbnb Green - Vibrante */
    box-shadow: 0 0 2px rgba(0, 166, 153, 0.4);
}

.aloj-dot--unavailable {
    background: #E41D07 !important; /* Red - Más intenso */
    box-shadow: 0 0 2px rgba(228, 29, 7, 0.4);
}

.aloj-cal-day--disabled .aloj-dot {
    opacity: 0.6;
    background: #FF5A5F !important;
}

/* ============================================= */
/* GALLERY GRID                                  */
/* ============================================= */

.aloj-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.aloj-modal.active {
    display: flex;
}

.aloj-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.aloj-modal-content {
    position: relative;
    background: var(--aloj-bg);
    border-radius: 12px;
    padding: 0;
    max-width: 520px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: alojSlideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

#aloj-booking-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    margin: 0;
}

.aloj-modal-header {
    padding: 12px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    background: #fff;
    z-index: 10;
}

.aloj-mob-reserve-btn {
    padding: 12px 24px;
    background: #007178 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    flex: 1;
    text-align: center !important;
    -webkit-tap-highlight-color: transparent;
}

.aloj-mob-reserve-btn:hover {
    background: #005a60 !important;
}

.aloj-modal-header h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #222 !important;
    line-height: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.aloj-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #717171;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    padding: 0;
    margin-right: -8px;
    flex-shrink: 0;
}

.aloj-modal-close:hover {
    color: #000;
    background: #f7f7f7;
    border-radius: 50% !important;
}

.aloj-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

.aloj-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    gap: 12px;
    z-index: 10;
}

/* Secondary Button Style */
.aloj-modal-close-btn {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #222 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.aloj-modal-close-btn:hover {
    background: #f7f7f7 !important;
}

.aloj-submit-booking {
    background: #007178 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.2s !important;
    text-transform: none !important;
}

@keyframes alojSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.aloj-form-group {
    margin-bottom: 16px;
}

.aloj-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--aloj-text);
    margin-bottom: 6px;
}

.aloj-form-group input,
.aloj-form-group textarea,
.aloj-form-group select {
    width: 100%;
    border: 1px solid var(--aloj-border);
    border-radius: var(--aloj-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--aloj-font);
    transition: border-color 0.15s;
}

.aloj-form-group input:focus,
.aloj-form-group textarea:focus {
    outline: none !important;
    border: 1px solid #222222 !important;
    box-shadow: none !important;
}

.aloj-acceptance-group {
    margin: 20px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.aloj-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.4;
}

.aloj-checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

.aloj-booking-summary {
    background: var(--aloj-bg-secondary);
    border-radius: var(--aloj-radius-sm);
    padding: 16px;
    margin-bottom: 0;
}

.aloj-submit-booking {
    background: #007178;
    color: white;
    border: none;
    border-radius: var(--aloj-radius-sm);
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.aloj-submit-booking:hover {
    background: #005a60;
    box-shadow: 0 4px 16px rgba(0, 113, 120, 0.35);
}

.aloj-submit-booking:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success state */
.aloj-booking-success {
    text-align: center;
    padding: 40px 20px;
}

.aloj-success-icon {
    width: 64px;
    height: 64px;
    background: var(--aloj-success);
    color: white;
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.aloj-booking-success h3 {
    font-size: 24px;
    margin: 0 0 8px;
}

.aloj-booking-success p {
    color: var(--aloj-text-light);
}

/* ============================================= */
/* LIGHTBOX                                      */
/* ============================================= */

.aloj-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.aloj-lightbox.active {
    display: flex;
}

.aloj-lightbox-overlay {
    position: absolute;
    inset: 0;
}

.aloj-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.aloj-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

.aloj-lightbox-prev,
.aloj-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s;
}

.aloj-lightbox-prev {
    left: -60px;
}

.aloj-lightbox-next {
    right: -60px;
}

.aloj-lightbox-prev:hover,
.aloj-lightbox-next:hover {
    background: white;
}

.aloj-lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

#aloj-lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--aloj-radius-sm);
}

.aloj-lightbox-counter {
    text-align: center;
    color: white;
    font-size: 14px;
    margin-top: 12px;
}

/* ============================================= */
/* AVAILABILITY CALENDAR                         */
/* ============================================= */

.aloj-availability-calendar {
    background: var(--aloj-bg);
}

.aloj-avail-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.aloj-avail-cal-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.aloj-avail-cal-nav {
    background: none;
    border: 1px solid var(--aloj-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aloj-avail-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.aloj-avail-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 50%;
    font-size: 14px;
    aspect-ratio: 1;
    transition: background 0.15s;
}

.aloj-avail-day--available {
    background: rgba(0, 166, 153, 0.08);
    color: var(--aloj-text);
}

.aloj-avail-day--unavailable {
    background: rgba(193, 53, 21, 0.06);
    color: #ccc;
}

.aloj-avail-day--header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--aloj-text-light);
}

/* ============================================= */
/* PROPERTIES GRID                               */
/* ============================================= */

.aloj-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.aloj-property-card {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--aloj-bg);
    box-shadow: var(--aloj-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.aloj-property-card:hover {
    box-shadow: var(--aloj-shadow);
    transform: translateY(-2px);
}

.aloj-property-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.aloj-property-card-body {
    padding: 16px;
}

.aloj-property-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--aloj-text);
    margin: 0 0 4px;
}

.aloj-property-card-location {
    color: var(--aloj-text-light);
    font-size: 13px;
    margin: 0 0 6px;
}

.aloj-property-card-details {
    font-size: 13px;
    color: var(--aloj-text-light);
    margin: 0 0 10px;
}

.aloj-property-card-price {
    font-size: 15px;
    margin: 0;
}

.aloj-property-card-price strong {
    color: var(--aloj-text);
}

/* Error */
.aloj-error {
    text-align: center;
    color: var(--aloj-error);
    font-size: 16px;
    padding: 40px;
}

.aloj-empty {
    text-align: center;
    color: var(--aloj-text-light);
    padding: 40px;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */

@media (max-width: 1024px) {
    .aloj-listing-body {
        flex-direction: column;
        gap: 40px;
        margin-top: 24px;
    }

    .aloj-listing-sidebar {
        width: 100%;
        position: static;
    }

    .aloj-booking-card {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .aloj-search-fields {
        flex-direction: column;
        border-radius: var(--aloj-radius);
    }

    .aloj-search-field--dates {
        border-bottom: 1px solid var(--aloj-border);
    }

     .aloj-search-field--guests-action {
        border-left: none;
        border-bottom: 1px solid var(--aloj-border);
        flex-direction: column;
        align-items: stretch;
        padding: 15px 20px;
    }

    .aloj-search-guests-section {
        margin-bottom: 15px;
    }

    .aloj-search-btn {
        border-radius: var(--aloj-radius-sm);
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .aloj-calendar-popup-inner {
        min-width: unset;
    }

    .aloj-calendar-grids {
        flex-direction: column;
    }

    .aloj-calendar-months {
        gap: 20px;
    }

    .aloj-gallery-grid {
        max-height: 300px;
    }

    .aloj-gallery-grid--3 .aloj-gallery-item--0,
    .aloj-gallery-grid--4 .aloj-gallery-item--0,
    .aloj-gallery-grid--5 .aloj-gallery-item--0 {
        grid-row: auto;
    }

    .aloj-gallery-grid--3,
    .aloj-gallery-grid--4,
    .aloj-gallery-grid--5 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .aloj-amenities-grid {
        grid-template-columns: 1fr;
    }

    .aloj-listing-quickinfo {
        flex-direction: column;
        gap: 10px;
    }

    .aloj-lightbox-prev {
        left: 10px;
    }

    .aloj-lightbox-next {
        right: 10px;
    }
}

/* ==========================================================================
   ROOMS / SPACES TOUR
   ========================================================================== */
.aloj-rooms-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.aloj-rooms-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.aloj-rooms-carousel-wrapper {
    position: relative;
    margin: 0 -10px;
    padding: 0 10px;
}

.aloj-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    color: #222;
}

.aloj-carousel-nav:hover {
    background: #f7f7f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.aloj-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.aloj-carousel-nav.disabled {
    opacity: 0;
    pointer-events: none;
}

.aloj-carousel-prev {
    left: -20px;
}

.aloj-carousel-next {
    right: -20px;
}

.aloj-room-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: default;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--aloj-border-light);
}

@media (max-width: 1024px) {
    .aloj-room-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .aloj-room-card {
        flex: 0 0 85%;
    }

    .aloj-carousel-nav {
        display: none;
    }

    .aloj-rooms-carousel-wrapper {
        margin: 0;
        padding: 0;
    }

    .aloj-rooms-grid {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

.aloj-room-card.aloj-gallery-more {
    cursor: pointer;
}

.aloj-room-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aloj-shadow);
}

.aloj-room-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.aloj-room-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.aloj-room-info {
    padding: 15px;
}

.aloj-room-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--aloj-text);
}



.aloj-modal-content--xlarge {
    max-width: 1000px !important;
    width: 90% !important;
}

#aloj-rules-modal .aloj-modal-content {
    max-width: 1000px !important;
    width: 90% !important;
}

/* Tablet refinement for rules modal */
@media (max-width: 991px) {
    #aloj-rules-modal .aloj-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
    }
}

@media (min-width: 992px) {
    #aloj-rules-modal .aloj-modal-content {
        min-width: 900px !important;
    }
}

.aloj-modal-content--large {
    max-width: 900px !important;
    /* Force override of base 520px */
}

.aloj-modal-group-title {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #1a1a1a;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.aloj-rules-modal-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--aloj-text);
}

.aloj-rule-item span.dashicons {
    color: var(--aloj-accent);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.aloj-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.aloj-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.aloj-accordion-item:last-child {
    border-bottom: none;
}

.aloj-accordion-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    transition: background 0.2s;
    user-select: none;
    background: #fff;
}

.aloj-accordion-header:hover {
    background: #f8fafc;
}

.aloj-accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
}

.aloj-accordion-item.active {
    background: #fdfdfd;
}

.aloj-accordion-item.active .aloj-accordion-icon {
    transform: rotate(45deg);
    color: var(--aloj-accent);
}

.aloj-accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.aloj-accordion-item.active .aloj-accordion-content {
    padding: 0 20px 20px;
    max-height: 2000px;
    opacity: 1;
}

/* ==========================================================================
   AVAILABILITY CALENDAR INLINE SECTION
   ========================================================================== */

#aloj-availability-title {
    text-align: center !important;
    margin-bottom: 24px !important;
}

.aloj-unavailable-msg {
    text-align: center !important;
    margin-bottom: 20px !important;
    color: var(--aloj-error) !important;
}

.aloj-calendar-scroll-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    margin: 16px auto 0;
}

.aloj-calendar-scroll-btn:hover {
    background: #000;
}

/* Standalone availability calendar */
.aloj-availability-standalone {
    max-width: 420px;
    margin: 40px auto;
}

/* ==========================================================================
   ROOM TOUR FULLSCREEN NAV ARROWS
   ========================================================================== */

.aloj-tour-nav-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start; /* Aling to top to center arrows relative to images */
    padding: 0 54px;
}

.aloj-tour-nav-btn {
    position: absolute;
    top: 45px; /* Half of the 90px image height */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    color: #222;
}

.aloj-tour-nav-btn:hover {
    background: #f7f7f7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.05);
}

.aloj-tour-nav-btn.disabled {
    opacity: 0;
    pointer-events: none;
}

.aloj-tour-nav-prev {
    left: 0;
}

.aloj-tour-nav-next {
    right: 0;
}

/* ==========================================================================
   STICKY MOBILE BOOKING BAR
   ========================================================================== */

.aloj-mobile-booking-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 12px 20px;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.aloj-mob-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.aloj-mob-price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--aloj-text);
}

.aloj-mob-price-label {
    font-size: 13px;
    color: var(--aloj-text-light);
}

.aloj-mob-date-summary {
    font-size: 12px;
    color: var(--aloj-text);
    font-weight: 500;
}

.aloj-mob-reserve-btn {
    background: var(--aloj-accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.aloj-mob-reserve-btn:hover {
    background: var(--aloj-accent-dark);
}

/* ==========================================================================
   TABLET + MOBILE  (≤ 1024px)
   Sidebar moves below the main content
   ========================================================================== */

@media (max-width: 1024px) {

    /* Core layout */
    .aloj-listing-body {
        flex-direction: column !important;
        gap: 32px !important;
        padding: 16px 24px 90px !important;
        margin-top: 20px !important;
    }

    .aloj-listing-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }

    .aloj-booking-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Sticky bar visible */
    .aloj-mobile-booking-bar {
        display: flex;
    }

    /* Gallery */
    .aloj-gallery-hero {
        height: 380px !important;
    }

    /* Dual calendar: stack months vertically */
    .aloj-calendar-grids--dual {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .aloj-calendar-grids--dual .aloj-calendar-grid {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .aloj-calendar-months {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    /* Calendar popup from booking card — keep contained */
    .aloj-booking-card .aloj-calendar-popup {
        position: static !important;
        width: 100% !important;
    }

    .aloj-booking-card .aloj-calendar-popup-inner {
        position: static !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fullscreen room tour: stack image + info */
    .aloj-fs-room-section.active {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Room cards: 2 visible at a time on tablet */
    .aloj-room-card {
        flex: 0 0 200px !important;
    }
}

/* ==========================================================================
   TABLET ONLY (768px – 1024px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .aloj-listing-body {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .aloj-gallery-hero {
        height: 400px !important;
    }

    .aloj-tour-nav-wrapper {
        padding: 0 44px;
    }

    .aloj-booking-card {
        max-width: 520px !important;
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   MOBILE  (≤ 767px)
   ========================================================================== */

@media (max-width: 767px) {

    /* -- Listing container -- */
    .aloj-listing {
        width: 100%;
        overflow-x: hidden;
    }

    .aloj-listing-body {
        padding: 12px 16px 90px !important;
        gap: 24px !important;
        margin-top: 12px !important;
    }

    /* -- Gallery: single image -- */
    .aloj-gallery-hero {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
        height: 260px !important;
    }

    .aloj-hero-item:not(.aloj-hero-item--0) {
        display: none !important;
    }

    .aloj-hero-item--0 {
        grid-row: 1 / 2 !important;
        border-radius: var(--aloj-radius) !important;
    }

    .aloj-show-all-photos {
        bottom: 10px !important;
        right: 10px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }

    /* -- Typography -- */
    .aloj-listing-title {
        font-size: 20px !important;
    }

    .aloj-section-title {
        font-size: 17px !important;
    }

    /* -- Quick info -- */
    .aloj-listing-quickinfo {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .aloj-quickinfo-item {
        font-size: 13px;
    }

    /* -- Amenities: 1 column -- */
    .aloj-amenities-grid {
        grid-template-columns: 1fr;
    }

    /* -- Map -- */
    .aloj-map {
        height: 240px;
    }

    /* -- Search widget (if on page) -- */
    .aloj-search-fields {
        flex-direction: column;
    }

    .aloj-search-field--dates {
        border-bottom: 1px solid var(--aloj-border);
    }

    .aloj-search-field--guests-action {
        border-left: none;
    }

    /* -- Calendar popup (from search widget / booking card) -- */
    .aloj-calendar-popup {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 99999 !important;
        background: rgba(0, 0, 0, 0.4) !important;
        display: none;
        align-items: flex-end;
        justify-content: center;
    }

    .aloj-calendar-popup.active {
        display: flex !important;
    }

    .aloj-calendar-popup-inner {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        border-radius: 16px 16px 0 0 !important;
        box-sizing: border-box !important;
        padding: 20px 16px 80px 16px !important; /* Extra bottom padding for sticky footer */
        max-height: 90vh;
        overflow-y: auto;
    }

    .aloj-calendar-footer {
        position: sticky;
        bottom: -20px; /* Offset the inner padding */
        left: 0;
        right: 0;
        background: white;
        padding: 15px 0;
        border-top: 1px solid var(--aloj-border-light);
        z-index: 10;
        display: flex;
        flex-direction: row !important; /* Keep buttons side by side if possible or stack better */
        flex-wrap: wrap;
        gap: 10px;
    }

    .aloj-calendar-footer button {
        flex: 1;
        min-width: 120px;
    }

    /* -- Inline availability calendar -- */
    .aloj-availability-calendar .aloj-calendar-wrapper {
        width: 100%;
    }

    .aloj-calendar-grids {
        flex-direction: column;
        gap: 16px;
    }

    .aloj-calendar-grids--dual .aloj-calendar-grid {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .aloj-cal-day {
        font-size: 12px;
    }

    .aloj-cal-day--header {
        font-size: 9px;
    }

    .aloj-calendar-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .aloj-calendar-footer button {
        width: 100%;
        text-align: center;
    }

    .aloj-calendar-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
    }

    /* -- Availability calendar grid (inline) -- */
    .aloj-avail-day {
        font-size: 12px;
    }

    .aloj-avail-day--header {
        font-size: 10px;
    }

    /* -- Room carousel -- */
    .aloj-rooms-carousel-wrapper {
        overflow: hidden;
    }

    .aloj-rooms-grid {
        /* Remove negative margins on mobile to prevent overflow */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 16px !important;
    }

    .aloj-room-card {
        flex: 0 0 80% !important;
        min-width: 160px !important;
    }

    .aloj-carousel-nav {
        display: none !important;
    }

    /* -- Fullscreen tour nav -- */
    .aloj-tour-nav-wrapper {
        padding: 0;
    }

    .aloj-tour-nav-btn {
        display: none !important;
    }

    /* -- Booking card -- */
    .aloj-booking-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* -- Lightbox -- */
    .aloj-lightbox-prev {
        left: 10px;
    }

    .aloj-lightbox-next {
        right: 10px;
    }
}

/* ==========================================================================
   EXTRA SMALL  (≤ 400px)
   ========================================================================== */

@media (max-width: 400px) {

    .aloj-listing-body {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .aloj-gallery-hero {
        height: 220px !important;
    }

    .aloj-listing-title {
        font-size: 18px !important;
    }

    .aloj-mobile-booking-bar {
        padding: 10px 12px;
    }

    .aloj-mob-price-amount {
        font-size: 15px;
    }

    .aloj-mob-reserve-btn {
        padding: 9px 12px;
        font-size: 13px;
    }
}

/* Modal footer – Cerrar button pinned to the right, black */
.aloj-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 30px 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.aloj-modal-close-btn {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.aloj-modal-close-btn:hover {
    background: #374151;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */

/* Sticky bottom bar – hidden on desktop, shown via media queries */
.aloj-mob-sticky-bar {
    display: none;
}

/* ==========================================================================
   MOBILE FULLSCREEN BOOKING PANEL
   ========================================================================== */
.aloj-mob-panel {
    display: none;
    /* shown via JS on mobile */
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: #fff;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.aloj-mob-panel.active {
    transform: translateY(0);
}

.aloj-mob-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    flex-shrink: 0;
}

.aloj-mob-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.aloj-mob-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: #222;
}

.aloj-mob-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.aloj-mob-panel-dates {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.aloj-mob-panel-date-field {
    flex: 1;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.15s;
}

.aloj-mob-panel-date-field:hover {
    background: #f7f7f7;
}

.aloj-mob-panel-date-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #717171;
}

.aloj-mob-panel-date-val {
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

.aloj-mob-panel-date-sep {
    width: 1px;
    background: #ddd;
    align-self: stretch;
    margin: 12px 0;
}

.aloj-mob-panel-calendar-wrap {
    margin-bottom: 20px;
    overflow: visible;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure the calendar inside the mobile panel flows correctly */
/* TARGETING BOTH THE WRAPPER AND THE POPUP CLASS FOR AGGRESSIVE OVERRIDES */
#aloj-mob-panel-calendar.aloj-calendar-popup,
.aloj-mob-panel-calendar.aloj-calendar-popup {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
}

#aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-header,
.aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-header {
    padding: 0 16px !important;
    margin-bottom: 20px !important;
}

#aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-popup-inner,
.aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-popup-inner {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    padding: 20px 0 !important;
    display: block !important;
    visibility: visible !important;
    background: #fff !important;
}

#aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-wrapper,
.aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-wrapper {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    overflow: visible !important;
}

#aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-grids,
.aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-grids {
    gap: 16px !important;
    flex-direction: column !important;
    display: flex !important;
    width: 100% !important;
}

#aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-grid,
.aloj-mob-panel-calendar.aloj-calendar-popup .aloj-calendar-grid {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.aloj-mob-panel-guests-wrap {
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 20px;
}

.aloj-mob-panel-guests-dropdown {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    padding: 16px 20px 40px !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15) !important;
    z-index: 10002 !important;
    border: none !important;
    display: none;
}

.aloj-mob-guests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aloj-mob-guests-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.aloj-mob-guests-close {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    background: #f1f5f9;
    border: none;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0 !important;
    margin: 0 !important;
}

.aloj-mob-guests-close:active {
    background: #e2e8f0;
}

.aloj-mob-panel-guests-dropdown .aloj-guest-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.aloj-mob-panel-guests-dropdown .aloj-guest-row:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.aloj-mob-panel-divider {
    height: 1px;
    background: #ebebeb;
    margin: 20px 0;
}

.aloj-mob-panel-price-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aloj-mob-panel-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #222;
}

.aloj-mob-panel-price-row--total {
    font-weight: 700;
    font-size: 16px;
    padding-top: 12px;
    border-top: 1px solid #ebebeb;
    margin-top: 4px;
}

.aloj-mob-panel-platforms-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 12px 0;
}

.aloj-mob-panel-plat-row {
    margin-bottom: 10px;
}

.aloj-mob-panel-plat-btn {
    transition: all 0.2s;
}

.aloj-mob-panel-plat-btn:active {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: scale(0.98);
}

.aloj-mob-panel-returning {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    padding: 12px 0;
    border-top: 1px dashed #cbd5e1;
    margin-top: 8px;
}

.aloj-mob-panel-disclaimer {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    margin: 8px 0 0 0;
}

.aloj-mob-panel-rules-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    color: #222;
    transition: background 0.15s;
}

.aloj-mob-panel-rules-btn:hover {
    background: #f7f7f7;
}

.aloj-mob-panel-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #ebebeb;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    flex-shrink: 0;
}

.aloj-mob-panel-action-btn {
    width: 100%;
    background: var(--aloj-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.aloj-mob-panel-action-btn:hover {
    background: var(--aloj-accent-dark);
}

.aloj-mob-panel-action-btn--check {
    background: #111827;
}

.aloj-mob-panel-action-btn--check:hover {
    background: #374151;
}


/* ==========================================================================
   TABLET  (max-width: 1024px): hide sidebar, show sticky bar
   ========================================================================== */
@media (max-width: 1024px) {

    /* Hide desktop sidebar */
    .aloj-listing-sidebar {
        display: none !important;
    }

    /* Full-width main content block */
    .aloj-listing-body {
        display: block !important;
    }

    /* Bottom padding so content doesn't hide behind the sticky bar */
    .aloj-listing {
        padding-bottom: 90px !important;
    }

    /* Show sticky bar */
    .aloj-mob-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9990;
        background: #fff;
        border-top: 1px solid #dddddd;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
        gap: 12px;
    }

    .aloj-mob-sticky-price {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .aloj-mob-sticky-amount {
        font-size: 18px;
        color: #222;
        line-height: 1.2;
    }

    .aloj-mob-sticky-amount strong {
        font-weight: 700;
    }

    .aloj-mob-sticky-detail {
        font-size: 12px;
        color: #717171;
    }

    .aloj-mob-sticky-actions {
        flex-shrink: 0;
    }

    .aloj-mob-reserve-btn {
        background: var(--aloj-accent);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 12px 22px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        letter-spacing: 0.02em;
        transition: background 0.2s;
        white-space: nowrap;
        text-transform: uppercase;
    }

    .aloj-mob-reserve-btn:hover {
        background: var(--aloj-accent-dark);
    }

    .aloj-mob-reserve-btn--check {
        background: #222;
        font-size: 12px;
        padding: 12px 16px;
        letter-spacing: 0;
        text-transform: none;
    }

    .aloj-mob-reserve-btn--check:hover {
        background: #444;
    }

    /* Guest dropdown: bottom-sheet panel */
    .aloj-booking-guests-dropdown {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18) !important;
        padding: 24px 20px 32px !important;
        max-height: 78dvh;
        overflow-y: auto;
        z-index: 10000 !important;
    }

    /* Modals: slide up from bottom as sheet */
    .aloj-modal {
        align-items: flex-end !important;
    }

    .aloj-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 98dvh;
        margin: 0 !important;
        overflow-y: auto;
    }

    #aloj-rules-modal .aloj-modal-inner,
    .aloj-rules-modal-inner {
        border-radius: 20px 20px 0 0 !important;
        max-height: 98dvh;
        overflow-y: auto;
    }

    .aloj-modal-header {
        padding: 18px 20px 14px !important;
    }

    .aloj-accordion-header {
        padding: 14px 18px;
        font-size: 15px;
    }

    .aloj-accordion-content {
        padding: 0 20px;
    }

    .aloj-accordion-item.active .aloj-accordion-content {
        padding: 0 18px 20px;
    }

    .aloj-modal-footer {
        padding: 14px 20px 20px;
    }

    .aloj-rules-modal-section {
        padding: 0 20px !important;
    }
}

/* ==========================================================================
   MOBILE (max-width: 640px): additional layout tweaks
   ========================================================================== */
@media (max-width: 640px) {

    .aloj-mob-sticky-bar {
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    }

    .aloj-listing {
        padding-bottom: 100px !important;
    }

    .aloj-mob-sticky-amount {
        font-size: 16px;
    }

    .aloj-mob-reserve-btn {
        padding: 11px 18px;
        font-size: 13px;
    }

    .aloj-gallery-hero {
        height: 260px !important;
    }

    .aloj-listing-quickinfo {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .aloj-listing-main {
        padding: 0 16px !important;
    }

    .aloj-modal-body {
        padding: 16px !important;
    }

    .aloj-accordion-header {
        padding: 12px 16px;
        font-size: 14px;
    }

    .aloj-accordion-item.active .aloj-accordion-content {
        padding: 0 16px 16px;
    }

    .aloj-modal-footer {
        padding: 12px 16px 16px;
    }

    .aloj-rules-modal-section {
        padding: 0 16px !important;
    }

    .aloj-platform-comparison {
        border-radius: 10px !important;
    }

    .aloj-booking-guests-dropdown {
        padding: 20px 16px 28px !important;
    }
}

.aloj-platform-unified-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}