/* WP CheckIn Frontend Styles */

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

.wpcheckin-property-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.wpcheckin-property-image {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.wpcheckin-property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.wpcheckin-property-card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.wpcheckin-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.wpcheckin-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wpcheckin-meta-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.wpcheckin-property-price {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.wpcheckin-price-label {
    color: #666;
    font-size: 14px;
}

.wpcheckin-price-amount {
    font-size: 28px;
    font-weight: bold;
    color: #2271b1;
}

.wpcheckin-price-period {
    color: #666;
    font-size: 14px;
}

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

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

.wpcheckin-gallery-main {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.wpcheckin-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.wpcheckin-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.wpcheckin-gallery-thumbs img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.wpcheckin-property-header {
    margin-bottom: 30px;
}

.wpcheckin-property-header h1 {
    margin: 0 0 10px 0;
}

.wpcheckin-property-type {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.wpcheckin-property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.wpcheckin-section {
    margin-bottom: 40px;
}

.wpcheckin-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.wpcheckin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.wpcheckin-overview-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wpcheckin-overview-item .dashicons {
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: #2271b1;
    margin-bottom: 10px;
}

.wpcheckin-overview-item strong {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.wpcheckin-amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.wpcheckin-amenities-category h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    color: #2271b1;
}

.wpcheckin-amenities-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpcheckin-amenities-category li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcheckin-amenities-category .dashicons {
    color: #2271b1;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.wpcheckin-policies-list {
    list-style: none;
    padding: 0;
}

.wpcheckin-policies-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wpcheckin-policies-list li:last-child {
    border-bottom: none;
}

/* Booking Widget */
.wpcheckin-booking-widget {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.wpcheckin-widget-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

/* Forms */
.wpcheckin-form-group {
    margin-bottom: 20px;
}

.wpcheckin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wpcheckin-form-group input,
.wpcheckin-form-group select,
.wpcheckin-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wpcheckin-form-group input:focus,
.wpcheckin-form-group select:focus,
.wpcheckin-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.wpcheckin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Price Breakdown */
.wpcheckin-price-breakdown {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.wpcheckin-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.wpcheckin-price-total {
    border-top: 2px solid #333;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
}

/* Buttons */
.wpcheckin-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.wpcheckin-btn-primary {
    background: #2271b1;
    color: #fff;
}

.wpcheckin-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.wpcheckin-btn-secondary {
    background: #fff;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.wpcheckin-btn-secondary:hover {
    background: #2271b1;
    color: #fff;
}

.wpcheckin-btn-block {
    display: block;
    width: 100%;
}

/* Search Form */
.wpcheckin-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.wpcheckin-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

/* Alerts */
.wpcheckin-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 15px 0;
}

.wpcheckin-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcheckin-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcheckin-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .wpcheckin-property-layout {
        grid-template-columns: 1fr;
    }
    
    .wpcheckin-form-row {
        grid-template-columns: 1fr;
    }
    
    .wpcheckin-search-grid {
        grid-template-columns: 1fr;
    }
    
    .wpcheckin-amenities-list {
        grid-template-columns: 1fr;
    }
}
