/* ***************************
 GLOBAL
*****************************/
.guesty-search-banner {
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    direction: rtl;
    font-family: 'Heebo', sans-serif;
}

.guesty-search-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/****************************
 FIELD BOX
*****************************/
.guesty-form-field {
    flex: 1;
    min-width: 200px;
    background: #fafafa;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #e4e4e4 !important;
    transition: 0.25s;
    position: relative;
    cursor: pointer;
}

#date-range-display,
#guests-display {
    pointer-events: none;
}

.guesty-form-field:hover {
    border-color: #8B0000 !important;
    background: #fff;
}

.guesty-form-label {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.guesty-form-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 17px;
    font-weight: 700;
    padding: 6px 0;
    color: #222;
}

/* .guesty-form-input:focus {
    outline: none;
} */

/****************************
 DATE RANGE LOOK
*****************************/
.guesty-form-field.date-field {
    border: 2px solid transparent;
    transition: 0.25s;
}

.guesty-form-field.date-field.active {
    border-color: #8B0000;
    background: #fff5f7;
}

/****************************
 GUESTS FIELD WITH + / -
*****************************/
.guesty-form-field.guests-field {
    display: flex;
    flex-direction: column;
}

.guesty-guests-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guesty-guests-controls {
    display: flex;
    gap: 10px;
}

.guesty-guest-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.guesty-guest-btn:hover {
    background: #f3f3f3;
}

#guesty-guests-value {
    font-size: 18px;
    font-weight: 700;
    padding: 0 10px;
}

/****************************
 ADD ROOM BUTTON
*****************************/
.add-room-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #8B0000;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

/****************************
 SEARCH BUTTON
*****************************/
.guesty-search-btn {
    background: #8B0000;
    color: #fff;
    padding: 20px 34px !important;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s;
    white-space: nowrap;
}

.guesty-search-btn:hover {
    background: #5d0017;
}

/****************************
 RTL FIXES
*****************************/
[dir="rtl"] .guesty-form-field {
    text-align: right;
}



.guesty-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.guesty-popup-inner {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 330px;
    direction: rtl;
}

.counter-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.counter {
    display: flex;
    gap: 10px;
}

.counter button {
    width: 30px;
    height: 30px;
}




/* תוצאות חיפוש */
.guesty-results-header {
    background: rgb(226, 226, 226);
    padding: 10px 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-right: 4px solid brown;
}

.guesty-results-title {
    margin: 0;
    color: black !important;
    font-size: 18px !important;
    font-weight: 700;
}

.guesty-results-subtitle {
    margin: 8px 0 0 0;
    color: black !important;
    font-size: 14px !important;
}


/* גריד */
.guesty-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* מובייל — עד 480px */
@media (max-width: 480px) {
    .guesty-properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        justify-content: center;
    }
}

/* כרטיס נכס */
.guesty-property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
    cursor: pointer;
}

.guesty-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}


/* תמונה */
.guesty-property-image-wrapper {
    position: relative;
    overflow: hidden;
}

.guesty-property-image {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.guesty-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 80px;
    color: #bbb;
}


/* אוברליי */
.guesty-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

/* תגית דירוג */
.guesty-overlay-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* כותרת על התמונה */
.guesty-overlay-title {

    color: black !important;
    font-size: 16px !important;
    font-weight: 600;
    margin: 0;
}


/* פוטר של התמונה */
.guesty-overlay-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}


/* מחיר */
.guesty-overlay-price {
    color: black;
    flex: 1;
}

.guesty-overlay-price-label {
    font-size: 14px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    display: block;
}

.guesty-overlay-price-main {
    font-size: 38px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    display: block;
    line-height: 1.2;
}


/* כפתור */
.guesty-book-btn {
    background: #4E0C18 !important;
    color: white !important;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin-left: 0;
    margin-right: auto;
    margin-top: 10px;


    white-space: nowrap;
}

