/**
 * Booking Enhancements - Steps 5, 6, 7
 * Version: 3.7.92
 * React-like booking experience
 */

/* ==================================================================
   STEP 5: Sticky Booking Widget (Desktop) - JS Controlled
   ================================================================== */

@media (min-width: 992px) {
    /* Overflow visible for sticky to work */
    .wrapper {
        overflow: visible !important;
    }
    
    .property-detail,
    .property-detail .container,
    .single-property .col-md-8,
    .single-property .col-md-4 {
        overflow: visible !important;
    }
    
    /* Hero sections */
    .property-hero,
    .property-hero-media {
        overflow: visible !important;
        min-height: 500px !important;
    }
    
    .property-hero-slider {
        overflow: hidden !important;
        min-height: 520px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Bootstrap flex fix */
    .single-property .row,
    .property-detail .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .single-property .row:before,
    .single-property .row:after,
    .property-detail .row:before,
    .property-detail .row:after {
        display: none !important;
        content: none !important;
    }
    
    /* v3.7.92: Sidebar - JS handles positioning */
    .property-sidebar {
        z-index: 98;
    }
    
    /* Parent column */
    .single-property .col-md-4,
    .property-detail .col-md-4 {
        position: relative;
        overflow: visible !important;
    }
    
    /* Section nav sticky */
    .property-section-nav {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 99 !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
}
.booking-modal-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.booking-modal-summary,
.booking-modal-form {
    flex: 1 1 320px;
    min-width: 280px;
}

@media (max-width: 767px) {
    .booking-modal-columns {
        flex-direction: column;
    }
}
@media (min-width: 992px) {
    .booking-modal-columns {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: flex-start;
    }
    .booking-modal-summary,
    .booking-modal-form {
        min-width: 0;
    }
}




/* ==================================================================
   STEP 6: Mobile Floating Booking Widget
   v3.7.23: Updated to clean white design
   ================================================================== */

.mobile-booking-float {
    display: none;
    position: fixed;
/* Booking modal fixes moved to bottom of file to avoid breaking .mobile-booking-float block */

    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-booking-float:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .mobile-booking-float {
        display: block !important;
    }
    
    .property-sidebar {
        display: none !important;
    }
}

.mobile-float-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
}

.mobile-float-price {
    display: none;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    line-height: 1.3;
}

.mobile-float-price .price-label {
    font-size: 0.8em;
    color: #666;
}

.mobile-float-price .price-amount {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--primary-color, #c8a35f);
}

.mobile-float-price .price-period {
    font-size: 0.75em;
    color: #666;
}

.mobile-float-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color, #c8a35f);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-float-btn:hover {
    background: var(--secondary-color, #2c3e50);
}

.mobile-float-btn i {
    font-size: 1em;
}

/* When dates are selected - show price */
.mobile-booking-float.has-dates .mobile-float-price {
    display: flex;
}

.mobile-float-icon {
    display: none;
}

/* Mobile Booking Modal */
.mobile-booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.mobile-booking-modal.active {
    display: block;
}

.mobile-booking-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mobile-booking-modal .modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideInUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-booking-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.mobile-booking-modal .modal-header h4 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
}

.mobile-booking-modal .modal-close {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-booking-modal .modal-close:hover {
    background: #e0e0e0;

/* v3.9.140: Booking consent - STRONG CONTRAST for hover/checked states */
.booking-consent .amenity-checkbox,
.booking-consent label.amenity-checkbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    margin-bottom: 0 !important;
}

/* STRONG HOVER */
.booking-consent .amenity-checkbox:hover,
.booking-consent label.amenity-checkbox:hover {
    border-color: #c8a35f !important;
    background: #f5e6c8 !important;
    box-shadow: 0 4px 12px rgba(200, 163, 95, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* STRONG CHECKED */
.booking-consent .amenity-checkbox:has(input:checked),
.booking-consent label.amenity-checkbox:has(input:checked) {
    border-color: #b8933f !important;
    background: #f0d890 !important;
    box-shadow: 0 4px 16px rgba(184, 147, 63, 0.4) !important;
}

.booking-consent .amenity-checkbox:has(input:checked)::after,
.booking-consent label.amenity-checkbox:has(input:checked)::after {
    content: '✓' !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #7a6025 !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}

/* Hide actual input */
.booking-consent .amenity-checkbox input[type="checkbox"],
.booking-consent .amenity-checkbox input[type="radio"],
.booking-consent label.amenity-checkbox input[type="checkbox"],
.booking-consent label.amenity-checkbox input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
}

/* Custom visual indicator */
.booking-consent .amenity-checkbox::before,
.booking-consent label.amenity-checkbox::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid #aaa !important;
    border-radius: 4px !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.booking-consent .amenity-checkbox:has(input[type="radio"])::before,
.booking-consent label.amenity-checkbox:has(input[type="radio"])::before {
    border-radius: 50% !important;
}

.booking-consent .amenity-checkbox:has(input:checked)::before,
.booking-consent label.amenity-checkbox:has(input:checked)::before {
    background: #b8933f !important;
    border-color: #8a6d2f !important;
}

.booking-consent .amenity-checkbox span,
.booking-consent label.amenity-checkbox span {
    flex: 1 !important;
    font-size: 1em !important;
    line-height: 1.3 !important;
    color: #333 !important;
    padding-right: 28px !important;
}

.booking-consent .amenity-checkbox span a,
.booking-consent label.amenity-checkbox span a {
    color: var(--primary-color, #c8a35f) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/* Pets dropdown styling */
.booking-consent select#booking-pets-choice {
    border: 2px solid #d0d0d0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.95em !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.booking-consent select#booking-pets-choice:hover,
.booking-consent select#booking-pets-choice:focus {
    border-color: #c8a35f !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(200, 163, 95, 0.25) !important;
}

/* v3.9.139: Modal two-column layout fix - simplified (use base .booking-modal-columns grid) */
/* Removed duplicate #booking-modal overrides to avoid conflicts. */

/* Booking widget: reduce total price font by 30% */
#booking-total-price-display #price-total-amount {
    font-size: 1.4em !important;
}

/* Fix for modal Bootstrap grid layout */
#booking-modal .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
}

#booking-modal .col-md-5,
#booking-modal .col-md-7 {
    padding: 0 15px !important;
}

@media (min-width: 768px) {
    #booking-modal .col-md-5 {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
    }
    
    #booking-modal .col-md-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
    }
}

    transform: rotate(90deg);
}

