/* Global Styles */
body {
    font-family: 'Work Sans', sans-serif;
    color: #2c2c2c;
    /* Softer black */
    line-height: 1.8;
    /* More breathing room */
    background-color: #fafafa;
    /* Very light gray, not stark white */
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #000000;
}

/* Luxury Gold & Gradients */
.text-white {
    color: #ffffff !important;
}

.bg-gold {
    background: linear-gradient(135deg, #d4af37 0%, #e6cd7c 50%, #d4af37 100%) !important;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #e6cd7c 50%, #d4af37 100%);
    border: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.5s ease;
    background-size: 200% auto;
}

.btn-gold:hover {
    background-position: right center;
    /* Gradient animation */
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.letter-spacing-3 {
    letter-spacing: 3px;
}

/* Navbar Improvements */
.navbar {
    transition: all 0.4s ease-in-out;
    padding-top: 25px;
    padding-bottom: 25px;
    background-color: rgba(0, 0, 0, 0.6);
    /* Permanent semi-transparent black bar */
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    /* Darker when scrolled */
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    padding-top: 15px;
    padding-bottom: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
}

.brand-text .lighter {
    font-weight: 400;
    font-size: 1.2rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-right: 20px;
    transition: color 0.3s;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Added text shadow for menu */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #d4af37;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #d4af37 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 95vh;
    background: url('../img/page_images/unsplash_bd526508d3e7248eb78da197e38ef9ed.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger gradient overlay for better text contrast */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-title,
.hero-section h1,
.hero-section h5,
.hero-section p,
.page-hero h1,
.page-hero h5 {
    color: #ffffff !important;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 1);
    /* -webkit-text-stroke: 1px black; Removed for better clarity with overlay */
}

/* Universal Overlay for Hero Sections */
/* This ensures text is readable on ANY background image */
.page-hero {
    position: relative;
}

.hero-section::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 50% opacity black overlay */
    z-index: 0;
}

.hero-section *,
.page-hero * {
    position: relative;
    z-index: 1;
    /* Bring text above the overlay */
}

/* Scroll Reveal Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Initial Load Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Refined Cards */
.custom-hover-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
    background-color: white;
}

.custom-hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Card Image Overlays for Text Readability */
.card-img-overlay {
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    transition: background 0.3s;
}

.card:hover .card-img-overlay {
    background: rgba(0, 0, 0, 0.55);
    /* Darker on hover */
}

.card-img-overlay h3,
.card-img-overlay p,
.card-img-overlay .card-title,
.card-img-overlay .card-text {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    /* Strong text shadow */
    color: white !important;
    /* Ensure text is white */
}

.img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-top,
.card-img,
.hotel-list-img,
.list-img {
    transition: transform 0.8s ease;
}

.custom-hover-card:hover .card-img-top,
.custom-hover-card:hover .card-img,
.custom-hover-card:hover .hotel-list-img,
.custom-hover-card:hover .list-img {
    transform: scale(1.08);
}

.star-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #1a1a1a;
    padding: 8px 15px;
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-img-landscape {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.card-img-portrait {
    height: 580px;
    object-fit: cover;
    width: 100%;
}

/* Sidebar Filters */
.filter-sidebar {
    background-color: white;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

/* Footer */
footer {
    background-color: #0a0a0a !important;
}

footer h5,
footer h6 {
    color: white !important;
}

footer a.hover-white:hover {
    color: #e6cd7c !important;
    text-decoration: none !important;
    padding-left: 5px;
    transition: padding-left 0.3s;
}

.cursor-pointer {
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.cursor-pointer:hover {
    color: #d4af37;
    transform: translateY(-3px);
}

/* Input Fields */
.form-control,
.form-select {
    border-radius: 0;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #d4af37;
}

/* Search Box override */
.input-group-text {
    background: white;
    border-color: #e0e0e0;
    /* Match input border */
}

/* Page Headers with Background Images */
.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    /* Increase padding for better visual */
    margin-top: 0;
    /* Remove negative margins if any, handle navbar overlap via padding if needed */
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
    color: white !important;
}

.page-header-content h1,
.page-header-content p,
.page-header-content h2,
.page-header-content h3 {
    color: white !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
}

.header-destinations {
    background-image: url('../img/page_images/unsplash_f0bf981351ff0ed4c51ed3bdc5a81a88.jpg');
}

.header-hotels {
    background-image: url('../img/page_images/unsplash_c3178285790ba020fa1a5121ea18e6c2.jpg');
}

.header-restaurants {
    background-image: url('../img/page_images/unsplash_a8c72996f27640c462bfd54b8726c40b.jpg');
}

.header-spas {
    background-image: url('../img/page_images/unsplash_fcef16529ee94d2f7bb44e4677ae167f.jpg');
}

.header-cruises {
    background-image: url('../img/page_images/unsplash_8f9a551c25fe5c91b310f5b5489e12c7.jpg');
}

/* Detail Page Hero Overlay specifically */
.detail-hero {
    position: relative;
}

.detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.detail-hero-overlay h1,
.detail-hero-overlay p {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
    color: white !important;
}

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.auth-card {
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.form-check-input:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

.list-img,
.hotel-list-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* CKEditor Content Styles */
.ck-content .image {
    display: table;
    margin: 1em 0;
    clear: both;
}

.ck-content .image-style-side {
    float: right;
    margin-left: var(--ck-image-style-spacing);
    max-width: 50%;
}

.ck-content .image-style-align-left {
    float: left;
    margin-right: var(--ck-image-style-spacing);
}

.ck-content .image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

.ck-content .image-style-align-right {
    float: right;
    margin-left: var(--ck-image-style-spacing);
}

.ck-content .image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto !important;
}

.ck-content .image-style-side img {
    max-width: 100%;
    height: auto !important;
}

.ck-content .image_resized {
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.ck-content .image_resized img {
    width: 100% !important;
    height: auto !important;
}

.ck-content .image_resized>figcaption {
    display: block;
}

.ck-content figcaption {
    display: table-caption;
    caption-side: bottom;
    word-break: break-word;
    color: #555;
    background-color: #f7f7f7;
    padding: .6em;
    font-size: .75em;
    outline-offset: -1px;
}

:root {
    --ck-image-style-spacing: 1.5em;
}

/* Fix for side images and text flow */
.ck-content {
    overflow: hidden;
    /* Clearfix */
}

.ck-content p {
    margin-bottom: 1.5em;
}

.ck-content .image-style-side,
.ck-content .image-style-align-left,
.ck-content .image-style-align-right {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Navbar Hover Effect for Desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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