/* ===== Global Styles ===== */
:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --dark-bg: #1a1a1a;
    --light-gold: #F5E6D3;
    --text-light: #f8f9fa;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5E6D3; /* Warm beige/cream background - more warmth */
}

/* RTL Support */
.rtl-body {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Naskh Arabic', serif;
}

.ltr-body {
    direction: ltr;
    text-align: left;
}

/* ===== Luxury Navbar ===== */
.luxury-navbar {
    background: linear-gradient(135deg, #5C4A37 0%, #7A6B5A 100%) !important; /* Warm brown gradient */
    box-shadow: 0 2px 20px rgba(92, 74, 55, 0.3); /* Warm shadow */
    padding-top: 0 !important; /* No top padding */
    padding-bottom: 0 !important; /* No bottom padding */
    padding-left: 0 !important;
    padding-right: 0 !important;
    transition: all 0.3s ease;
    min-height: auto !important;
}

/* Reduce vertical spacing in navbar container */
.luxury-navbar .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Reduce vertical spacing in navbar nav */
.luxury-navbar .navbar-nav {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.luxury-navbar .navbar-nav .nav-item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.luxury-brand {
    font-size: 1.4rem; /* Balanced font size - KEEP AS IS */
    font-weight: 700;
    color: var(--primary-gold) !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding-top: 0 !important; /* No vertical padding */
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important; /* No vertical margin */
    margin-bottom: 0 !important;
}

.luxury-brand img {
    height: 140px !important; /* Balanced logo size - KEEP AS IS */
    width: auto;
    max-width: 350px; /* Reasonable max width */
    object-fit: contain;
    margin-right: 15px;
    margin-top: 0 !important; /* No vertical margin */
    margin-bottom: 0 !important;
}

.luxury-navbar .nav-link {
    color: rgba(255, 248, 240, 0.95) !important; /* Warm cream color */
    font-weight: 500;
    padding-top: 0 !important; /* No vertical padding - reduce space */
    padding-bottom: 0 !important;
    padding-left: 0.75rem !important; /* Keep horizontal padding */
    padding-right: 0.75rem !important;
    margin-top: 0 !important; /* No vertical margin */
    margin-bottom: 0 !important;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
    display: inline-block;
    font-size: 0.95rem !important; /* Readable font size - KEEP AS IS */
    line-height: 1.2;
}

.luxury-navbar .nav-link:hover,
.luxury-navbar .nav-link:focus {
    color: var(--primary-gold) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.luxury-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
}

.luxury-navbar .nav-link:hover::after {
    width: 80%;
}

/* Navbar toggler button */
.luxury-navbar .navbar-toggler {
    border-color: rgba(255, 248, 240, 0.5);
}

.luxury-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 248, 240, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.luxury-navbar .navbar-toggler:hover {
    border-color: var(--primary-gold);
}

/* Dropdown menu */
.luxury-navbar .dropdown-menu {
    background-color: #FFF8F0; /* Warm cream background */
    border: 1px solid rgba(92, 74, 55, 0.2);
    box-shadow: 0 4px 15px rgba(92, 74, 55, 0.2);
}

.luxury-navbar .dropdown-item {
    color: #5C4A37; /* Warm dark brown */
    transition: all 0.2s ease;
}

.luxury-navbar .dropdown-item:hover,
.luxury-navbar .dropdown-item:focus {
    background-color: rgba(212, 175, 55, 0.1);
    color: #5C4A37;
}

.luxury-navbar .dropdown-item.active {
    background-color: rgba(212, 175, 55, 0.2);
    color: #5C4A37;
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a; /* Fallback background color */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-slide:not([style*="background-image"]) {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.btn-luxury {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: #1a1a1a;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.6);
    color: #1a1a1a;
}

/* Warm outline button for cards */
.btn-outline-dark {
    border-color: #5C4A37 !important;
    color: #5C4A37 !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #5C4A37 !important;
    color: #FFF8F0 !important;
    border-color: #5C4A37 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(92, 74, 55, 0.3);
}

/* ===== Room Image Styles ===== */
.room-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
}

.room-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.room-thumbnails {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: #FFF8F0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 74, 55, 0.3) transparent;
}

.room-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.room-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.room-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(92, 74, 55, 0.3);
    border-radius: 3px;
}

.room-thumbnail-wrapper {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #fff;
}

.room-thumbnail-wrapper:hover {
    border-color: rgba(92, 74, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(92, 74, 55, 0.2);
}

.room-thumbnail-wrapper.active {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.room-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.room-thumbnail-wrapper:hover .room-thumbnail {
    transform: scale(1.1);
}

.room-thumbnail-wrapper.active .room-thumbnail {
    opacity: 1;
}

/* ===== Room Price Styles ===== */
.room-price {
    text-align: left;
    white-space: nowrap;
    margin-left: auto;
}

[dir="rtl"] .room-price {
    text-align: right;
    margin-left: 0;
    margin-right: auto;
}

.room-price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1.2;
    display: block;
}

.room-price-period {
    font-size: 0.75rem;
    color: #7A6B5A;
    font-weight: 500;
    display: block;
    margin-top: 1px;
}

/* ===== Room Amenities Styles ===== */
.room-amenities {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.room-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.room-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: default;
}

.room-amenity-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(92, 74, 55, 0.15);
}

.room-amenity-item i {
    font-size: 0.85rem;
    color: var(--primary-gold);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.room-amenity-name {
    font-size: 0.75rem;
    color: #5C4A37;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Room Special Features Styles ===== */
.room-special-features {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.room-special-features-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.room-special-features-header i {
    font-size: 0.85rem;
    color: var(--primary-gold);
}

.room-special-features-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5C4A37;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.room-special-features-text {
    font-size: 0.8rem;
    color: #7A6B5A;
    line-height: 1.4;
    margin: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border-left: 2px solid var(--primary-gold);
}

[dir="rtl"] .room-special-features-text {
    border-left: none;
    border-right: 2px solid var(--primary-gold);
}

/* Responsive adjustments for amenities */
@media (max-width: 576px) {
    .room-amenities-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .room-price-amount {
        font-size: 1.25rem;
    }
    
    .room-price-period {
        font-size: 0.75rem;
    }
}

/* ===== Section Styles ===== */
.luxury-section {
    padding: 6rem 0;
}

.bg-warm {
    background-color: #F5E6D3 !important; /* Warm beige/cream background */
}

.bg-light {
    background-color: #FAF0E6 !important; /* Warmer cream for sections - more warmth */
}

/* Warm text colors for sections */
.luxury-section h3,
.luxury-section h4,
.luxury-section h5 {
    color: #5C4A37; /* Warm dark brown */
}

.luxury-section p {
    color: #7A6B5A; /* Warm medium brown */
}

.luxury-section ul li {
    color: #7A6B5A; /* Warm medium brown */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5C4A37; /* Warm dark brown for titles */
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7A6B5A; /* Warm medium brown for subtitles */
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Card Styles ===== */
.luxury-card {
    background: #FFF8F0; /* Warm off-white/cream for cards */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(92, 74, 55, 0.15); /* Warm shadow */
    border: 1px solid rgba(212, 175, 55, 0.1); /* Subtle gold border */
    transition: all 0.3s ease;
    height: 100%;
}

.luxury-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(92, 74, 55, 0.25); /* Warmer shadow on hover */
    border-color: rgba(212, 175, 55, 0.3); /* More visible gold border on hover */
}

.luxury-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.luxury-card-body {
    padding: 1rem;
    background: #FFF8F0; /* Warm off-white/cream */
}

.luxury-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5C4A37; /* Warm dark brown for card titles */
    margin-bottom: 0.5rem;
}

.luxury-card-text {
    color: #7A6B5A; /* Warm medium brown for card text */
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.luxury-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.luxury-footer a:hover {
    color: var(--primary-gold) !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .luxury-card-body {
        padding: 0.75rem;
    }
    
    .luxury-card-title {
        font-size: 1.1rem;
    }
    
    .luxury-card-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .luxury-section {
        padding: 4rem 0;
    }
    
    .luxury-navbar .luxury-brand {
        font-size: 1.1rem;
    }
    
    .luxury-navbar .luxury-brand img {
        height: 100px !important;
        margin-right: 10px !important;
    }
    
    .luxury-navbar .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem !important;
    }
    
    .room-image-container {
        height: 180px;
    }
    
    .room-thumbnail-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .room-price-amount {
        font-size: 1.1rem;
    }
    
    .room-price-period {
        font-size: 0.7rem;
    }
    
    .luxury-card-body {
        padding: 0.75rem;
    }
    
    main[role="main"] {
        margin-top: 60px !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .luxury-section {
        padding: 3rem 0;
    }
    
    .luxury-navbar .luxury-brand {
        font-size: 0.95rem;
    }
    
    .luxury-navbar .luxury-brand img {
        height: 80px !important;
        margin-right: 8px !important;
    }
    
    .luxury-navbar .nav-link {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem !important;
    }
    
    .room-image-container {
        height: 160px;
    }
    
    .room-thumbnail-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .room-thumbnails {
        padding: 6px;
        gap: 4px;
    }
    
    .luxury-card-body {
        padding: 0.6rem;
    }
    
    .luxury-card-title {
        font-size: 1rem;
    }
    
    .luxury-card-text {
        font-size: 0.8rem;
    }
    
    .room-price-amount {
        font-size: 1rem;
    }
    
    .room-price-period {
        font-size: 0.65rem;
    }
    
    .room-amenity-item {
        padding: 0.3rem;
    }
    
    .room-amenity-item i {
        font-size: 0.75rem;
        width: 16px;
    }
    
    .room-amenity-name {
        font-size: 0.7rem;
    }
    
    .room-special-features-title {
        font-size: 0.75rem;
    }
    
    .room-special-features-text {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .btn-outline-dark {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem !important;
    }
    
    main[role="main"] {
        margin-top: 50px !important;
    }
    
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-indicators {
        bottom: 15px;
    }
    
    .hero-indicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    .hero-indicators .indicator.active {
        width: 25px;
    }
}

/* ===== Hero Indicators ===== */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicators .indicator.active {
    background-color: var(--primary-gold);
    width: 30px;
    border-radius: 6px;
}

.hero-indicators .indicator:hover {
    background-color: rgba(212, 175, 55, 0.7);
}

/* ===== Utilities ===== */
.text-gold {
    color: var(--primary-gold) !important;
}

.bg-gold {
    background-color: var(--primary-gold) !important;
}

.bg-dark-custom {
    background-color: var(--dark-bg) !important;
}