.mobile-booking-modal .modal-body {
    padding: 24px;
}

.mobile-booking-modal .form-group {
    margin-bottom: 20px;
}

.mobile-booking-modal .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95em;
}

.mobile-booking-modal .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.2s ease;
}

.mobile-booking-modal .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mobile-booking-modal textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.mobile-booking-modal .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: 600;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.mobile-booking-modal .btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.mobile-booking-modal .btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mobile-price-display {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #b3d9ff;
}

.mobile-price-display .price-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-price-display .nights-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

.mobile-price-display .total-price {
    font-size: 2em;
    font-weight: 800;
    color: #667eea;
}

/* ==================================================================
   STEP 7: Three-Month Calendar Layout
   ================================================================== */

.calendar-three-months {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.calendar-month {
    flex: 1;
    min-width: 300px;  /* v3.2.4: Increased for better date visibility */
    max-width: 350px;  /* v3.2.4: Increased for better date visibility */
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.calendar-month:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.calendar-month-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.calendar-month-header h4 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

.calendar-month-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.95em;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.calendar-weekday {
    text-align: center;
    font-weight: 700;
    color: #666;
    font-size: 0.85em;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;          /* v3.2.4: Reduced gap for better fit */
    padding: 12px;     /* v3.2.4: Reduced padding */
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1em;  /* veći osnovni tekst da datum bude čitljiv */
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    min-height: 36px;
    padding: 2px;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.past {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day-number {
    position: absolute;
    top: 3px;
    left: 3px;
    font-size: 0.6em;
    z-index: 2;
}

.calendar-day-price {
    position: absolute;
    top: 1px;
    right: 3px;
    font-size: 0.45em;
    font-weight: 600;
    color: #28a745;
    z-index: 2;
}

.calendar-day-minstay {
    position: absolute;
    bottom: 1px;
    left: 3px;
    font-size: 0.42em;
    font-weight: 600;
    color: #ff9800;
    z-index: 2;
}

/* Removed conflicting checkin/checkout styles - using the ones defined later */

/* Calendar day states */
.calendar-day.available {
    background: #d4edda;
    color: #155724;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day.available:hover {
    background: #b3e0bb;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.calendar-day.occupied {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.7;
}

/* CHECK-IN day (start of period) - RED bottom-left → GREEN top-right */
.calendar-day.checkin-day,
.calendar-day.available.checkin-day,
div.calendar-day.checkin-day {
    background: linear-gradient(225deg, #f8d7da 0%, #f8d7da 50%, #d4edda 50%, #d4edda 100%) !important;
    background-color: transparent !important;
    color: #155724 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    position: relative !important;
}

.calendar-day.checkin-day:hover {
    background: linear-gradient(225deg, #f5c2c7 0%, #f5c2c7 50%, #b3e0bb 50%, #b3e0bb 100%) !important;
    background-color: transparent !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* v3.6.35: FIX 4 - CHECKOUT day (end of period) - CORRECTED diagonal: RED bottom-left → GREEN top-right */
.calendar-day.checkout-day,
.calendar-day.available.checkout-day,
div.calendar-day.checkout-day {
    background: linear-gradient(45deg, #f8d7da 0%, #f8d7da 50%, #d4edda 50%, #d4edda 100%) !important;
    background-color: transparent !important;
    color: #155724 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    position: relative !important;
}

.calendar-day.checkout-day:hover {
    background: linear-gradient(45deg, #f5c2c7 0%, #f5c2c7 50%, #b3e0bb 50%, #b3e0bb 100%) !important;
    background-color: transparent !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Add a small indicator for checkout days */
.calendar-day.checkout-day::after {
    content: '✓' !important;
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    font-size: 10px !important;
    color: #28a745 !important;
    font-weight: bold !important;
    display: block !important;
}

/* Check-in / Check-out dijagonalni presjek (zelena + crveni trokut) */
.calendar-day.checkin,
.calendar-day.checkout {
    position: relative;
}

/* Check-in: crveni trokut odozgo-lijevo (dolazak) */
.calendar-day.checkin::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220,53,69,0.95) 0 50%, transparent 50% 100%);
    z-index: 1;
}

/* Check-out: crveni trokut odozdo-desno (odlazak) */
.calendar-day.checkout::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(315deg, rgba(220,53,69,0.95) 0 50%, transparent 50% 100%);
    z-index: 1;
}

/* Tekst (datum/cijena/min stay) iznad trokuta */
.calendar-day.checkin .calendar-day-number,
.calendar-day.checkin .calendar-day-price,
.calendar-day.checkin .calendar-day-minstay,
.calendar-day.checkout .calendar-day-number,
.calendar-day.checkout .calendar-day-price,
.calendar-day.checkout .calendar-day-minstay {
    position: relative;
    z-index: 2;
}

.calendar-day.in-range {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-weight: 700;
}

.calendar-day.today {
    box-shadow: 0 0 0 2px #ffc107 inset;
}

.calendar-day.selected {
    box-shadow: 0 0 0 3px #667eea;
}

/* Navigation */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.calendar-nav-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1199px) {
    .calendar-three-months {
        gap: 15px;
    }
    
    .calendar-month {
        min-width: 260px;
        max-width: 300px;
    }
}

@media (max-width: 991px) {
    .calendar-three-months {
        flex-direction: column;
        align-items: center;
    }
    
    .calendar-month {
        width: 100%;
        max-width: 400px;
    }
}

/* ==================================================================
   Animations
   ================================================================== */

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ==================================================================
   FIX 1: Hide Apply/Cancel buttons on daterangepicker
   ================================================================== */

.daterangepicker .drp-buttons {
    display: none !important;
}

.daterangepicker.show-calendar .drp-buttons {
    display: none !important;
}

/* Focus styles for accessibility */
.mobile-booking-modal .form-control:focus,
.calendar-day:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* ==================================================================
   FIX 2: Enhanced Property Card Booking Button
   ================================================================== */

.myrent-book-button.btn-primary-gradient {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 10px 24px !important; /* v3.4.1: Reduced from 14px 28px */
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95em !important; /* v3.4.1: Reduced from 1.05em */
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    border: none !important;
    text-transform: none !important;
}

.myrent-book-button.btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6) !important;
    color: white !important;
}

.myrent-book-button.btn-primary-gradient i {
    font-size: 1.1em;
}

/* Property card image hover - dim to highlight button */
.myrent-property-card:hover .myrent-property-image {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.myrent-property-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.myrent-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* FIX 2: Image overlay CTA for search results */
.property-image-wrapper {
    position: relative;
    overflow: hidden;
}

.property-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* FIX 2: Always slightly visible */
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9; /* FIX 2: Always visible, not 0 */
    transition: all 0.3s ease;
}

.myrent-property-card:hover .property-image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7); /* Darker on hover */
}

.overlay-cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.overlay-cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.8);
    color: white !important;
}

