:root {
    --gold: #b9892f; /* slightly muted gold for a premium look */
    --card-bg-start: #0f1112;
    --card-bg-end: #050607;
    --muted-white: rgba(255,255,255,0.9);
    --muted-gray: rgba(255,255,255,0.12);
    --accent-border: rgba(185,137,47,0.12);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #e6e7e8 0%, #cfcfcf 100%); /* subtle neutral background */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

body { display: flex; align-items: center; justify-content: center; padding: 18px; }

/* Main card */
.main-body-card {
    width: 100%;
    max-width: 420px;
    height: 96vh;
    background: linear-gradient(180deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--accent-border);
    box-shadow: 0 10px 30px rgba(10,10,10,0.45);
    backdrop-filter: blur(6px);
    overflow: hidden; /* Prevents content from exceeding card boundaries */
}

/* Arabic font (Cairo) for RTL pages */
html[lang="ar"], [dir="rtl"] {
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Logo & Title */
.logo-main { 
    width: 72px; 
    height: 72px; 
    margin: 6px auto 2px; 
    border-radius: 50%; /* Makes logo circular */
    background: rgba(255, 255, 255, 0.03); /* Subtle background circle */
    /* border: 2px solid var(--gold);  Gold border for logo circle */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-main img { 
    width: 85%; 
    height: 85%; 
    object-fit: contain; 
}

.hotel-title { font-size: 1.05rem; color: var(--gold); text-align: center; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.6px; line-height: 1.05; }

/* Prevent uppercase for Arabic */
[lang="ar"] .hotel-title { text-transform: none; }

/* Hero */
.hero-split {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
    border: 1px solid rgba(255,255,255,0.03);
    flex-shrink: 0; /* Prevent shrinking */
}
.hero-left { flex: 1; }
.hero-left img { width: 100%; height: 100%; mask-image: linear-gradient(to right, black 72%, transparent 100%); -webkit-mask-image: linear-gradient(to right, black 72%, transparent 100%); }
.hero-right { flex: 2; padding: 14px; display: flex; align-items: center; }
.hotel-desc { font-size: 0.80rem; color: rgba(255,255,255,0.92); text-align: justify; line-height: 1.5; }

/* Details / Actions - scrollable container */
.actions-area { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    padding-top: 8px;
    flex: 1; /* Allow this section to grow/shrink */
    overflow-y: auto; /* Make it scrollable if content overflows */
    overflow-x: hidden;
    padding-right: 4px; /* Small margin for scrollbar */
}

/* Scrollbar styling */
.actions-area::-webkit-scrollbar {
    width: 4px;
}
.actions-area::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
}
.actions-area::-webkit-scrollbar-thumb {
    background: rgba(185,137,47,0.25);
    border-radius: 10px;
}
.actions-area::-webkit-scrollbar-thumb:hover {
    background: rgba(185,137,47,0.4);
}

details { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--accent-border); 
    border-radius: 10px; 
    color: var(--gold);
    flex-shrink: 0; /* Prevent details from shrinking */
}
summary { 
    padding: 12px; 
    font-size: 0.86rem; 
    font-weight: 600; 
    cursor: pointer; 
    list-style: none; 
    color: var(--gold); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
summary i { color: var(--gold); font-size: 0.95rem; }

/* Dropdown content */
.dropdown-content { 
    padding: 10px; 
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25)); 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    border-radius: 8px;
}

/* Contact rows */
.contact-split-row {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px; 
    background: rgba(255, 255, 255, 0.02); 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.02);
}
.contact-name { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--muted-white); 
    text-transform: none; 
}
.contact-action { display: flex; gap: 8px; align-items: center; }

/* Icon buttons */
.btn-icon {
    background: var(--gold); 
    color: #0b0b0b; 
    width: 36px; 
    height: 36px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 10px; 
    text-decoration: none; 
    font-size: 0.95rem; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Map */
.map-box { 
    height: 120px; 
    border-radius: 10px; 
    overflow: hidden; 
    border: 1px solid var(--accent-border); 
}

/* Carousel */
.carousel-wrapper { 
    position: relative; 
    width: 100%; 
    margin-top: 8px;
    flex-shrink: 0; /* Prevent carousel from shrinking */
}
.carousel-container { 
    display: flex; 
    overflow-x: hidden; 
    gap: 10px; 
    scroll-behavior: smooth; 
    padding: 6px 0; 
}
.carousel-item { 
    flex: 0 0 calc(50% - 6px); 
    height: 110px; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.04); 
    background: rgba(0,0,0,0.06); 
    cursor: zoom-in; 
}
.carousel-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 300ms ease; 
}
.carousel-item:hover img { transform: scale(1.03); }

/* Slider arrows */
.slider-arrow { 
    position: absolute; 
    top: 46%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.65); 
    color: var(--gold); 
    border: none; 
    padding: 8px 8px; 
    z-index: 12; 
    border-radius: 8px; 
    cursor: pointer; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.5); 
}
.arrow-left { left: -8px; } 
.arrow-right { right: -8px; }

/* Footer */
footer { 
    text-align: center; 
    font-size: 0.64rem; 
    color: rgba(255,255,255,0.4); 
    padding-top: 8px;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Photo modal */
#photo-modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.92); 
    align-items: center; 
    justify-content: center; 
}
#photo-modal[style*="display: flex"] { animation: fadeIn 180ms ease both; }
#modal-img { 
    max-width: 92%; 
    max-height: 84%; 
    border: 3px solid var(--gold); 
    border-radius: 12px; 
    box-shadow: 0 14px 40px rgba(0,0,0,0.6); 
}

/* Language Switcher Styling */
.lang-switcher {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 100;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-switcher a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255,255,255,0.03);
    padding: 6px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.03);
}

/* Header top nav (language button) */
.header-top-nav {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 6px;
    flex-shrink: 0;
}
.lang-btn {
    background: var(--gold);
    color: #0b0b0b !important;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.03);
}

/* RTL specific adjustments */
[dir="rtl"] .hero-left img {
    mask-image: linear-gradient(to left, black 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 72%, transparent 100%);
}

/* Icon spacing for RTL */
[dir="rtl"] summary i {
    margin-left: 10px;
    margin-right: 0;
}

/* Ensure arrows maintain visual sides on RTL and flip icons */
[dir="rtl"] .arrow-left {
    right: -8px;
    left: auto;
    transform: translateY(-50%) rotate(180deg);
}
[dir="rtl"] .arrow-right {
    left: -8px;
    right: auto;
    transform: translateY(-50%) rotate(180deg);
}

/* Small animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive tweaks */
@media (max-width: 420px) {
    .hero-split { height: 120px; }
    .carousel-item { height: 100px; }
    .hotel-title { font-size: 1rem; }
    .logo-main { width: 68px; height: 68px; }
}
/* Animation for the icons sliding in */
@keyframes iconSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in {
    animation: iconSlide 0.5s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
}

/* Text change effect */
.label-update {
    animation: textFade 0.4s ease-in-out;
}

@keyframes textFade {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Highlight the email address to make it stand out */
.email-text {
    color: #fff !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px;
}
/* Animation when the text changes */
.label-update {
    animation: textFade 0.4s ease-in-out;
}

@keyframes textFade {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Ensures the long email fits the card width */
.email-text {
    color: #fff !important;
    font-size: 0.7rem !important;
    letter-spacing: 0px;
    white-space: nowrap;
}

/* The slide-in effect for icons */
@keyframes iconSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in {
    animation: iconSlide 0.5s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
}