/* Enhanced Luxury Hotel Design */

/* Custom Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
    --luxury-gold: #D4AF37;
    --luxury-dark-gold: #B8860B;
    --luxury-navy: #14213D;
    --luxury-cream: #F5F5F5;
    --luxury-white: #FFFFFF;
    --luxury-black: #000000;
    --luxury-charcoal: #333333;
    --luxury-blue: #0077b6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Layout */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                      url('https://dominacloud.microsystem.com.eg/photo/ai.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--luxury-cream);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

/* Header Section */
.header {
    background-color: rgba(20, 33, 61, 0.9);
    background-image: linear-gradient(135deg, rgba(20, 33, 61, 0.8), rgba(0, 0, 0, 0.7)), 
                      url('../images/sara-header.png');
    background-size: cover;
    background-position: center;
    color: var(--luxury-white);
    padding: 40px 0 25px;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--luxury-gold);
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    box-sizing: border-box;
}

.header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--luxury-gold);
}

.header-content {
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--luxury-white);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
    padding: 0 20px;
}

.header h1::before {
    content: '★';
    position: absolute;
    left: -15px;
    color: var(--luxury-gold);
    opacity: 0.6;
}

.header h1::after {
    content: '★';
    position: absolute;
    right: -15px;
    color: var(--luxury-gold);
    opacity: 0.6;
}

.header h1 span {
    position: relative;
}

.header h1 span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: var(--luxury-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 20px;
    font-weight: 300;
}

.personal-greeting {
    margin-top: 15px;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--luxury-gold);
    line-height: 1.5;
}

.greeting-subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--luxury-cream);
    margin-top: 5px;
    font-weight: 400;
}

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.language-dropdown {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--luxury-gold);
    color: var(--luxury-cream);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23D4AF37' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    text-align: center;
}

.language-dropdown:hover, .language-dropdown:focus {
    border-color: var(--luxury-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    outline: none;
}

.language-dropdown option {
    background-color: #121212;
    color: var(--luxury-cream);
    padding: 10px;
}

/* Country flag image styles */
.flag-icon {
    display: inline-block;
    width: 24px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Selected flag container */
.selected-flag-container {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-block;
    width: 24px;
    height: 18px;
}

/* Flag emoji fallback */
.flag-emoji {
    margin-right: 8px;
    font-size: 1.2em;
    display: none; /* Hide by default, show only if needed */
}

/* Custom dropdown styling */
.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.language-dropdown.with-flags {
    padding-left: 44px !important; /* Make room for the flag */
}

/* Main Content Styles */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Chat Section Styles */
.chat-section {
    background-color: rgba(20, 33, 61, 0.8);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 450px;
    animation: breathing 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin: 0 auto 30px;
    width: 90%;
    max-width: 900px;
    box-sizing: border-box;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    position: relative;
    z-index: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-image: url('../images/sara-header.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Completely transparent background */
    z-index: 1;
    pointer-events: none;
}

.message {
    position: relative;
    z-index: 2;
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 18px;
    margin-bottom: 8px;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    box-sizing: border-box;
}

.user-message {
    background-color: rgba(0, 119, 182, 0.9);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.sara-message {
    background-color: rgba(230, 230, 235, 0.95);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

.typing-indicator {
    background-color: rgba(245, 245, 245, 0.5);
    opacity: 0.7;
    font-style: italic;
}

.chat-input-container {
    display: flex;
    padding: 15px 20px;
    background-color: rgba(20, 33, 61, 0.9);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    align-items: center;
    flex-wrap: nowrap;
    box-sizing: border-box;
    width: 100%;
    position: relative;

    
  
}

#chat-input {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    
    flex: 1;
    min-width: 0; /* Allows the input to shrink below its content size */
    padding: 15px 20px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--luxury-charcoal);
    transition: var(--transition);
    box-sizing: border-box;
    margin-right: 10px; /* Add spacing between input and button */
    margin-left: 10px; 
}

#chat-input:focus {
    border-color: var(--luxury-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

#send-btn {
    background-color: var(--luxury-gold);
    color: var(--luxury-navy);
    border: none;
    border-radius: 50%;
    width: 40px; /* Smaller on mobile */
    height: 40px; /* Smaller on mobile */
    min-width: 40px;
    min-height: 40px;
    margin-left: 0; /* Remove margin */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

#send-btn:hover {
    background-color: var(--luxury-dark-gold);
    transform: scale(1.05);
}

/* Section Headers */
section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--luxury-gold);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--luxury-gold);
}

/* Service Cards Styles */
.services-section, .contact-section {
    padding: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    background-size: cover !important;
    background-position: center !important;
    background-blend-mode: overlay;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    /* border: 1px solid rgba(212, 175, 55, 0.3); */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 33, 61, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover::before {
    background: linear-gradient(to bottom, rgba(20, 33, 61, 0.4), rgba(0, 0, 0, 0.6));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--luxury-gold);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    color: var(--luxury-gold);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    border-radius: 0px;
    z-index: 1;
}

