/**
 * Hotel Gallery & Pro/Con Styles
 * 
 * Includes:
 * - Image gallery with lightbox
 * - Pro/Con section styling
 * - Extended description styles
 * 
 * @package HotellStockholm
 */

/* ==========================================================================
   GALLERY SECTION (Full Width)
   ========================================================================== */

.hs-gallery-section {
    background: var(--gray-50, #f9fafb);
    padding: 2rem 0;
    margin-bottom: 0;
}

/* ==========================================================================
   IMAGE GALLERY
   ========================================================================== */

.hs-gallery {
    margin: 0;
}

.hs-gallery__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hs-gallery__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hs-gallery__title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.hs-gallery__count {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 400;
}

.hs-gallery__view-all {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.hs-gallery__view-all:hover {
    color: var(--primary-dark);
}

.hs-gallery__view-all svg {
    width: 16px;
    height: 16px;
}

/* Gallery Grid */
.hs-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 150px);
    gap: 0.5rem;
    border-radius: 1rem;
    overflow: hidden;
}

.hs-gallery__grid--has-hero {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 150px 150px;
}

.hs-gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-100);
}

.hs-gallery__item--hero {
    grid-column: 1;
    grid-row: 1 / -1;
}

.hs-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hs-gallery__item:hover img {
    transform: scale(1.05);
}

.hs-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.hs-gallery__item:hover::after {
    opacity: 1;
}

/* More photos overlay */
.hs-gallery__more {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: background 0.3s;
}

.hs-gallery__more:hover {
    background: rgba(0,0,0,0.75);
}

.hs-gallery__more svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.hs-gallery__more span {
    font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hs-gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 120px 120px;
    }
    
    .hs-gallery__grid--has-hero {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 120px 120px;
    }
    
    .hs-gallery__item--hero {
        grid-row: 1 / -1;
    }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.hs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.hs-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.hs-lightbox__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
}

.hs-lightbox__counter {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

.hs-lightbox__close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.hs-lightbox__close:hover {
    background: rgba(255,255,255,0.1);
}

.hs-lightbox__close svg {
    width: 24px;
    height: 24px;
}

.hs-lightbox__content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
}

.hs-lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.hs-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.hs-lightbox__nav:hover {
    background: rgba(255,255,255,0.2);
}

.hs-lightbox__nav--prev {
    left: 1rem;
}

.hs-lightbox__nav--next {
    right: 1rem;
}

.hs-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

/* Thumbnails strip */
.hs-lightbox__thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    overflow-x: auto;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.hs-lightbox__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 0.25rem;
    overflow: hidden;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.hs-lightbox__thumb.active,
.hs-lightbox__thumb:hover {
    opacity: 1;
    border-color: white;
}

.hs-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .hs-lightbox__content {
        padding: 0 1rem;
    }
    
    .hs-lightbox__nav {
        padding: 0.75rem;
    }
    
    .hs-lightbox__nav--prev {
        left: 0.5rem;
    }
    
    .hs-lightbox__nav--next {
        right: 0.5rem;
    }
    
    .hs-lightbox__thumbs {
        display: none;
    }
}

/* ==========================================================================
   PRO/CON SECTION
   ========================================================================== */

.hs-proscons {
    margin: 2.5rem 0;
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
}

.hs-proscons__header {
    text-align: center;
    margin-bottom: 2rem;
}

.hs-proscons__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.hs-proscons__subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.hs-proscons__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hs-proscons__column {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hs-proscons__column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.hs-proscons__column-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-proscons__column--pros .hs-proscons__column-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.hs-proscons__column--cons .hs-proscons__column-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.hs-proscons__column-icon svg {
    width: 20px;
    height: 20px;
}

.hs-proscons__column-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.hs-proscons__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hs-proscons__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.hs-proscons__item:not(:last-child) {
    border-bottom: 1px solid var(--gray-50);
}

.hs-proscons__item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.hs-proscons__column--pros .hs-proscons__item-icon {
    color: #16a34a;
}

.hs-proscons__column--cons .hs-proscons__item-icon {
    color: #dc2626;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hs-proscons {
        padding: 1.5rem;
    }
    
    .hs-proscons__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hs-proscons__column {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   EXTENDED DESCRIPTION
   ========================================================================== */

.hs-description {
    margin: 2rem 0;
}

.hs-description__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.hs-description__content p {
    margin-bottom: 1.25rem;
}

.hs-description__content p:last-child {
    margin-bottom: 0;
}

/* Read more toggle */
.hs-description__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    margin-top: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.hs-description__toggle:hover {
    color: var(--primary-dark);
}

.hs-description__toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.hs-description__toggle.expanded svg {
    transform: rotate(180deg);
}

.hs-description__extended {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.hs-description__extended.show {
    max-height: 500px;
}

/* ==========================================================================
   IMAGE CATEGORIES TABS (optional)
   ========================================================================== */

.hs-gallery__tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.hs-gallery__tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.hs-gallery__tab:hover,
.hs-gallery__tab.active {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   LOADING SKELETON
   ========================================================================== */

.hs-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hs-gallery__item.hs-skeleton {
    min-height: 150px;
}

.hs-proscons__item.hs-skeleton {
    height: 40px;
    border-radius: 0.25rem;
}