.overlay-cta-button i {
    font-size: 1.2em;
}

/* Disable pointer events on title when has search params */
.myrent-property-title.no-link {
    cursor: default;
    pointer-events: none;
}

/* FIX 2: Make entire card non-clickable when has search params, except buttons */
.myrent-property-card.has-search-params * {
    pointer-events: none;
    cursor: default;
}

.myrent-property-card.has-search-params .overlay-cta-button,
.myrent-property-card.has-search-params .myrent-book-button {
    pointer-events: auto;
    cursor: pointer;
}

.myrent-property-card.has-search-params .property-image-wrapper {
    cursor: default;
}

/* Secondary button style */
.myrent-book-button.btn-secondary {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important; /* v3.4.2: Reduced from 3px */
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding: 4px 10px !important; /* v3.4.2: Much smaller padding */
    border-radius: 50px !important;
    position: relative;
}

.myrent-book-button.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(200, 163, 95, 0.1) 0%, rgba(184, 146, 79, 0.1) 100%) !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Pulse animation for booking button */
@keyframes pulseButton {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pulse-animation {
    animation: pulseButton 1s ease-out 2;
}


/* ==================================================================
   Daterangepicker z-index fix for mobile modal (v3.9.288)
   ================================================================== */
.daterangepicker {
    z-index: 99999 !important;
}

/* Ensure daterangepicker shows above mobile modal */
.mobile-booking-modal .daterangepicker,
body > .daterangepicker {
    z-index: 100000 !important;
}

