/* Property Card Gallery Styles */
.property-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06),
                0 1px 2px rgba(0,0,0,0.04),
                inset 0 1px 0 rgba(255,255,255,0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1),
                0 4px 12px rgba(0,0,0,0.06),
                inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(107, 159, 92, 0.3);
}

.property-gallery {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

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

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.gallery-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Gallery Navigation Arrows */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.property-gallery:hover .gallery-prev,
.property-gallery:hover .gallery-next {
    opacity: 1;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev i,
.gallery-next i {
    color: #333;
    font-size: 16px;
}

/* Gallery Track & Images */
.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
    z-index: 1;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.property-details {
    padding: 1.75rem 1.5rem 1.5rem;
    background: white;
    text-align: center;
}

.property-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    color: #2C2C2C;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.property-specs {
    color: #777;
    font-weight: 400;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-specs span:not(:last-child)::after {
    content: "·";
    margin-left: 0.5rem;
    color: #ccc;
}

.property-specs i {
    font-size: 0.8rem;
    color: #6B9F5C;
}

.property-pricing {
    margin-bottom: 1.25rem;
    text-align: center;
}

.price-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.price-amount {
    font-size: 1.5rem;
    color: var(--palm-green);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.price-period {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Amenity Tags */
.amenity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amenity-tag {
    background: linear-gradient(135deg, #f0f7ed 0%, #e8f5e3 100%);
    color: #4a7c3f;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(107, 159, 92, 0.2);
    transition: all 0.2s ease;
}

.amenity-tag:hover {
    background: linear-gradient(135deg, #e8f5e3 0%, #d4edcc 100%);
    transform: translateY(-1px);
}

.amenity-tag i {
    font-size: 0.7rem;
}

.property-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex: 1;
    display: none; /* Hide description to make room for tags */
}

.airbnb-link-small {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.airbnb-link-small:hover {
    color: #6B9F5C;
}

.airbnb-link-small i {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.property-content {
    padding: 2rem 1.75rem;
    background: linear-gradient(to bottom, white 0%, #fafafa 100%);
}

.property-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.property-guests {
    color: var(--palm-green);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.bed-configuration {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(to bottom, 
                rgba(250,250,248,0.3) 0%, 
                rgba(255,255,255,0.5) 100%);
    margin-left: -1.75rem;
    margin-right: -1.75rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.bed-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.625rem;
    background: linear-gradient(135deg, 
                rgba(107, 159, 92, 0.03) 0%, 
                rgba(107, 159, 92, 0.06) 100%);
    border-radius: 12px;
    border: 1px solid rgba(107, 159, 92, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02),
                inset 0 1px 0 rgba(255,255,255,0.5);
}

.bed-item:hover {
    background: linear-gradient(135deg, 
                rgba(107, 159, 92, 0.06) 0%, 
                rgba(107, 159, 92, 0.1) 100%);
    border-color: rgba(107, 159, 92, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(107, 159, 92, 0.15),
                inset 0 1px 0 rgba(255,255,255,0.6);
}

.bed-icon {
    font-size: 1.25rem;
    color: var(--palm-green);
    margin-bottom: 0.25rem;
}

.bed-room {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.bed-type {
    font-size: 0.7rem;
    color: #999;
}

.property-description {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.price-period {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #6B9F5C;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    margin-bottom: 0;
    border: none;
}

.btn-primary:hover {
    background: #5A8A4D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 159, 92, 0.35);
}

.btn-full-width {
    width: 100%;
}

.btn-check-availability {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6B9F5C 0%, #5A8A4D 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(107, 159, 92, 0.3),
                inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-check-availability:hover {
    background: linear-gradient(135deg, #5A8A4D 0%, #4A7A3D 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 159, 92, 0.4),
                inset 0 1px 0 rgba(255,255,255,0.25);
}

.airbnb-link {
    display: block;
    text-align: center;
    color: var(--palm-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.airbnb-link:hover {
    color: #5A8A4D;
}

.airbnb-link i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Mobile optimizations */
/* Mobile Optimization - Covers all phones including Pro Max */
@media (max-width: 932px) {
    .property-gallery {
        height: 220px;
    }
    
    .bed-configuration {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-title,
    .property-name {
        font-size: 1.5rem;
    }
    
    .property-card {
        margin-bottom: 2rem;
    }
    
    .property-details {
        padding: 1.5rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr !important;
        padding: 2rem 1rem;
    }
    
    /* Property Detail Page - Mobile Optimization */
    .property-page {
        padding: 0 !important;
    }
    
    .property-header {
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .property-title {
        font-size: 1.75rem !important;
    }
    
    /* Photo Gallery - Stack vertically */
    .photo-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        height: auto !important;
    }
    
    .photo-gallery-grid > div {
        height: 200px !important;
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    .photo-gallery-grid > div:first-child {
        height: 250px !important;
    }
    
    /* Amenities Section - Full Width */
    .property-content {
        padding: 1rem !important;
    }
    
    .amenities-section {
        padding: 1.5rem 1rem !important;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .amenity-item {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Booking Calendar - Full Width */
    .booking-section {
        padding: 1rem !important;
        margin: 0 !important;
    }
    
    .booking-calendar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
    }
    
    .calendar-header {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .calendar-header h3 {
        font-size: 1.25rem !important;
    }
    
    .calendar-nav button {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.25rem !important;
    }
    
    .days-grid {
        gap: 0.25rem !important;
    }
    
    .day {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.25rem !important;
        min-height: 44px !important;
    }
    
    .weekday {
        font-size: 0.7rem !important;
        padding: 0.5rem 0.25rem !important;
    }
    
    /* Date Selection Inputs */
    .date-select-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .date-select {
        width: 100% !important;
    }
    
    /* Guest Counter */
    .guest-selector {
        padding: 1rem !important;
    }
    
    /* Booking Summary - Stack Below */
    .booking-summary {
        position: relative !important;
        width: 100% !important;
        margin-top: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .price-breakdown {
        font-size: 0.9rem !important;
    }
    
    .summary-row {
        font-size: 0.85rem !important;
    }
    
    .total-row {
        font-size: 1.1rem !important;
    }
    
    /* Contact Buttons */
    .contact-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .contact-buttons a,
    .contact-buttons button {
        width: 100% !important;
        justify-content: center !important;
        font-size: 1rem !important;
        padding: 1rem !important;
    }
}

/* Larger Phones (iPhone Pro Max, etc.) - Better use of space */
@media (min-width: 430px) and (max-width: 932px) {
    .photo-gallery-grid > div {
        height: 240px !important;
    }
    
    .photo-gallery-grid > div:first-child {
        height: 300px !important;
    }
    
    .calendar-header h3 {
        font-size: 1.35rem !important;
    }
    
    .day {
        font-size: 0.95rem !important;
        padding: 0.6rem 0.35rem !important;
    }
    
    .weekday {
        font-size: 0.8rem !important;
    }
    
    .amenity-item {
        font-size: 0.95rem !important;
    }
    
    .property-title {
        font-size: 2rem !important;
    }
}

/* Extra small phones (iPhone SE, etc.) - More compact */
@media (max-width: 375px) {
    .photo-gallery-grid > div {
        height: 180px !important;
    }
    
    .photo-gallery-grid > div:first-child {
        height: 220px !important;
    }
    
    .calendar-header h3 {
        font-size: 1.1rem !important;
    }
    
    .day {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.2rem !important;
    }
}
