/* Villa Detail Page Styles - Стили карточки виллы */

/* Breadcrumbs */
.breadcrumbs {
    background: white !important;
    border-bottom: 1px solid var(--border);
    padding: 20px 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 5% !important;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs span {
    color: #999;
}

/* Villa Header */
.villa-header {
    padding: 20px 5% 20px !important;
    background: white;
    border-bottom: 1px solid var(--border);
}

.villa-header-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 1% !important;
}

.villa-title {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 15px;
    width: 100%;
}

.villa-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    width: 100%;
}

.villa-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.meta-item i {
    color: var(--primary);
}

.villa-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

.rating-stars {
    color: var(--secondary);
}

/* Media Gallery */
.media-section {
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-main {
    height: 500px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.main-image {
    grid-row: 1 / span 2;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

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

.side-image {
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

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

.gallery-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.gallery-btn:hover {
    background: var(--light);
    border-color: var(--primary);
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 40px;
    padding: 0 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Villa Details */
.villa-details {
    flex: 2;
}

/* Villa Description */
.description-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.amenity-category {
    margin-bottom: 25px;
}

.amenity-category h4 {
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenity-list {
    list-style: none;
}

.amenity-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.amenity-list li i {
    color: #28a745;
    width: 20px;
}

/* Location */
.location-map {
    height: 300px;
    background: #ddd;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

/* Booking Sidebar */
.booking-sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.booking-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 25px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.price-display {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.price-amount {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}

.price-period {
    color: var(--gray);
    font-size: 16px;
}

.price-note {
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 14px;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.book-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.book-btn:hover {
    background: var(--primary-dark);
}

.security-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: #666;
}

.security-info i {
    color: var(--primary);
    margin-right: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin: 30px 0;
    flex-wrap: wrap;
    background: white;
    padding: 0 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    z-index: 10;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--primary);
    background: #f9f9f9;
}

.tab.active {
    color: var(--primary);
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

/* Similar Villas */
.similar-villas {
    padding: 60px 5% !important;
    background: var(--light);
    margin-top: 50px;
}

.similar-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.similar-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.similar-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-card-content {
    padding: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .booking-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .mobile-book-btn {
        display: flex;
    }
    
    .gallery-main {
        height: 300px;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr 1fr;
    }

    .main-image {
        grid-row: 1;
    }

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

    .villa-title {
        font-size: 24px;
    }

    .villa-meta {
        gap: 15px;
    }

    .meta-item {
        font-size: 14px;
    }

    .tabs {
        overflow-x: auto;
        padding: 0;
    }

    .tab {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Booking full-width on mobile */
    .booking-sidebar {
        max-width: 100%;
        margin: 0;
        padding: 0 5%;
    }
    
    .booking-card {
        border-radius: 0;
        padding: 20px;
        box-shadow: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    
    .book-btn {
        width: 100%;
        padding: 16px;
        font-size: 18px;
    }
    
    /* Similar villas - 1 column on mobile */
    .similar-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .similar-card {
        margin-bottom: 0;
    }
    
    .similar-card img {
        height: 220px;
    }

    .similar-card-content {
        padding: 15px;
    }
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
    padding: 0 5%;
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    overflow: hidden;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-header {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    z-index: 10001;
}

.lightbox-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.lightbox-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 60px 100px;
}

.lightbox-main img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1001;
}

.lightbox-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-header {
        left: 20px;
        top: 15px;
    }

    .lightbox-header h3 {
        font-size: 16px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }

    .lightbox-main {
        padding: 60px 20px 80px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}

/* Seasonal Prices Table */
.seasonal-prices-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.seasonal-prices-table thead tr {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.seasonal-prices-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.seasonal-prices-table th:nth-child(3),
.seasonal-prices-table th:nth-child(4) {
    text-align: center;
}

.seasonal-prices-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.seasonal-prices-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.seasonal-prices-table tbody tr:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.seasonal-prices-table td {
    padding: 15px;
    font-size: 14px;
}

.seasonal-prices-table .price-night {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
}

.seasonal-prices-table .price-month {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.seasonal-prices-info {
    margin-top: 15px;
    font-size: 13px;
    color: #777;
    font-style: italic;
}

/* Seasonal Prices Section */
.seasonal-prices-section {
    border-top: 1px solid var(--border);
}

.seasonal-prices-section h2 {
    font-size: 32px !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    .seasonal-prices-section {
        padding: 40px 5% !important;
    }

    .seasonal-prices-section h2 {
        font-size: 24px !important;
    }

    .seasonal-prices-table {
        font-size: 13px;
    }

    .seasonal-prices-table th,
    .seasonal-prices-table td {
        padding: 10px 8px;
    }

    .seasonal-prices-table th:nth-child(2),
    .seasonal-prices-table td:nth-child(2) {
        display: none;
    }

    .seasonal-prices-table .price-night,
    .seasonal-prices-table .price-month {
        padding: 6px 10px;
        font-size: 13px;
    }
}