.service-card h3 {
    color: var(--luxury-white);
    margin-top: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Contact Cards Styles */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    /* border: 1px solid rgba(212, 175, 55, 0.3); */
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 33, 61, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
    transition: var(--transition);
}

.contact-card:hover::before {
    background: linear-gradient(to bottom, rgba(20, 33, 61, 0.4), rgba(0, 0, 0, 0.6));
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--luxury-gold);
}

.contact-card .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    color: var(--luxury-white);
    margin-top: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.whatsapp .card-icon {
    color: #25D366;
}

.telegram .card-icon {
    color: #0088cc;
}

.call-sara .card-icon {
    color: #0088cc;
}

/* Footer Styles */
.footer-container {
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    color: var(--luxury-cream);
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    opacity: 0.7;
    margin-top: 5px;
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .user-message {
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 5px;
}

html[dir="rtl"] .sara-message {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 5px;
}

html[dir="rtl"] .card-icon {
    margin-right: 0;
    margin-left: 5px;
}

html[dir="rtl"] .selected-flag-container {
    left: auto;
    right: 15px;
}

html[dir="rtl"] .language-dropdown.with-flags {
    padding-left: 15px !important;
    padding-right: 44px !important;
}

@media (max-width: 576px) {
    html[dir="rtl"] .selected-flag-container {
        right: 10px;
    }
    
    html[dir="rtl"] .language-dropdown.with-flags {
        padding-right: 35px !important;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .service-cards, .contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
    
    .service-cards, .contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .chat-section {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .service-cards, .contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .lang-btn {
        margin: 5px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .chat-section {
        height: 400px;
        width: 100%;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .service-card h3, .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 30px 0 20px;
    }
    
    .header h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .header p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-top: 10px;
    }
    
    .language-dropdown {
        min-width: 150px;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .selected-flag-container {
        left: 10px;
        width: 20px;
        height: 15px;
    }
    
    .language-dropdown.with-flags {
        padding-left: 35px !important;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
    
    .service-cards, .contact-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .chat-section {
        height: 320px;
        width: 95%;
        margin-bottom: 20px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .message {
        padding: 8px 12px;
        max-width: 85%;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .chat-input-container {
        padding: 10px 15px;
    }
    
    #chat-input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    #send-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }
    
    main {
        gap: 25px;
        padding-bottom: 40px;
    }
    
    section {
        margin-bottom: 5px;
    }
    
    section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .service-card, .contact-card {
        min-height: 120px;
        padding: 15px 10px;
        border-radius: 10px;
    }
    
    .card-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .service-card h3, .contact-card h3 {
        font-size: 1.1rem;
    }
    
    .footer-logo-img {
        max-width: 120px;
    }
    
    .footer-text {
        font-size: 0.65rem;
        padding: 0 10px;
    }
}

/* Extra small devices (phones under 400px) */
@media (max-width: 400px) {
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header p {
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        min-width: 140px;
        font-size: 0.8rem;
    }
    
    .chat-section {
        height: 300px;
        width: 98%;
    }
    
    .service-card, .contact-card {
        min-height: 100px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .service-card h3, .contact-card h3 {
        font-size: 1rem;
    }
}

/* Specific card background images */
.restaurants-card::before {
    content: none !important;
}

.restaurants-card {
    position: relative;
    background-image: url('https://dominacloud.microsystem.com.eg/photo/restaurant.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
}



.spa-card::before {
    content: none !important;
}

.spa-card {
    background-image: url('https://dominacloud.microsystem.com.eg/photo/spa.jpg');
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
}

.wifi-card::before {
    content: none !important;
}

.wifi-card {
    background-image: url('https://dominacloud.microsystem.com.eg/photo/wifi.jpg');
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
}

.complaint-card::before {
    content: none !important;
}

.complaint-card {
    background-image: url('https://dominacloud.microsystem.com.eg/photo/complaint.jpg');
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
}

.entertainment-card::before {
    content: none !important;
}

.entertainment-card {
    background-image: url('https://dominacloud.microsystem.com.eg/photo/entertainment.jpg');
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
}

.inclusive-card::before {
    content: none !important;
}

.inclusive-card {
    background-image: url('https://dominacloud.microsystem.com.eg/photo/all_inclusive.jpg');
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
}

.whatsapp-card::before {
    content: none !important;
}

.whatsapp-card {
    /* background-image: url('https://dominacloud.microsystem.com.eg/photo/whatsapp.jpg'); */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
}


.telegram-card {
    background-image: url('/static/images/telegram.svg');
    background-color: #14213D;
    background-size: cover;
    background-position: center;
}

/* Footer Logo Styling */
.footer-logo {
    text-align: center;
    margin: 0 auto 8px;
    max-width: 160px;
}

.footer-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo a {
    display: block;
    text-decoration: none;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Animation for Chat */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message {
    animation: fadeIn 0.3s ease-out;
}

/* Breathing animation for chatbot */
@keyframes breathing {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
}
}