/**
 * Single Listing Styles
 * Extracted from inline styles in templates/single-listing.php
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

.nlb-single-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Open Sans', sans-serif;
}

.nlb-single-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.nlb-single-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #024E72;
}

.nlb-single-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-family: 'Open Sans', sans-serif;
}

.nlb-header-price {
    text-align: right;
}

.nlb-price-line {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.nlb-price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #024E72;
    line-height: 1;
}

.nlb-price-period {
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .nlb-single-header {
        flex-direction: column;
        gap: 1rem;
    }

    .nlb-header-price {
        text-align: left;
        width: 100%;
    }

    .nlb-price-line {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }

    .nlb-price-amount {
        font-size: 1.5rem;
    }

    .nlb-price-period {
        font-size: 0.875rem;
    }
}

.nlb-single-gallery {
    margin-bottom: 3rem;
}

.nlb-gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.nlb-gallery-thumbs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.nlb-thumb {
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nlb-thumb:hover,
.nlb-thumb.active {
    opacity: 1;
}

.nlb-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.nlb-single-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
}

@media (max-width: 768px) {
    .nlb-single-container {
        grid-template-columns: 1fr;
    }
}

.nlb-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #D6EAF3;
}

.nlb-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333333;
    font-family: 'Open Sans', sans-serif;
}

.nlb-feature svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    color: #F3780D;
}

.nlb-description {
    margin-bottom: 3rem;
}

.nlb-description h2 {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #024E72;
}

.nlb-amenities {
    margin-bottom: 3rem;
}

.nlb-amenities h2 {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #024E72;
}

.nlb-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.nlb-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333333;
    font-family: 'Open Sans', sans-serif;
}

.nlb-booking-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #D6EAF3;
    box-shadow: 0 2px 8px rgba(2, 78, 114, 0.08);
    position: sticky;
    top: 2rem;
}

.nlb-booking-box h3 {
    margin: 0 0 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #024E72;
}

.nlb-box-price {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: #333333;
    font-family: 'Open Sans', sans-serif;
}

.nlb-form-group {
    margin-bottom: 1rem;
}

.nlb-form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #024E72;
    font-size: 0.875rem;
}

.nlb-form-group input,
.nlb-form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #D6EAF3;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    color: #333333;
}

.nlb-button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.nlb-button-primary {
    background: #F3780D;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(243, 120, 13, 0.3);
}

.nlb-button-primary:hover {
    background: #e06a0c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 120, 13, 0.4);
}

.nlb-location h2 {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #024E72;
}

#nlb-single-map {
    border-radius: 8px;
    overflow: hidden;
}

/* Lightbox styles */
.nlb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.nlb-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.nlb-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.nlb-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.nlb-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.nlb-lightbox-prev,
.nlb-lightbox-next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.nlb-lightbox-prev:hover,
.nlb-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}
