/* Shared Design System */
:root {
    --primary: var(--primary-color);
    --primary-strong: var(--primary-dark);
    --primary-light: var(--accent-color);
    --secondary: var(--text-secondary);
    --success: var(--success-color);
    --warning: var(--warning-color);
    --error: var(--danger-color);
    --background: var(--page-background);
    --surface: var(--surface-color);
    --border: var(--border-color);
    --border-light: var(--border-soft-color);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

/* Hero Section */
.detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    animation: fadeIn 0.4s ease-out;
}

@media (min-width: 768px) {
    .detail-hero {
        grid-template-columns: 400px 1fr;
        padding: 32px;
    }
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    box-shadow: var(--shadow-md);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.meta-badge i {
    color: var(--primary);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.action-bar {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: var(--background);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Section Styling */
.content-section {
    margin-bottom: 48px;
    animation: slideUp 0.5s ease-out;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Grid Layouts */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.room-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.room-thumb {
    height: 160px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-card:hover .room-thumb img {
    transform: scale(1.05);
}

.room-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.room-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.room-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
    background: var(--background);
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border);
}

.room-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary-sm:hover {
    background: var(--primary-strong);
    color: white;
}

.btn-secondary-sm {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--background);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    border: 2px dashed var(--border);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Viewer Modal */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-viewer-modal.show {
    opacity: 1;
}

.viewer-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-viewer-modal.show .viewer-content {
    transform: scale(1);
}

.viewer-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.viewer-close:hover,
.viewer-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
}

.viewer-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

/* Add cursor pointer to viewable images */
.hero-image,
.gallery-item img {
    cursor: zoom-in;
}

@media only screen and (max-width: 700px) {
    .viewer-content {
        width: 95%;
    }
}
