/**
 * Guesty Properties Widget Styles
 * Matches Caribbean luxury property aesthetic
 */

/* Section Header */
.guesty-properties-wrapper {
    padding: 40px 0;
}

.guesty-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.guesty-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    color: #c9a962;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.guesty-section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 300;
}

/* Grid Layout */
.guesty-properties-grid {
    display: grid;
    gap: 30px;
}

.guesty-columns-1 {
    grid-template-columns: 1fr;
}

.guesty-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.guesty-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.guesty-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .guesty-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guesty-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .guesty-columns-4,
    .guesty-columns-3,
    .guesty-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .guesty-section-title {
        font-size: 32px;
    }
}

/* Property Card */
.guesty-property-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Clickable Card Link */
.guesty-property-image-link {
    display: block;
    text-decoration: none;
}

/* Property Image / Carousel */
.guesty-property-image {
    height: 250px;
    position: relative;
    border-radius: 15px;
    margin: 15px;
    overflow: hidden;
}

.guesty-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.guesty-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.guesty-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Arrows */
.guesty-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 3;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.guesty-property-card:hover .guesty-carousel-arrow {
    opacity: 1;
}

.guesty-carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.guesty-carousel-arrow.guesty-carousel-prev {
    left: 10px;
}

.guesty-carousel-arrow.guesty-carousel-next {
    right: 10px;
}

.guesty-carousel-arrow[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

/* Carousel Dots */
.guesty-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}

.guesty-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.guesty-carousel-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* Placeholder Image for Editor */
.guesty-placeholder-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.guesty-placeholder-image .guesty-placeholder-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guesty-placeholder-image .guesty-placeholder-slide::after {
    content: '\1F3E0';
    font-size: 48px;
    opacity: 0.5;
}

/* Price Badge */
.guesty-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guesty-property-price {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.guesty-property-price small {
    font-weight: 400;
    font-size: 12px;
    color: #888;
}

/* Property Content */
.guesty-property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guesty-property-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: #c9a962;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.guesty-property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guesty-property-title a:hover {
    color: #a88a40;
}

/* Property Details */
.guesty-property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.guesty-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.guesty-detail svg {
    color: #c9a962;
}

/* Property Description */
.guesty-property-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* Property Amenities */
.guesty-property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.guesty-amenity {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.guesty-amenity-more {
    background: #c9a962;
    color: #fff;
}

/* Booking Button */
.guesty-property-actions {
    margin-top: auto;
    padding-top: 15px;
}

.guesty-booking-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c9a962;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.guesty-booking-btn:hover {
    background: #b8993d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 98, 0.3);
}

/* Error and Notice Styles */
.guesty-error,
.guesty-notice {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.guesty-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.guesty-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Loading State */
.guesty-loading {
    text-align: center;
    padding: 60px 20px;
}

.guesty-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c9a962;
    border-radius: 50%;
    animation: guesty-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes guesty-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .guesty-property-card {
        background: #1a1a2e;
    }
    
    .guesty-property-description {
        color: #a0a0a0;
    }
    
    .guesty-detail {
        color: #a0a0a0;
    }
    
    .guesty-amenity {
        background: #2a2a3e;
        color: #a0a0a0;
    }
    
}

/* Carousel Layout Option (Future Enhancement) */
.guesty-properties-carousel {
    overflow: hidden;
}

.guesty-properties-carousel .guesty-properties-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.guesty-properties-carousel .guesty-properties-grid::-webkit-scrollbar {
    display: none;
}

.guesty-properties-carousel .guesty-property-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .guesty-properties-carousel .guesty-property-card {
        flex: 0 0 calc(100% - 40px);
    }
}

/* Location Badge (Optional) */
.guesty-location-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.guesty-location-badge svg {
    width: 14px;
    height: 14px;
    color: #c9a962;
}

/* Featured Property Variant */
.guesty-property-card.guesty-featured {
    border: 2px solid #c9a962;
}

.guesty-property-card.guesty-featured::before {
    content: 'Destacada';
    position: absolute;
    top: 25px;
    left: -30px;
    background: #c9a962;
    color: #fff;
    padding: 5px 40px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 10;
}

