.airbnb-properties-grid {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.airbnb-properties-grid.columns-1 {
    grid-template-columns: 1fr;
}

.airbnb-properties-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.airbnb-properties-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.airbnb-properties-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .airbnb-properties-grid.columns-3,
    .airbnb-properties-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .airbnb-properties-grid {
        grid-template-columns: 1fr;
    }
    
    /* Make slider more swipe-friendly on mobile */
    .property-image-wrapper {
        cursor: grab;
    }
    
    .property-image-wrapper:active {
        cursor: grabbing;
    }
    
    /* Keep nav arrows visible on mobile but less prominent */
    .property-image-slider .slider-nav {
        opacity: 0.7;
    }
    
    .property-image-slider:hover .slider-nav,
    .property-image-slider .slider-nav {
        opacity: 0.7;
        display: none !important;
    }
}

.property-image-slider:hover .slider-nav,
.property-image-slider .slider-nav {
    display: block !important;
}

.property-card-wrapper {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.property-card-wrapper * {
    text-decoration: none !important;
}

.property-card {
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card-wrapper:hover .property-card {
    transform: translateY(-4px);
}

.property-image-slider {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 16px;
}

.property-image-slider:hover .slider-nav {
    opacity: 1;
}

.property-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling but enable horizontal swipe detection */
}

.property-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.property-image-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.property-image-slide a {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.property-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    width: 32px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
    color: white;
}

.slider-nav svg {
    width: 32px;
    height: 42px;
    display: block;
}

.slider-nav svg:hover,
.slider-prev,
.slider-next {
    background: transparent !important;
}

.slider-prev {
    left: -14px;
}

.slider-next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: #fff;
    width: 8px;
    height: 8px;
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-content {
    padding: 16px 0;
    text-decoration: none !important;
    font-family: 'Montserrat';
}

.property-content * {
    text-decoration: none !important;
    font-family: 'Montserrat';
}

.property-price {
    font-size: 14px;
    color: #222;
    font-weight: 400;
    margin-bottom: 8px;
    font-family: 'Montserrat';
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-decoration: none !important;
    font-family: 'Montserrat';
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #717171;
    font-size: 14px;
    margin-bottom: 16px;
    text-decoration: none !important;
    font-family: 'Montserrat';
}

.property-location span {
    text-decoration: none !important;
}

.property-location svg {
    flex-shrink: 0;
    color: #005A70;
}

.property-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
}

.property-features .feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #005A70;
    font-size: 14px;
}

.property-features .feature svg {
    flex-shrink: 0;
    color: #005A70;
}

.booking-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.booking-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 48px;
    height: 480px;
}

.gallery-main {
    position: relative;
    overflow: hidden;
}

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

.gallery-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

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

.gallery-item-overlay {
    position: relative;
}

.show-all-photos-btn {
    position: absolute;
    bottom: 116px;
    right: 16px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    color: black;
}

.gallery-prev svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: middle;
  }
  
  .gallery-next svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: middle;
  }

.show-all-photos-btn:hover {
    background: #f7f7f7;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(11 10 10 / 79%);
    z-index: 10000;
    overflow: auto;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 60px 20px 20px;
}

.gallery-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.gallery-modal-images {
    position: relative;
    width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image {
    display: none;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-modal-image.active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    color: white;
}

.gallery-nav svg {
    width: 32px;
    height: 42px;
    display: block;
    margin-left: -10px;
}



.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin-top: 20px;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 100px;
    align-items: start;
}

@media (max-width: 1024px) {
    .booking-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .gallery-main {
        height: 400px;
    }
    
    .gallery-grid {
        display: none;
    }
    
    .booking-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

    .gallery-nav:hover {
        background: transparent;
    }

    .gallery-prev:hover {
        background: transparent;
    }

@media screen and (max-width: 768px) {
    .gallery-main {
        height: auto !important;
    }
    .gallery-grid {
        display: flex !important;
    }
    .show-all-photos-btn {
        position: relative;
        margin-top: -80px;
        bottom: 0px;
        margin-left: 25px;
    }

    .gallery-nav:hover {
        background: transparent;
    }

    .gallery-prev:hover {
        background: transparent;
    }
    
    .booking-sidebar {
        position: relative !important;
        top: 0 !important;
    }
    
    .booking-card {
        overflow: visible !important;
        position: relative !important;
    }
    
    .booking-form {
        overflow: visible !important;
    }
    
    .form-dates-wrapper {
        overflow: visible !important;
        position: static !important;
    }
    
    .calendar-container {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 32px) !important;
        max-width: 400px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        padding: 24px 20px 20px !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
        animation: slideUp 0.3s ease-out !important;
    }
    
    @keyframes slideUp {
        from {
            transform: translate(-50%, -40%);
            opacity: 0;
        }
        to {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
    }
    
    .calendar-header {
        margin-bottom: 20px !important;
    }
    
    .calendar-footer {
        margin-top: 20px !important;
        padding-top: 16px !important;
    }
    
    .calendar-close-btn {
        width: 100% !important;
        padding: 16px 24px !important;
    }

    .booking-details .property-title {
        font-size: 25px;
        font-family: 'Montserrat';
    }

    .property-price-large {
        font-size: 19px;
        font-family: 'Montserrat';
    }
}

.booking-details {
    flex: 1;
}

.booking-details .property-title {
    font-size: 32px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
    font-family: 'Montserrat';
}

.property-price-large {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 24px 0;
    font-family: 'Montserrat';
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    margin: 32px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat';
}

.spec-item svg {
    color: #005A70;
    flex-shrink: 0;
}

.spec-label {
    font-size: 12px;
    color: #717171;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

.property-description-section,
.property-features-section {
    margin: 40px 0;
}

.property-description-section h2,
.property-features-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
    font-family: 'Montserrat';
}

.property-description-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #484848;
    margin: 0;
    font-family: 'Montserrat';
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-family: 'Montserrat';
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #484848;
}

