/* Details Page Specific Styles */
.product-details {
    padding: 120px 0 80px;
    background-color: var(--background-color);
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--primary-color);
}

/* Product Container */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: var(--card-bg);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
}

.product-specs, .product-features {
    margin-bottom: 30px;
}

.product-specs h3, .product-features h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.product-specs h3::after, .product-features h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.product-specs ul, .product-features ul {
    list-style: none;
}

.product-specs ul li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-specs ul li:last-child {
    border-bottom: none;
}

.product-specs ul li strong {
    color: var(--text-color);
}

.product-specs ul li span {
    color: #aaaaaa;
}

.product-features ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.product-features ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Booking Section */
.booking-section {
    background-color: var(--secondary-color);
    padding: 50px;
    border-radius: 8px;
}

.booking-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

.booking-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.booking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Calendar Container */
.calendar-container {
    flex: 1;
    min-width: 300px;
}

.calendar-container h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

#availability-calendar {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Booking Form */
.booking-form {
    flex: 1;
    min-width: 300px;
}

.booking-form h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.booking-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.booking-form .form-error,
.booking-form .error {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.booking-form input,
.booking-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    color: #222;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.booking-form input:focus,
.booking-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.1);
}

.booking-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Booking Summary */
.booking-summary {
    background-color: rgba(42, 42, 42, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.booking-summary h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.booking-summary h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

/* Flatpickr Calendar Customization */
.flatpickr-calendar {
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 8px;
}

.flatpickr-month {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.flatpickr-weekday {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.flatpickr-day {
    color: var(--text-color);
    border-radius: 4px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.flatpickr-day.inRange {
    background-color: rgba(230, 0, 0, 0.2);
    border-color: transparent;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #555;
    background-color: transparent;
    cursor: not-allowed;
}

.flatpickr-day.today {
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-details {
        padding: 100px 0 60px;
    }
    
    .product-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .booking-section {
        padding: 30px 20px;
    }
    
    .booking-container {
        flex-direction: column;
    }
    
    .calendar-container,
    .booking-form {
        width: 100%;
    }
    
    .thumbnail-images {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* iPhone und kleinere Geräte */
@media (max-width: 428px) {
    .product-details {
        padding: 80px 0 40px;
    }
    
    .product-container {
        gap: 20px;
    }
    
    .back-link {
        margin-bottom: 20px;
    }
    
    .main-image {
        height: 220px;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .product-price {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .product-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .product-specs h3, 
    .product-features h3,
    .booking-form h3,
    .calendar-container h3 {
        font-size: 1.2rem;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .product-specs ul li {
        padding: 8px 0;
        font-size: 0.95rem;
    }
    
    .product-features ul li {
        font-size: 0.95rem;
        padding: 6px 0;
    }
    
    .booking-section {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .booking-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .booking-summary {
        margin: 20px 0;
        padding: 15px;
    }
    
    .booking-summary h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .summary-item {
        padding: 8px 0;
        font-size: 0.95rem;
    }
    
    .summary-item.total {
        font-size: 1.1rem;
        margin-top: 8px;
        padding-top: 12px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* iPhone SE und sehr kleine Geräte */
@media (max-width: 375px) {
    .product-info h1 {
        font-size: 1.6rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .product-specs ul li,
    .product-features ul li {
        font-size: 0.9rem;
    }
    
    .main-image {
        height: 180px;
    }
    
    .booking-form input,
    .booking-form textarea {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
} 