#guesty-all-properties {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    font-family: Arial, sans-serif;
}
#guesty-all-properties-form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
    align-items: flex-end;
    width: 100%;
    background: #c9af8f;
    padding: 24px 18px 18px 18px;
    border-radius: 14px;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    justify-content: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
#guesty-all-properties-form label {
    font-weight: 600;
    font-size: 18px;
    color: #3a2c13;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
    min-width: 220px;
}
#guesty-daterange {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid #cbb08f;
    font-size: 17px;
    width: 240px;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: #3a2c13;
    transition: border-color 0.2s;
}
#guesty-daterange:focus {
    border-color: #C29C74;
    outline: none;
    box-shadow: 0 0 0 2px #cbb08f33;
}
#guesty-all-properties-form button {
    background: #C29C74;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    height: 44px;
    margin-left: 0;
    box-shadow: 0 2px 8px rgba(194,156,116,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
#guesty-all-properties-form button:hover {
    background: #B08A5E;
    box-shadow: 0 4px 16px rgba(194,156,116,0.13);
}
#guesty-properties-list {
    margin-top: 10px;
}
.guesty-properties-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guesty-property-item {
    background: #e1d2b8;
    border: 1px solid #CBB08F;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 0;
    height: 200px;
    display: flex;
    overflow: hidden;
    width: 100%; /* Ensure full width of parent container */
    box-sizing: border-box;
    position: relative;
}

.guesty-property-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-bottom: 20px solid #e2c8a3;
    z-index: 1;
}
.property-details {
    flex: 1;
    line-height: 1.4;
    padding: 16px 20px;
    width: 50%;
    background: #e1d2b8;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.property-details strong {
    font-size: 18px;
    color: #C29C74;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.property-details a {
    text-decoration: none;
}
.property-details a:hover strong {
    color: #B08A5E;
}
.property-amenities {
    display: flex;
    gap: 12px;
    margin: 6px 0;
    flex-wrap: wrap;
}
.property-amenities .amenity {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #555;
}
.property-amenities .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: help;
}
.property-address {
    color: #777;
    font-size: 14px;
    margin: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.property-price {
    font-size: 20px;
    margin-top: 12px;
    padding: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.property-price .price-amount {
    font-weight: bold;
    color: #000;
}
.property-price .price-duration {
    font-weight: normal;
    color: #666;
}
.property-image {
    width: 50%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    position: relative;
    flex-shrink: 0;
    align-self: stretch;
    margin: 0;
    padding: 0;
}
.property-image a {
    display: block;
    width: 100%;
    height: 200px;
    text-decoration: none;
    margin: 0;
    padding: 0;
}
.property-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
}
.property-image img:hover,
.property-image a:hover img {
    transform: scale(1.05);
}
/* Center the calendar and the arrow under the input for 3 months */
.flatpickr-calendar.center-3-months {
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 735px; /* 3 x 245px (default month width) */
    width: auto !important;
}
.flatpickr-calendar.center-3-months .arrow {
    left: 50% !important;
    transform: translateX(-50%) !important;
}
@media (max-width: 900px) {
    .flatpickr-calendar.center-3-months {
        min-width: 0 !important;
        width: 100vw !important;
        left: 0 !important;
        transform: none !important;
    }
    .flatpickr-calendar.center-3-months .arrow {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}
@media (max-width: 700px) {
    .flatpickr-calendar.center-3-months {
        left: 0 !important;
        transform: none !important;
    }
    #guesty-all-properties {
        max-width: 100%;
        padding: 0 4px;
    }
    #guesty-all-properties-form {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 4px 10px 4px;
        max-width: 100%;
    }
    #guesty-all-properties-form label, #guesty-daterange {
        width: 100%;
        min-width: 0;
    }
    #guesty-all-properties-form button {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}
@media (max-width: 600px) {
    #guesty-all-properties-form {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 8px 16px 8px;
    }
    #guesty-all-properties-form label, #guesty-daterange {
        width: 100%;
        min-width: 0;
    }
    #guesty-all-properties-form button {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    .guesty-property-item {
        flex-direction: column;
        height: auto;
        min-height: 300px;
    }
    .property-details {
        width: 100%;
        padding: 20px;
    }
    .property-image {
        width: 100%;
        height: 250px;
        min-height: 250px;
        border-radius: 0 0 8px 8px;
    }
    .property-amenities {
        justify-content: space-between;
    }
}