.guesty-book-btn:hover {
    background: #5d0022;
    transform: translateY(-2px);
}


/* תוכן תחתון של הכרטיס */
.guesty-property-content {
    padding: 12px;
    background: white;
}

.guesty-property-location {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.guesty-property-features {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    /* scrollbar-width: none; */
}

/* .guesty-property-features::-webkit-scrollbar {
    display: none;
} */

/* ✔️ כל צ'יפ מקבל רוחב קבוע */
.guesty-feature {
    min-width: 90px;
    /* אפשר 100–120 אם תרצה יותר גדול */
    padding: 10px 12px;
    /* background: #f7f7f7; */
    border-radius: 14px;
    text-align: center;
    flex-shrink: 0;
    /* ❗ אל תתכווץ */
    font-size: 14px;
    color: #7a0d0d;
}

/* Spinner Wrapper */
.guesty-loading {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.guesty-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e5e5;
    border-top-color: #8B0000;
    /* אדום כהה שמותאם לאתר */
    border-radius: 50%;
    animation: guesty-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes guesty-spin {
    to {
        transform: rotate(360deg);
    }
}

.guesty-loading-text {
    color: #444;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}


.loader-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.loader-dots span {
    animation: blink 1.4s infinite both;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    /* ודא שזה צבע שרואים על הכפתור */
    display: inline-block;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}





/* כרטיס הצעת מחיר */
.quote-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    max-width: 650px;
    margin: 40px auto;
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); */
    direction: rtl;
    font-family: inherit;
}

.quote-title {
    text-align: center;
    color: #8b0000;
    margin-bottom: 25px;
    font-size: 28px;
}

.quote-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.quote-subtitle {
    margin-top: 0;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
}

.quote-subtitle-mini {
    font-size: 14px;
    margin: 10px 0 5px;
    font-weight: 500;
}

.quote-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #eaeaea;
}

.quote-row:last-child {
    border-bottom: none;
}

.quote-row.small {
    font-size: 14px;
}

.total {
    background: #fff7f7;
    border: 1px solid #ffd4d4;
}

.total-row {
    font-size: 18px;
    font-weight: 600;
    color: #8b0000;
}

.total-price {
    font-size: 18px;
}

.quote-actions {
    text-align: center;
    margin-top: 25px;
}

.quote-btn {
    background: #8b0000 !important;
    color: #fff !important;
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.quote-btn:hover {
    background: #a30000;
}




/* כרטיס כללי */
.guest-form-card {
    background: #fff;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 40px auto;
    direction: rtl;
}

/* כותרת */
.guest-form-title {
    text-align: center;
    color: #8b0000;
    font-size: 28px;
    margin-bottom: 25px;
}

/* אזורים */
.guest-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.guest-section-title {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 16px;
}

/* גריד של 2 טורים */
.guest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* שדות */
.guest-field label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    font-weight: 600;
}

.guest-field input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 16px;
    background: #fff;
    transition: 0.2s;
}

.guest-field input:focus {
    border-color: #8b0000;
    outline: none;
}

/* stripe */
.stripe-card {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.stripe-errors {
    color: #e63946;
    margin-top: 10px;
}

/* כפתור */
.guest-submit-wrap {
    text-align: center;
    margin-top: 25px;
}

.guest-submit-btn {
    width: 100% !important;
    padding: 16px 40px;
    background: #8b0000 !important;
    border: none;
    color: #fff !important;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.guest-submit-btn:hover {
    background: #a30000;
}

/* מובייל */
@media(max-width: 600px) {
    .guest-grid {
        grid-template-columns: 1fr;
    }
}


.guest-summary-box {
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
}

.guest-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #444;
}

.guest-summary-row strong {
    font-weight: 700;
}


/* listing-card */
.quote-listing-card {
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 25px;
    direction: rtl;
}

