


/* ========================================================
   FAVORITE BUTTON
   ======================================================== */
.ail-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.ail-fav-btn:active { transform: scale(0.85); }
.ail-fav-btn.active {
    background: rgba(239,68,68,0.1);
}


/* ========================================================
   SINGLE LISTING PROFILE
   ======================================================== */
.ail-single-hero {
    width: 100%;
    height: 420px;
    max-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (max-width: 1024px) {
    .ail-single-hero {
        height: 360px;
        max-height: 360px;
    }
}

@media (max-width: 640px) {
    .ail-single-hero {
        height: 280px;
        max-height: 280px;
    }
}

.ail-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary, #0f172a);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ail-single-content {
    background: var(--card-bg, #ffffff);
    border-radius: 24px 24px 0 0;
    margin-top: -30px;
    position: relative;
    padding: 24px 20px 20px;
    min-height: auto;
}

.ail-single-header-info {
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.ail-listing-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.ail-listing-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

.ail-meta-rating {
    color: var(--success-color, #10b981);
}

.ail-listing-contact-strip {
    margin-top: 15px;
}

.ail-quick-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--border-color, #f1f5f9);
    color: var(--text-primary, #0f172a);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.ail-section-subtitle {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
}

.ail-description-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
}

.ail-booking-injection-area {
    margin-top: 30px;
}

/* Sticky Bottom Bar */
.ail-single-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg, #ffffff);
    padding: 15px 20px 25px 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 100;
    
    /* Inherit max-width limit on desktop */
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================================
   PHOTO GALLERY
   ======================================================== */
.ail-gallery-section {
    margin-bottom: 25px;
}

.ail-gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.ail-gallery-scroll::-webkit-scrollbar { display: none; }

.ail-gallery-item {
    flex: 0 0 260px;
    height: 180px;
    border-radius: var(--card-radius, 16px);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0,0,0,0.06));
}

.ail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================================
   REVIEWS
   ======================================================== */
.ail-reviews-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.ail-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ail-reviews-header .ail-section-subtitle {
    margin-bottom: 0;
}

.ail-write-review-btn {
    padding: 8px 16px;
    background: var(--border-color, #f1f5f9);
    border: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    cursor: pointer;
    text-decoration: none;
}

.ail-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ail-review-card {
    background: var(--card-bg, #ffffff);
    border-radius: var(--card-radius, 16px);
    padding: 15px;
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0,0,0,0.06));
}

.ail-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ail-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ail-review-author-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ail-review-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.ail-review-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
}

.ail-review-stars {
    font-size: 12px;
    flex-shrink: 0;
}

.ail-review-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
}

/* Star Selector */
.ail-star-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ail-star-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ail-star-btn.active {
    opacity: 1;
}

.ail-star-btn:hover {
    transform: scale(1.2);
}


/* ========================================================
   MULTI-STEP FORM (Add Listing)
   ======================================================== */
.ail-step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
    padding: 0 10px;
}

.ail-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary, #cbd5e1);
    transition: color 0.3s ease;
}

.ail-step.active {
    color: var(--text-primary, #0f172a);
}

.ail-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary, #94a3b8);
    transition: all 0.3s ease;
}

.ail-step.active span {
    background: #0f172a;
    color: #fff;
}

.ail-step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color, #e2e8f0);
    margin: 0 8px;
    max-width: 40px;
}

.ail-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ail-form-step.active {
    display: block;
}

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

/* Image Upload */
.ail-upload-placeholder {
    width: 100%;
    height: 200px;
    background: var(--border-color, #f1f5f9);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.ail-upload-placeholder:hover {
    border-color: var(--text-secondary, #94a3b8);
}

/* Select Dropdown */
select.ail-field-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
}


/* ========================================================
   FAVORITE / HEART BUTTON
   ======================================================== */
.ail-card-wrap {
    position: relative;
    flex: 0 0 240px;
    overflow: hidden;
    border-radius: var(--card-radius, 16px);
}

.ail-card-wrap-row {
    flex: unset;
    width: 100%;
    position: relative;
}

.ail-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 5;
    transition: transform 0.2s ease;
}

.ail-fav-btn:active { transform: scale(0.85); }

.ail-fav-btn.active {
    animation: heartBounce 0.4s ease;
}

.ail-fav-row {
    top: 50%;
    transform: translateY(-50%);
}
.ail-fav-row:active {
    transform: translateY(-50%) scale(0.85);
}

.ail-hero-fav {
    top: 20px;
    right: 70px;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}


/* =========================================================================
   PLUGIN BOOKING MODULE - DARK MODE OVERRIDES & POLISH
   ========================================================================= */
