/* Listing Layout Styles - Based on hotelsdalaman.com reference */

/* Breadcrumb */
.breadcrumb {
    background: #f5f5f5;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* Listing Hero */
.listing-hero {
    background: #fff;
    padding: 2rem 0;
}

.listing-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.listing-hero__header {
    margin-bottom: 1.5rem;
}

.listing-hero__title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem;
}

.listing-hero__address {
    color: #666;
    font-size: 0.9rem;
}

.listing-hero__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.listing-hero__image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.listing-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Check Availability Button - Top Left */
.listing-hero__check-availability {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: #0066cc;
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,102,204,0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.listing-hero__check-availability:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,102,204,0.6);
}

.listing-hero__gallery-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.listing-hero__gallery-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Booking Widget */
.booking-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.booking-widget__rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.booking-widget__rating-badge {
    background: #00aa00;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
}

.booking-widget__reviews {
    color: #666;
    font-size: 0.85rem;
}

.booking-widget__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-widget__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.booking-widget__field input,
.booking-widget__field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.booking-widget__submit {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

.booking-widget__submit:hover {
    background: #0052a3;
}

/* Listing Navigation */
.listing-nav {
    background: #fff;
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.listing-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
}

.listing-nav__link {
    padding: 1rem 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.listing-nav__link:hover,
.listing-nav__link.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Listing Sections */
.listing-section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.listing-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.listing-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1.5rem;
}

.listing-section__content {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.listing-section__content p {
    margin-bottom: 1rem;
}

.listing-section__content ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.listing-section__content li {
    margin-bottom: 0.5rem;
}

/* Map */
.listing-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-item li {
    padding: 0.4rem 0;
    color: #666;
    font-size: 0.95rem;
}

.feature-item li:before {
    content: "✓ ";
    color: #00aa00;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Photo Gallery */
.listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.listing-gallery__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.listing-gallery__item:hover {
    transform: scale(1.02);
}

.listing-gallery__item:hover .listing-gallery__overlay {
    opacity: 1;
}

.listing-gallery__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.listing-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.listing-gallery__overlay span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox__caption {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
}

.lightbox__counter {
    color: #bbb;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox__close:hover {
    color: #f00;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    color: #0066cc;
}

.lightbox__prev {
    left: 1rem;
}

.lightbox__next {
    right: 1rem;
}

/* Reviews */
.reviews-summary {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.reviews-summary__score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.reviews-summary__badge {
    background: #00aa00;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
}

.reviews-summary__rating {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.reviews-summary__count {
    color: #666;
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.review-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-item__header strong {
    font-size: 1.05rem;
    color: #333;
}

.review-item__score {
    background: #00aa00;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-item__text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.review-item__author {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item__question {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    list-style: none;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-item__question:hover {
    background: #efefef;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__answer {
    padding: 0 1.25rem 1.25rem;
    color: #555;
    line-height: 1.6;
}

.faq-item[open] .faq-item__question {
    background: #e8e8e8;
}

/* Related Hotels */
.related-hotels {
    background: #f5f5f5;
    padding: 3rem 0;
}

.related-hotels__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}

.related-hotels__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.related-hotels__subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.related-hotels__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-hotel-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.related-hotel-card h3 {
    font-size: 1.25rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.related-hotel-card__stars {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.related-hotel-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .listing-hero__content {
        grid-template-columns: 1fr;
    }

    .listing-hero__title {
        font-size: 1.5rem;
    }

    .listing-nav__inner {
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .listing-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .listing-section {
        padding: 2rem 0;
    }

    .listing-section__title {
        font-size: 1.4rem;
    }

    .listing-gallery {
        grid-template-columns: 1fr;
    }

    .listing-hero__gallery-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

/* Footer Listing Style */
.site-footer--listing {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

.site-footer--listing .site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #34495e;
    border-radius: 4px;
    background: #34495e;
    color: #fff;
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: #95a5a6;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-payment span {
    font-size: 0.85rem;
    color: #bdc3c7;
}

.footer-payment img {
    height: 25px;
    width: auto;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #95a5a6;
    margin: 0;
}

.footer-copyright a {
    color: #3498db;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-payment {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lightbox__close {
        font-size: 2rem;
        top: 0.5rem;
        right: 1rem;
    }

    .lightbox__prev,
    .lightbox__next {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox__prev {
        left: 0.5rem;
    }

    .lightbox__next {
        right: 0.5rem;
    }

    .lightbox__content img {
        max-height: 70vh;
    }

    .lightbox {
        padding: 1rem;
    }
}