.quote-carousel {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 4px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

/* מסתיר scrollbar במובייל */
.quote-carousel::-webkit-scrollbar {
    height: 10px;
}
.quote-carousel::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: gainsboro;
    height: 8px;
}

/* כל תמונה */
.quote-carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 16px !important;

}

.quote-carousel-item img {
    height: 150px !important;

    object-fit: cover;
    border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* 📱 רספונסיבי למובייל */
@media (max-width: 480px) {
    .quote-carousel-item {
        width: 250px;
        height: 160px;
    }
}

.quote-listing-content {
    padding: 5px 3px;
}

.quote-listing-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.quote-listing-description {
    font-size: 14px;
    font-weight: 600;
    color: gray;
    margin: 0;
}

.quote-listing-location {
    margin: 6px 0 10px;
    color: #8b0000;
    font-weight: 500;
}

.quote-listing-features {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* עיצוב scrollbar */
.quote-listing-features::-webkit-scrollbar {
    height: 6px;
}

.quote-listing-features::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* כל "צ'יפ" */
.quote-listing-features span {
    flex: 0 0 auto;          /* ❗ מונע שבירה !!! */
    min-width: 110px;        /* רוחב אחיד */
    padding: 6px 10px;

    background: #f5f5f5;
    border-radius: 10px;
    font-size: 13px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    scroll-snap-align: center;
    white-space: nowrap;     /* ❗ לא יישבר לשתי שורות */
}

/* אייקון */
.quote-listing-features i {
    color: #8b0000;
    font-size: 15px;
}



.main-header{
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.guesty-filter-panel {
    background: #ffffff;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 13px;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 6px;
}

.filter-block {
    display: flex;
    flex-direction: column;
  
    gap: 0px;
}

/* --- מחיר --- */
.price-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    min-width: 70px;
    text-align: center;
}

#price-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #eee;
    border-radius: 20px;
}

#price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: #8B0000;
    border-radius: 50%;
    cursor: pointer;
}

/* --- צ'יפים --- */
.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: clip;
    padding: 4px 0px;
}

.chip input { display: none; }

.chip span {
    padding: 0px 10px;
    background: #f4f4f4;
    border-radius: 14px;
    border: 1px solid #ddd;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.chip input:checked + span {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
}

/* --- כפתור --- */
.filter-apply-btn  {
    width: 100%;
    padding: 10px;
    background: #fff !important;
    border: 2px solid #8B0000 !important;
    border-radius: 26px;
    font-size: 14px;
    font-weight: 700;
    color: #8B0000 !important;
    cursor: pointer;
    transition: 0.2s;
}

.filter-apply-btn:hover {
    background: #8B0000;
    color: white;
}



.guesty-success-card {
    max-width: 520px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    background: #fff;
}

.guesty-success-icon {
    font-size: 56px;
    color: #16a34a;
    margin-bottom: 12px;
}

.guesty-success-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.guesty-success-text {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
}

.guesty-success-details {
    border-top: 1px dashed #e5e7eb;
    padding-top: 16px;
    margin-top: 16px;
}

.guesty-success-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #111827;
}

.guesty-success-row .label {
    color: #6b7280;
}

.guesty-success-row .value {
    font-weight: 500;
}

.guesty-success-row.muted {
    justify-content: center;
    font-size: 13px;
    color: #9ca3af;
}








.guesty-coupon-box {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 10px;
}

.guesty-coupon-box label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.coupon-row {
  display: flex;
  gap: 10px;
}

.coupon-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.coupon-row button {
  padding: 10px 16px !important;
  border-radius: 6px !important;
  border: none !important;
  background: brown !important;
  color: #fff !important;
  cursor: pointer !important;
}

.coupon-row button:hover {
  background: rgba(165, 42, 42, 0.724) !important;
}

.coupon-message {
  margin-top: 10px;
  font-size: 14px;
}

.coupon-message.success {
  color: #198754;
}

.coupon-message.error {
  color: #dc3545;
}