body.dark-mode #lpcf-booking-widget {
    background: var(--card-bg, #1e1e1e);
    border-color: var(--border-color, rgba(255,255,255,0.06));
}
body.dark-mode #lpcf-booking-widget h3 {
    color: var(--text-primary, #ffffff) !important;
}
body.dark-mode #lpcf-booking-widget p {
    background: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: var(--text-secondary, #a3a3a3) !important;
}
body.dark-mode .lpcf-bk-modal-inner {
    background: var(--bg-color, #121212);
}
body.dark-mode .lpcf-modal-hdr {
    background: var(--bg-color, #121212);
    border-bottom-color: rgba(255,255,255,0.06);
}
body.dark-mode .lpcf-modal-hdr h3,
body.dark-mode .lpcf-step-title {
    color: var(--text-primary, #ffffff) !important;
}
body.dark-mode .lpcf-close-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary, #a3a3a3);
}
body.dark-mode .lpcf-close-btn:hover {
    background: rgba(255,255,255,0.1);
}
body.dark-mode .lpcf-prof-card {
    background: var(--card-bg, #1e1e1e);
    border-color: rgba(255,255,255,0.06);
}
body.dark-mode .lpcf-prof-card.selected,
body.dark-mode .lpcf-prof-card:hover {
    border-color: var(--primary-color, var(--primary-color));
    background: rgba(99,102,241,0.05);
}
body.dark-mode .lpcf-prof-name {
    color: var(--text-primary, #ffffff);
}
body.dark-mode .lpcf-field label {
    color: var(--text-secondary, #a3a3a3);
}
body.dark-mode .lpcf-field input,
body.dark-mode .lpcf-field textarea,
body.dark-mode .lpcf-t-input {
    background: var(--card-bg, #1e1e1e);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-primary, #ffffff);
}
body.dark-mode .lpcf-field input:focus,
body.dark-mode .lpcf-field textarea:focus,
body.dark-mode .lpcf-t-input:focus {
    border-color: var(--primary-color, var(--primary-color));
}

body.dark-mode .lpcf-slot-bk {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
    color: var(--text-secondary, #555555);
}
body.dark-mode .lpcf-slot-loading,
body.dark-mode .lpcf-slot-msg,
body.dark-mode .lpcf-t-label {
    color: var(--text-secondary, #a3a3a3);
}
body.dark-mode .lpcf-btn-sec {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary, #ffffff);
}

/* Vendor Dashboard Bookings Styling */
body.dark-mode .lpcf-bk-tabs {
    background: var(--card-bg, #1e1e1e) !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body.dark-mode .lpcf-tab-btn {
    color: var(--text-secondary, #a3a3a3) !important;
}
body.dark-mode .lpcf-tab-btn.active {
    background: var(--bg-color, #121212) !important;
    color: var(--text-primary, #ffffff) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
body.dark-mode .lpcf-day-row {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
body.dark-mode .lpcf-day-label {
    color: var(--text-primary, #ffffff) !important;
}
body.dark-mode #lpcf-step-4 p,
body.dark-mode #lpcf-step-4 div {
    color: var(--text-secondary, #a3a3a3) !important;
}
body.dark-mode #lpcf-step-4 h3 {
    color: var(--text-primary, #ffffff) !important;
}
body.dark-mode #lpcf-bk-id {
    color: var(--text-primary, #ffffff) !important;
}

/* ========================================================
   RATING BREAKDOWN (Shared with Single Listing Reviews)
   Originally in analytics.css — needed on listing pages too.
   ======================================================== */
.ail-rating-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 16px);
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0,0,0,0.06));
}
.ail-rating-overall {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color, #f1f5f9);
    padding-right: 20px;
}
.ail-rating-big {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.ail-rating-stars {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.ail-rating-total {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}
.ail-rating-bars {
    flex: 2;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.ail-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ail-rating-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 24px;
}
.ail-rating-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--border-color, #f1f5f9);
    border-radius: 3px;
    overflow: hidden;
}
.ail-rating-bar-fill {
    height: 100%;
    background: var(--rating-color, #fbbf24);
    border-radius: 3px;
    transition: width 0.8s ease-out;
}
.ail-rating-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 32px;
    text-align: right;
}

/* Badge integration styles are in core.css (Global Card System) */

/* ========================================================
   AVAILABLE OFFERS SECTION
   ======================================================== */
.ail-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

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

.lpcf-coupon-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .lpcf-coupon-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }
}

.lpcf-coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 10px;
}

.lpcf-coupon-info {
    flex: 1;
}

.lpcf-coupon-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    display: block;
    margin-bottom: 4px;
}

.lpcf-coupon-desc {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    margin: 0;
    line-height: 1.4;
}

.lpcf-coupon-code-badge {
    background: var(--border-color, #f1f5f9);
    color: var(--primary-color, #3b82f6);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.lpcf-coupon-claim-btn {
    background: var(--primary-color, #3b82f6);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
    text-decoration: none;
    display: block;
}

.lpcf-coupon-claim-btn:hover {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
}

/* ========================================================
   RELATED LISTINGS SECTION
   ======================================================== */
.ail-related-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    height: auto;
}

@media (hover: hover) and (pointer: fine) {
    .ail-related-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }
}

.ail-related-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.ail-related-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ail-related-info h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.ail-related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

.ail-related-rating {
    color: var(--success-color, #10b981);
}

.ail-related-cat {
    background: var(--border-color, #f1f5f9);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary, #475569);
}

/* Fallback for uninitialized Swiper (prevents massive single images) */
.ail-related-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ail-related-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 320px;
    width: 320px;
    max-width: 100%;
}

#ail-related-swiper .swiper-slide {
    height: auto;
}
