/*
Theme Name: Hvar Apartments
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Simple one-page theme for Hvar apartments with photo galleries.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hvar-apartments
*/

html {
    height: 100%;
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 80px 20px;
    position: relative;
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    /* background card + YOUR photo */
    background:
        linear-gradient(rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6)),
        url('photos/ap1/ap_hvar_4people_31.jpg') center/cover no-repeat;
}




.header-image-placeholder {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #666;
    max-width: 200px;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
    font-weight: bold;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.apartment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.photo-gallery {
    height: 280px;
    background: linear-gradient(45deg, #f0f2f5, #e1e8ed);
    position: relative;
    border-bottom: 3px solid #667eea;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-gallery:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #666;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.photo-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.gallery-text {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #667eea;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: background-color 0.3s;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

.card-content {
    padding: 25px;
}

.apartment-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.apartment-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.amenities {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.amenities-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.amenities-list {
    color: #666;
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    color: white;
    padding: 40px 20px;
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .contact-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .apartments-grid {
        grid-template-columns: 1fr;
    }

    .prev, .next {
        padding: 12px 16px;
        font-size: 16px;
    }
}
