/* 
 * Vacation Rental Manager - Frontend Styles
 */


/* ==========================================================================
   Propiedades Grid y Cards
   ========================================================================== */

.vrm-properties-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

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

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

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

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

.vrm-property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vrm-property-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.vrm-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vrm-property-card:hover .vrm-property-image img {
    transform: scale(1.05);
}

.vrm-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    color: #999;
    text-decoration: none;
}

.vrm-no-image .dashicons {
    font-size: 3rem;
}

.vrm-property-content {
    padding: 1.5rem;
}

.vrm-property-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--ff-heading, inherit);
}

.vrm-property-title a {
    color: #333;
    text-decoration: none;
}

.vrm-property-title a:hover {
    color: #0073aa;
}

.vrm-property-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.vrm-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.vrm-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
    font-size: 0.9rem;
}

.vrm-meta-item .dashicons {
    color: #0073aa;
    font-size: 1rem;
}

.vrm-property-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vrm-property-price strong {
    font-size: 1.3rem;
    color: #0073aa;
    font-weight: 600;
}

.vrm-property-price span {
    color: #666;
    font-size: 0.9rem;
}

.vrm-property-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   Formularios de Búsqueda
   ========================================================================== */

.vrm-search-container {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.vrm-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vrm-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.vrm-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vrm-field label {
    font-weight: 600;
    color: #333;
}

.vrm-field input,
.vrm-field select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.vrm-field input:focus,
.vrm-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.vrm-search-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vrm-search-btn:hover {
    background: #005a87;
}

.vrm-search-results {
    margin-top: 2rem;
}

.vrm-no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* ==========================================================================
   Detalles de Propiedad
   ========================================================================== */

.vrm-property-details {
    margin: 2rem 0;
}

.vrm-property-basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.vrm-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.vrm-info-item .dashicons {
    color: #0073aa;
    font-size: 2rem;
}

.vrm-info-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.vrm-info-label {
    color: #666;
    font-size: 0.9rem;
}

.vrm-property-amenities {
    margin: 2rem 0;
}

.vrm-property-amenities h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.vrm-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.vrm-amenities-list .vrm-amenities-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vrm-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.vrm-amenity-item .dashicons {
    color: #0073aa;
    font-size: 1.2rem;
}

.vrm-amenity-item img {
    width: 20px;
    height: 20px;
}

.vrm-amenity-title {
    font-weight: 600;
    color: #333;
}

.vrm-amenity-description {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Galería de Propiedades
   ========================================================================== */

.vrm-property-gallery {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.vrm-gallery-columns-1 { grid-template-columns: 1fr; }
.vrm-gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.vrm-gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.vrm-gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.vrm-gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.vrm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vrm-gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Mapa
   ========================================================================== */

.vrm-property-map {
    margin: 2rem 0;
}

.vrm-map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* ==========================================================================
   Localización
   ========================================================================== */

.vrm-property-location {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 1rem 0;
}

.vrm-location-name,
.vrm-location-address,
.vrm-location-map-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vrm-location-name .dashicons,
.vrm-location-address .dashicons,
.vrm-location-map-link .dashicons {
    color: #0073aa;
}

.vrm-location-map-link a {
    color: #0073aa;
    text-decoration: none;
}

.vrm-location-map-link a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Formulario de Reserva
   ========================================================================== */

.vrm-booking-form-container {
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.vrm-booking-form h3 {
    margin: 0 0 1.5rem 0;
    color: #0073aa;
    font-size: 1.4rem;
}

.vrm-booking-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vrm-price-calculation {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.vrm-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vrm-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vrm-price-total {
    border-top: 1px solid #ddd;
    padding-top: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.vrm-guest-details {
    margin: 1.5rem 0;
}

.vrm-guest-details h4 {
    margin-bottom: 1rem;
    color: #333;
}

.vrm-guest-details .vrm-field {
    margin-bottom: 1rem;
}

.vrm-booking-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.vrm-booking-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vrm-booking-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Botones
   ========================================================================== */

.vrm-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vrm-btn-primary {
    background: #0073aa;
    color: white;
}

.vrm-btn-primary:hover {
    background: #005a87;
    color: white;
}

.vrm-btn-success {
    background: #28a745;
    color: white;
}

.vrm-btn-success:hover {
    background: #218838;
    color: white;
}

.vrm-btn-secondary {
    background: #6c757d;
    color: white;
}

.vrm-btn-secondary:hover {
    background: #5a6268;
    color: white;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.vrm-breadcrumbs {
    margin: 1rem 0;
}

.vrm-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vrm-breadcrumb-item {
    display: flex;
    align-items: center;
}

.vrm-breadcrumb-item:not(:last-child):after {
    content: '/';
    margin-left: 0.5rem;
    color: #999;
}

.vrm-breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
}

.vrm-breadcrumb-item a:hover {
    text-decoration: underline;
}

.vrm-breadcrumb-item.vrm-current {
    color: #333;
    font-weight: 600;
}

/* ==========================================================================
   Estado de Disponibilidad
   ========================================================================== */

.vrm-availability-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.vrm-status-available {
    background: #d4edda;
    color: #155724;
}

.vrm-status-unavailable {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   Condiciones de Reserva
   ========================================================================== */

.vrm-booking-conditions {
    margin: 2rem 0;
}

.vrm-booking-conditions h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.vrm-conditions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vrm-condition-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 0 4px 4px 0;
}

.vrm-condition-item .dashicons {
    color: #0073aa;
}

/* ==========================================================================
   Propiedades Relacionadas
   ========================================================================== */

.vrm-related-properties {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.vrm-related-properties h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
}

.vrm-related-grid {
    display: grid;
    gap: 1.5rem;
}

.vrm-related-grid.vrm-columns-2 { grid-template-columns: repeat(2, 1fr); }
.vrm-related-grid.vrm-columns-3 { grid-template-columns: repeat(3, 1fr); }
.vrm-related-grid.vrm-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .vrm-related-grid.vrm-columns-2,
    .vrm-related-grid.vrm-columns-3,
    .vrm-related-grid.vrm-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Tarjetas Compactas
   ========================================================================== */

.vrm-card-compact .vrm-card-image {
    height: 150px;
}

.vrm-card-compact .vrm-property-content {
    padding: 1rem;
}

.vrm-card-compact .vrm-property-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .vrm-search-fields {
        grid-template-columns: 1fr;
    }
    
    .vrm-property-basic-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .vrm-amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .vrm-booking-dates {
        grid-template-columns: 1fr;
    }
    
    .vrm-booking-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .vrm-property-basic-info {
        grid-template-columns: 1fr;
    }
    
    .vrm-search-container {
        padding: 1.5rem;
    }
    
    .vrm-property-content {
        padding: 1rem;
    }
}