.features-list li svg {
    color: #0066cc;
    flex-shrink: 0;
}

.booking-sidebar {
    position: sticky;
    top: 40px;
}

.booking-card {
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.booking-card-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ebebeb;
}

.price-old {
    display: block;
    font-size: 16px;
    color: #717171;
    text-decoration: line-through;
    margin-bottom: 8px;
    display: none;
}

.price-current {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #222;
    font-family: 'Montserrat';
}

.price-label {
    display: block;
    font-size: 14px;
    color: #717171;
    margin-top: 4px;
    font-family: 'Montserrat';
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-dates-wrapper {
    position: relative;
}

.form-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #b0b0b0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-dates:hover {
    border-color: #222;
}

.form-group-checkin {
    border-right: 1px solid #b0b0b0;
}

.form-group {
    position: relative;
}

.form-dates .form-group {
    margin-bottom: 0;
    font-family: 'Montserrat';
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
    margin-bottom: 4px;
    padding: 12px 16px 0;
}

.form-dates label {
    padding: 12px 12px 0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0 16px 12px;
    border: none;
    font-size: 14px;
    color: #222;
    background: transparent;
    outline: none;
    font-family: inherit;
}

.form-dates input {
    padding: 0 12px 12px;
    cursor: pointer;
    user-select: none;
}

.form-dates input::placeholder {
    color: #717171;
}

.form-group-guests {
    border: 1px solid #b0b0b0;
    border-radius: 12px;
    transition: border-color 0.2s;
    font-family: 'Montserrat';
}

.form-group-guests:hover {
    border-color: #222;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.calendar-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 32px 24px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.calendar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    transition: opacity 0.2s ease;
}

.calendar-backdrop.active {
    display: block;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .calendar-backdrop.active {
        display: block;
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.calendar-month-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #222;
    flex: 1;
}

.calendar-nav-btn {
    background: none;
    border: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #f7f7f7;
    border-color: #222;
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ddd;
}

.calendar-single-month {
    width: 100%;
}

.calendar-month {
    min-width: 300px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 40px;
    font-weight: 400;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: #f7f7f7;
    border: 2px solid #222;
}

.calendar-day.other-month {
    color: #d3d3d3;
    cursor: default;
    text-decoration: line-through;
}

.calendar-day.disabled {
    color: #d3d3d3;
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-day.booked {
    color: #d3d3d3;
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #222;
    color: #fff;
    font-weight: 700;
}

.calendar-day.in-range {
    background: #f7f7f7;
    border-radius: 0;
}

.calendar-day.range-start {
    border-radius: 50% 0 0 50%;
}

.calendar-day.range-end {
    border-radius: 0 50% 50% 0;
}

.calendar-day.today {
    font-weight: 700;
}

.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #ebebeb;
}

.calendar-clear-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    color: #222;
}

.calendar-clear-btn:hover {
    color: #000;
}

.calendar-close-btn {
    background: #005A70;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-close-btn:hover {
    background: #000;
}

.availability-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.availability-message.error {
    background: #fff5f5;
    color: #c41c1c;
    border: 1px solid #ffc4c4;
    display: block;
}

.availability-message.success {
    background: #f0f9ff;
    color: #0066cc;
    border: 1px solid #b3d9ff;
    display: block;
}

.reserve-button {
    width: 100%;
    padding: 16px;
    background: #005A70;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Montserrat';
}

.reserve-button:hover {
    background: #005A70;
}

.reserve-button:disabled {
    background: #dddddd;
    color: #717171;
    cursor: not-allowed;
}
