/* Property Page Styles */

/* Main Content Spacing */
#main-content {
    padding-top: calc(120px + 3rem); /* Initial header height + desired padding */
}

/* Property Gallery Section */
.property-gallery-section {
    margin-bottom: 3rem;
}

.property-gallery {
    max-width: 800px;
    margin: 0 auto;
}

.property-gallery__container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.property-gallery__images {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.property-gallery__images img {
    flex: 0 0 100%;
    width: 100%;
    height: 400px;
    object-fit: cover;
    scroll-snap-align: start;
    display: block;
}

/* Gallery Navigation Arrows */
.property-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
}

.property-gallery__container:hover .property-gallery__nav {
    opacity: 1;
    visibility: visible;
}

.property-gallery__nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.property-gallery__nav--prev {
    left: 1rem;
}

.property-gallery__nav--next {
    right: 1rem;
}

.property-gallery__nav svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

/* Gallery Indicators */
.property-gallery__indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.property-gallery__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.property-gallery__indicator.active {
    background: white;
}

/* Property Details (Right Column) */
.property-details {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: white;
}

.property-details__breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.property-details__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.property-details__icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.property-details__icon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.property-details__icon-item span {
    font-weight: 600;
    font-size: 1rem;
}

/* Property Content Grid */
.property-content {
    padding: 3rem 0;
}

.property-content__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.property-content__main {
    max-width: none;
}

/* Property Description */
.property-description {
    margin-bottom: 3rem;
}

.property-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* Property Amenities */
.property-amenities {
    margin-bottom: 3rem;
}

.property-amenities h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-sage);
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.amenities-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
    color: var(--color-text);
}

.amenities-list li:last-child {
    border-bottom: none;
}

/* Property Location & Map */
.property-location {
    margin-bottom: 3rem;
}

.property-location h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-sage);
}

.property-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.property-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* Sidebar */
.property-content__sidebar {
    position: sticky;
    top: 2rem;
}

/* Booking Widget */
.booking-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--color-light-gray);
}

.booking-widget__header {
    background-color: var(--color-sage);
    padding: 1rem;
    text-align: center;
}

.booking-widget__dots {
    color: var(--color-dark-green);
    font-size: 1.5rem;
    font-weight: bold;
}

.booking-form {
    padding: 2rem;
}

.booking-form__field {
    margin-bottom: 1.5rem;
}

.booking-form__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.date-range-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    background: white;
}

.date-range-input input[type="date"] {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text);
}

.date-range-input input[type="date"]:focus {
    outline: none;
}

.date-separator {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.booking-form__field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    background: white;
    font-size: 0.875rem;
    color: var(--color-text);
}

.booking-form__field select:focus {
    outline: none;
    border-color: var(--color-coral);
}

.booking-form__total {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-light-gray);
    border-bottom: 1px solid var(--color-light-gray);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-text);
}

.total-amount {
    font-size: 1.25rem;
    color: var(--color-coral);
}

.booking-form__submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 10px;
}

.booking-form__link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 0.75rem;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.booking-form__link:hover {
    background-color: #e9e9e9;
    text-decoration: none;
}

.button--secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.button--secondary:hover {
    background-color: #e9e9e9;
}

/* Responsive Design */
@media (max-width: 768px) {
    #main-content {
        padding-top: calc(90px + 3rem); /* Initial mobile header height + desired padding */
    }
    
    .property-gallery__images img {
        height: 300px;
    }
    
    .property-details {
        padding: 1.5rem;
    }
    
    .property-details__title {
        font-size: 1.75rem;
    }
    
    .property-content__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-content__sidebar {
        position: static;
        order: -1;
    }
    
    .booking-form {
        padding: 1.5rem;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
    }
    
    .property-map iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .property-gallery__images img {
        height: 250px;
    }
    
    .property-details {
        padding: 1rem;
    }
    
    .property-details__title {
        font-size: 1.5rem;
    }
    
    .property-content {
        padding: 2rem 0;
    }
    
    .date-range-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-separator {
        text-align: center;
        padding: 0.25rem 0;
    }
    
    .property-map iframe {
        height: 200px;
    }
}