/**
 * Staystra Listings Frontend Styles
 * Version: 1.0.0
 */

/* Base styles */
.staystra-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Property Grid */
.staystra-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.staystra-property-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.staystra-property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.staystra-property-content {
    padding: 20px;
}

.staystra-property-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.staystra-property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.staystra-property-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Search Form */
.staystra-search-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.staystra-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.staystra-search-field {
    display: flex;
    flex-direction: column;
}

.staystra-search-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.staystra-search-input,
.staystra-search-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.staystra-search-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.staystra-search-button:hover {
    background: #005a87;
}

/* Single Property */
.staystra-single-property {
    max-width: 1200px;
    margin: 0 auto;
}

.staystra-property-gallery {
    margin-bottom: 30px;
}

.staystra-property-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.staystra-property-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.staystra-property-description {
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.staystra-amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.staystra-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Booking Widget */
.staystra-booking-widget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.staystra-booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.staystra-booking-button {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.staystra-booking-button:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .staystra-property-grid {
        grid-template-columns: 1fr;
    }
    
    .staystra-property-details {
        grid-template-columns: 1fr;
    }
    
    .staystra-booking-widget {
        position: static;
    }
}