/* 
 * Parkview Hotel - Enhanced Stylesheet
 * Premium & Modern Design - 2025
 */

:root {
    /* Primary Colors */
    --primary-color: #011F5B;
    --primary-light: #0a2f7a;
    --primary-dark: #000f3a;

    /* Secondary Colors */
    --secondary-color: #FADA5E;
    --secondary-light: #fceb8f;
    --secondary-dark: #e8c43d;

    /* Accent Colors */
    --accent-blue: #4169E1;
    --accent-color: #f8f9fa;
    --accent-dark: #e9ecef;

    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #ffffff;
    --text-muted: #6c757d;

    /* Background Colors */
    --background-light: #ffffff;
    --background-dark: #0a0a0a;
    --background-overlay: rgba(1, 31, 91, 0.85);

    /* Border & Divider */
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-4xl) 0;
}

.section-sm {
    padding: var(--spacing-3xl) 0;
}

.section-lg {
    padding: var(--spacing-4xl) 0;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-gold {
    color: var(--secondary-color);
}

.text-navy {
    color: var(--primary-color);
}

.text-blue {
    color: var(--accent-blue);
}

.text-muted {
    color: var(--text-muted);
}

.bg-light {
    background-color: var(--accent-color);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.bg-gold {
    background-color: var(--secondary-color);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-md);
}

.mb-2 {
    margin-bottom: var(--spacing-xl);
}

.mb-3 {
    margin-bottom: var(--spacing-2xl);
}

.mb-4 {
    margin-bottom: var(--spacing-3xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-md);
}

.mt-2 {
    margin-top: var(--spacing-xl);
}

.mt-3 {
    margin-top: var(--spacing-2xl);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
}

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

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.card-body {
    padding: var(--spacing-xl);
}

.card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-md);
}

.card-text {
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-lg) 0;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: var(--spacing-md) 0;
    background-color: var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--text-light);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    padding: var(--spacing-sm) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.mobile-toggle {
    display: none;
    color: var(--text-light);
    font-size: var(--text-2xl);
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    /* Allow growth if content is tall */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    /* Keep hidden for slider but ensure content fits or scrolls */
    padding-top: 100px;
    /* More space for fixed navbar */
    padding-bottom: 20px;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero {
        height: auto;
        /* Let it grow */
        min-height: 100vh;
        justify-content: flex-end;
        /* Push content to bottom/center */
        padding-top: 120px;
        /* Clear navbar */
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Smaller title */
        margin-bottom: 0.5rem;
    }

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

    .booking-bar {
        margin: 0 0 20px 0;
        width: 100%;
        border-radius: 20px;
    }
}

/* Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    animation: slideAnimation 25s infinite;
}

/* Stagger animations for 5 slides (5s each, 25s total) */
.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

.hero-slide:nth-child(4) {
    animation-delay: 15s;
}

.hero-slide:nth-child(5) {
    animation-delay: 20s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    4% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    24% {
        opacity: 0;
        transform: scale(1.1);
        /* Zoom Effect */
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Dark Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Dark overlay preference - increased for better contrast */
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2rem;
}

/* Hero Text Content */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero h1 {
    color: var(--text-light);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-xl);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: var(--text-xl);
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Booking Bar Updates for Hero Positioning */
.booking-bar {
    margin-top: auto;
    /* Push to bottom */
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 28px 35px;
    /* Increased padding for more height */
    border-radius: 50px;
    /* Pill shape looks modern */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease 0.4s both;
    width: 100%;
    max-width: 1100px;
}

.booking-bar .form-control {
    height: 56px;
    /* Increased height */
    border-radius: 28px;
    /* Rounded inputs inside pill */
    padding-left: 20px;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.booking-bar .form-control:focus {
    background: #fff;
    border-color: var(--secondary-color);
}

.booking-bar button {
    height: 56px;
    /* Increased to match form controls */
    border-radius: 28px;
    font-size: 1rem;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Header (Internal Pages) */
.page-header {
    position: relative;
    min-height: 45vh;
    /* Allow growth */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-4xl);
    padding-top: 60px;
    /* Navbar space */
    padding-bottom: 2rem;
}

/* Mobile Responsiveness for Page Header */
@media (max-width: 768px) {
    .page-header {
        min-height: 40vh;
        height: auto;
        padding-top: 100px;
        /* Clear navbar */
        background-attachment: scroll;
        /* Fix for mobile fixed bg issues */
    }

    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 15px;
        /* Side padding */
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 31, 91, 0.85) 0%, rgba(1, 31, 91, 0.7) 100%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-blue), var(--secondary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-2xl);
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-lg);
}

.footer ul li {
    margin-bottom: var(--spacing-sm);
    line-height: 2;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer ul li i {
    margin-right: var(--spacing-sm);
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-xl);
    text-align: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary-color);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: var(--transition-base);
    background-color: var(--background-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(250, 218, 94, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--text-3xl);
    opacity: 0;
    transition: var(--transition-base);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: var(--text-4xl);
    color: var(--text-light);
    cursor: pointer;
    z-index: 1;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: var(--spacing-xl);
        text-align: center;
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }

    .hero {
        min-height: 70vh;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .btn {
        padding: 12px 24px;
        font-size: var(--text-sm);
    }
}

/* Booking Bar */
.booking-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.booking-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}

.booking-bar .form-control {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 0.9rem;
}

.booking-bar label {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
    text-align: left;
}

.booking-bar button {
    height: 46px;
    /* Match input height roughly */
    white-space: nowrap;
    min-width: 180px;
}

@media (max-width: 768px) {
    .booking-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-bar button {
        width: 100%;
    }
}

/* Booking Summary Card */
.booking-summary-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.summary-row.total {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}