/* Hotel Details Page - Professional Design */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --success-color: #10b981;
    --success-dark: #059669;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-family-primary: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-secondary: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-toast: 1080;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hotel-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.8) 0%,
        rgba(29, 78, 216, 0.6) 50%,
        rgba(15, 23, 42, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.9);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-200);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-location i {
    color: var(--secondary-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-hero,
.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--white);
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Content Section */
.hotel-details-content {
    padding: 4rem 0;
    background: var(--gray-100);
    min-height: 100vh;
}

.content-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.card-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.card-subtitle {
    color: var(--gray-600);
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
}

.card-content {
    padding: 2rem;
}

/* About Section */
.hotel-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin: 0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-200);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(1) contrast(1.05);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.8) 0%,
        rgba(29, 78, 216, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Gallery Loading State */
.gallery-item.loading {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Gallery Item Numbers */
.gallery-item::before {
    content: attr(data-index);
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 2rem;
}

/* Booking Card */
.booking-card {
    position: relative;
    overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0.05;
    z-index: 1;
}

.booking-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-bottom: none;
    position: relative;
    z-index: 2;
}

.booking-card .card-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-dark);
}

.booking-card .card-title {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.booking-card .card-title i {
    color: var(--secondary-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.booking-card .card-content {
    position: relative;
    z-index: 2;
}

.booking-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.125rem;
}

.feature-item span {
    color: var(--gray-700);
    font-weight: 500;
}

.btn-book-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-book-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-book-now:hover::before {
    left: 100%;
}

.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-book-now:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-book-now i {
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Hotel Info Card */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray-600);
}

.info-value {
    color: var(--gray-800);
    font-weight: 500;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    color: var(--secondary-color);
    font-size: 1rem;
}

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

.gallery-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Error Section */
.error-section {
    padding: 6rem 0;
    background: var(--gray-100);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    color: var(--danger-color);
    margin-bottom: 2rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-back-home:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) {
    .hotel-hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-location {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hotel-details-content {
        padding: 2rem 0;
    }

    .card-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    .lightbox-prev {
        left: -50px;
    }

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

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
}

/* Extra small screens (575px and below) */
@media (max-width: 575px) {
    .hotel-hero {
        height: 60vh;
        min-height: 450px;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-location {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        max-width: 250px;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .hotel-details-content {
        padding: 1.5rem 0;
    }

    .content-card {
        margin-bottom: 1.5rem;
        border-radius: var(--border-radius);
    }

    .card-header {
        padding: 1.25rem 1.25rem 0.5rem;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.125rem;
        gap: 0.5rem;
    }

    .hotel-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .feature-item {
        padding: 0.625rem 0;
    }

    .feature-item i {
        font-size: 1rem;
    }

    .btn-book-now {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .info-item {
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-prev {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-next {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-counter {
        bottom: 10px;
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .error-section {
        padding: 4rem 0;
    }

    .error-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .error-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .error-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-back-home {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Animation and Interaction Enhancements */
@media (prefers-reduced-motion: no-preference) {
    .content-card {
        animation: fadeInUp 0.6s ease-out;
    }

    .gallery-item {
        animation: fadeInScale 0.4s ease-out;
    }

    .gallery-item:nth-child(even) {
        animation-delay: 0.1s;
    }

    .gallery-item:nth-child(3n) {
        animation-delay: 0.2s;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Print Styles */
@media print {
    .hotel-hero {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }

    .hero-actions,
    .booking-card,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next,
    .scroll-indicator {
        display: none !important;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
