/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@300;400;600;700;900&display=swap');

/* === PAGE TRANSITION === */
.page-transition-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #f8f9fa; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.5s ease-in-out; }
.page-transition-overlay.is-active { opacity: 1; pointer-events: all; }

/* === CSS VARIABLES === */
:root {
    --primary-color: #d4a056;
    --secondary-color: #2c3e50;
    --buy-btn-color: #7e574a; 
    --light-bg-color: #f8f9fa;
    --dark-text-color: #333;
    --light-text-color: #fff;
    --footer-bg-color: #1f2b38;
    --font-family: 'Poppins', sans-serif;
    --buy-font-family: 'Montserrat', sans-serif; 
    --header-height: 90px;
}

/* === BASE & RESET === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--dark-text-color); line-height: 1.6; background-color: #fff; animation: pageFadeIn 0.5s ease-out; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* === GLOBAL LAYOUT === */
main { padding-top: var(--header-height); }
main > .section:last-of-type { padding-bottom: 80px; }
.hero { margin-top: calc(-1 * var(--header-height)); height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; color: var(--secondary-color); text-align: center; margin-bottom: 60px; }
.bg-light { background-color: var(--light-bg-color); }
.btn { display: inline-block; background-color: var(--primary-color); color: var(--light-text-color); padding: 12px 25px; border-radius: 5px; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn:hover { background-color: #b98b48; transform: translateY(-3px); }

/* --- SCROLLING POSITION FIX --- */
#home, #about, #services, #why-us, #projects { 
    scroll-margin-top: 120px; 
}

/* === HEADER & NAVIGATION === */
.header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.header.header-scrolled {}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.header.header-scrolled .navbar {
    background-color: #fff;
    border-radius: 16px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 10px;
    padding-left: 30px;
    padding-right: 30px;
}
.logo img { height: 55px; filter: brightness(0) invert(1); transition: filter 0.4s ease; }
.header.header-scrolled .logo img { filter: none; }
.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-link { font-weight: 600; color: var(--light-text-color); text-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: color 0.4s ease; position: relative; padding-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.header.header-scrolled .nav-link { color: var(--secondary-color); text-shadow: none; }
.nav-link:not(.cta)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); transform: scaleX(0); transform-origin: center; transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.nav-link:hover:not(.cta)::after, .nav-link.active:not(.cta)::after { transform: scaleX(1); }
.nav-link:hover { color: var(--primary-color) !important; }
.nav-link.cta {
    padding: 10px 20px;
    text-shadow: none;
    font-weight: 600;
}
.cta-primary {
    padding: 8px 18px; 
    background-color: var(--buy-btn-color);
    border: 2px solid var(--buy-btn-color);
    border-radius: 50px;
    font-family: var(--buy-font-family);
    transition: background-color 0.3s ease;
}
.cta-primary span {
    color: #fff;
    transition: color 0.3s ease;
}
.cta-primary:hover {
    background-color: #fff;
}
.cta-primary:hover span {
    color: var(--buy-btn-color) !important;
}
.cta-secondary {
    background-color: var(--primary-color);
    color: var(--light-text-color) !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.cta-secondary:hover {
    background-color: #b98b48;
    transform: translateY(-2px);
    color: var(--light-text-color) !important;
}
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--light-text-color); transition: all 0.3s ease-in-out; }
.header.header-scrolled .bar { background-color: var(--secondary-color); }

/* === HERO SECTION & OTHER PAGE STYLES === */
.hero { position: relative; display: flex; align-items: center; justify-content: center; color: var(--light-text-color); text-align: center; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-slideshow li { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slideshow li.active { opacity: 1; }
.hero-slideshow li img { width: 100%; height: 100%; object-fit: cover; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; }
.typing-text { color: var(--primary-color); font-weight: 600; }
.cursor { display: inline-block; background-color: var(--primary-color); width: 3px; animation: blink 1s infinite; }
@keyframes blink { 50% { background-color: transparent; } }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-image img { border-radius: 10px; }
.offers-section { background-color: var(--light-bg-color); }
.offer-item { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.offer-item:last-child { margin-bottom: 0; }
.offer-item:nth-child(even) .offer-image { order: 2; }
.offer-image { position: relative; display: block; border-radius: 10px; overflow: hidden; } /* Fix for overlay */
.offer-image img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.4s ease; }
.offer-image:hover img { transform: scale(1.05); }
.offer-location { display: block; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: var(--primary-color); letter-spacing: 1px; margin-bottom: 10px; }
.offer-content h3 { font-size: 2.2rem; color: var(--secondary-color); margin-bottom: 10px; }
.offer-spec { font-style: italic; color: #555; margin-bottom: 20px; }
.offer-content p { margin-bottom: 30px; }
.offer-content .btn { display: inline-flex; align-items: center; gap: 8px; }

/* === PROJECTS GRID === */
#projects .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
#projects .property-card {
    display: block;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#projects .property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
#projects .property-card-image {
    position: relative;
    height: 250px;
}
#projects .property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#projects .property-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(44, 62, 80, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}
#projects .property-card-info { padding: 20px; }
#projects .property-location {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
#projects .property-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}
#projects .property-specs {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
#projects .property-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
}
#projects .property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* === OTHER PAGE STYLES === */
.view-more-container { text-align: center; margin-top: 50px; }
.why-us-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.feature-item ion-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.feature-item h4 { font-size: 1.2rem; color: var(--secondary-color); margin-bottom: 10px; }
.page-header { text-align: center; margin-bottom: 60px; }
.page-title { font-size: 3rem; color: var(--secondary-color); }
.page-subtitle { font-size: 1.1rem; color: #555; max-width: 700px; margin: 10px auto 0; }
.about-page, .contact-page, .buy-page-header { padding-top: var(--header-height); padding-bottom: 0; }
.buy-page-header .page-header { margin-bottom: 0; }
.team-grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.team-card { background-color: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); text-align: center; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.team-card-image-wrapper { position: relative; }
.team-card-image-wrapper img { width: 100%; height: 300px; object-fit: cover; object-position: top center; }
.team-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(44, 62, 80, 0.7), transparent); opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: flex-end; justify-content: center; padding: 20px; }
.team-card:hover .team-card-overlay { opacity: 1; }
.team-card-overlay a { color: var(--light-text-color); font-size: 2rem; transform: translateY(20px); transition: transform 0.4s ease; }
.team-card:hover .team-card-overlay a { transform: translateY(0); }
.team-card-info { padding: 25px; }
.team-card-info h3 { font-size: 1.4rem; color: var(--secondary-color); margin-bottom: 5px; }
.team-title { font-weight: 600; color: var(--primary-color); margin-bottom: 15px; }
.team-desc { font-size: 0.9rem; color: #666; }
.contact-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: flex-start; }
.contact-heading { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 20px; }
.office-name { font-size: 1.1rem; font-weight: 600; color: var(--secondary-color); margin-bottom: 20px; margin-top: -10px; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 15px; border-radius: 5px; border: 1px solid #ddd; font-family: inherit; font-size: 1rem; color: #333; }
.contact-form select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708 .708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; }
.contact-form select:invalid { color: #666; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.map-placeholder iframe { border-radius: 10px; }
.contact-details { list-style: none; margin-top: 20px; }
.contact-details li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1rem; }
.contact-details ion-icon { color: var(--primary-color); font-size: 1.5rem; }
.contact-details a { color: #333; transition: color 0.3s; }
.contact-details a:hover { color: var(--primary-color); }
.filter-section { padding: 60px 0; border-bottom: 1px solid #eee;}
.filter-bar-container { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 20px; }
.filter-item input, .filter-item select { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background-color: #fff; color: var(--dark-text-color); font-family: var(--font-family); font-size: 1rem; appearance: none; -webkit-appearance: none; }
.filter-item select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708 .708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.filter-item input::placeholder { color: #777; }
.search-bar-wrapper { position: relative; }
.search-bar-wrapper ion-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #777; font-size: 1.2rem; }
.search-bar-wrapper input { padding-left: 45px; }
.property-grid-section { padding-top: 60px; }
#js-no-results-message { text-align: center; padding: 40px 20px; color: #777; grid-column: 1 / -1; }
#js-no-results-message h3 { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 10px; }

/* === PROPERTY DETAIL PAGE STYLES === */
.property-detail-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 50px; align-items: flex-start; }
.property-gallery .main-image { border-radius: 16px; overflow: hidden; margin-bottom: 15px; height: 500px; }
.property-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery-thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.property-gallery-thumbnails img { border-radius: 8px; cursor: pointer; opacity: 0.7; transition: opacity 0.3s ease; height: 120px; object-fit: cover; width: 100%; }
.property-gallery-thumbnails img:hover, .property-gallery-thumbnails img.active { opacity: 1; }
.property-detail-main h1 { font-size: 2.8rem; color: var(--secondary-color); margin-bottom: 5px; }
.property-detail-main .location-spec { font-size: 1.1rem; margin-bottom: 20px; }
.property-detail-main .property-stats { padding: 20px 0; margin: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.detail-section { margin-bottom: 40px; }
.detail-section h2 { font-size: 1.8rem; color: var(--secondary-color); margin-bottom: 20px; }
.features-list { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.features-list li { display: flex; align-items: center; gap: 10px; }
.features-list ion-icon { color: var(--buy-btn-color); font-size: 1.2rem; }
.amenities-list { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity-tag { background-color: #e9ecef; padding: 8px 15px; border-radius: 50px; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.property-detail-sidebar { background-color: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); position: sticky; top: 120px; }
.sidebar-widget-title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.sidebar-widget-price { font-size: 2.2rem; font-weight: 700; color: var(--buy-btn-color); margin-bottom: 15px; }
.sidebar-widget-info { font-size: 0.9rem; color: #777; margin-bottom: 20px; }
.sidebar-agents { display: flex; align-items: center; margin-bottom: 25px; }
.agent-photos { display: flex; }
.agent-photos img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; }
.agent-photos img:first-child { margin-left: 0; }
.agent-info { margin-left: 15px; font-size: 0.9rem; font-weight: 600; }
.agent-info span { display: block; font-weight: normal; color: #777; }
.sidebar-widget .btn { width: 100%; text-align: center; }

/* === FOOTER === */
.footer { color: #ccc; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 40px; padding: 50px; margin-bottom: 40px; background-color: var(--footer-bg-color); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.footer-logo img { height: 50px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-about { line-height: 1.7; font-size: 0.9rem; }
.footer-heading { font-size: 1.2rem; color: var(--light-text-color); margin-bottom: 20px; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a, .footer-contact a { transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-contact { display: flex; flex-direction: column; gap: 15px; font-size: 0.9rem; }
.footer-contact li { display: flex; align-items: start; gap: 10px; }
.footer-contact ion-icon { font-size: 1.2rem; color: var(--primary-color); margin-top: 4px; flex-shrink: 0; }
.social-links { display: flex; gap: 20px; }
.social-links a { font-size: 1.5rem; color: #ccc; transition: color 0.3s, transform 0.3s; }
.social-links a:hover { color: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { background-color: #f8f9fa; padding: 20px 0; }
.footer-bottom .container { text-align: center; }

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 992px) {
    .offer-item, .contact-content-grid, .property-detail-layout { grid-template-columns: 1fr; }
    .offer-item:nth-child(even) .offer-image { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar-container { grid-template-columns: 1fr 1fr; }
    .filter-bar-container .search-bar-wrapper { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .nav-menu { position: fixed; left: -100%; top: var(--header-height); flex-direction: column; background-color: #fff; width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1rem 0; }
    .hamburger { display: block; }
    .header.header-scrolled .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .header.header-scrolled .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .header.header-scrolled .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .about-content, .why-us-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-form .form-grid { grid-template-columns: 1fr; }
    .property-gallery .main-image { height: 350px; }
    .property-gallery-thumbnails { grid-template-columns: repeat(3, 1fr); }
    .features-list { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; }
}
@media (max-width: 576px) {
    .filter-bar-container { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .section-title, .page-title { font-size: 2rem; }
    .offer-content h3 { font-size: 1.8rem; }
}

/* === PARTNERS SECTION === */
.partners-section { padding: 60px 0; background-color: #fff; }
.logo-scroller { max-width: 1000px; margin: auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent); mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent); }
.logo-scroller-inner { display: flex; gap: 5rem; width: fit-content; animation: scroll 30s linear infinite; }
.logo-scroller:hover .logo-scroller-inner { animation-play-state: paused; }
.logo-scroller img { height: 40px; filter: grayscale(1); opacity: 0.6; transition: opacity 0.3s ease; }
.logo-scroller img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scroll { to { transform: translate(calc(-50% - 15px)); } }

/* === TESTIMONIALS SECTION === */
.testimonials-section { padding: 80px 0; }
.testimonials-content-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.testimonials-summary .sub-heading { text-transform: uppercase; color: var(--primary-color); font-weight: 600; margin-bottom: 0.5rem; display: inline-block; letter-spacing: 0.5px; }
.testimonials-summary h2 { font-family: 'Poppins', sans-serif; font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 1.5rem; color: var(--secondary-color); }
.testimonials-summary p { color: #555; line-height: 1.7; font-size: 1rem; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.testimonial-card { background-color: #fff; border-radius: 8px; padding: 1.75rem; border: 1px solid #e9e9e9; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.testimonial-stars { color: var(--primary-color); margin-bottom: 1rem; }
.testimonial-stars ion-icon { font-size: 1.1rem; }
.testimonial-text { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.author-info h5 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--secondary-color); }
.author-info p { margin: 0; font-size: 0.85rem; color: #777; }
@media (max-width: 992px) { .testimonials-content-wrapper { grid-template-columns: 1fr; gap: 2.5rem; } .testimonials-summary { text-align: center; } }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } .testimonials-summary h2 { font-size: 2.2rem; } }

/* === LANGUAGE TRANSLATOR STYLES === */
.language-switcher { position: relative; margin-left: 15px; }
.language-switcher-button { background: transparent; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--font-family); font-weight: 600; color: var(--light-text-color); text-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: color 0.4s ease; }
.language-switcher-button ion-icon { font-size: 1.2rem; }
.language-switcher-button .arrow { transition: transform 0.3s ease; }
.language-switcher.active .arrow { transform: rotate(180deg); }
.header.header-scrolled .language-switcher-button { color: var(--secondary-color); text-shadow: none; }
.language-dropdown { position: absolute; top: calc(100% + 15px); right: 0; background-color: #fff; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.15); padding: 10px 0; width: 140px; list-style: none; z-index: 1001; opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
.language-switcher.active .language-dropdown { opacity: 1; transform: translateY(0); visibility: visible; }
.language-dropdown .language-option { display: block; padding: 10px 20px; font-size: 0.95rem; color: var(--secondary-color); transition: background-color 0.2s ease, color 0.2s ease; }
.language-dropdown .language-option:hover { background-color: var(--light-bg-color); color: var(--primary-color); }

/* === CREDIT FOOTER STYLES === */
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.copyright { color: #777; font-size: 0.9rem; margin-right: auto; }
.credit-note { font-size: 0.8rem; color: #a0a0a0; text-align: right; margin-left: auto; }
.credit-note p { margin: 0; padding: 0; line-height: 1.5; }
.credit-note a { text-decoration: none; transition: color 0.3s ease; }
.credit-note .powered-by a { color: #4CAF50; font-weight: bold; }
.credit-note .developer-credit { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.credit-note .developer-credit a { color: #a0a0a0; font-size: 1.1rem; display: inline-flex; align-items: center; }
.credit-note .developer-credit a[aria-label="Instagram"]:hover { color: #E1306C; }
.credit-note .developer-credit a[aria-label="WhatsApp"]:hover { color: #25D366; }
.footer-bottom a[href*="admin.html"] { margin-left: 20px; flex-shrink: 0;}
@media (max-width: 768px) {
    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .copyright, .credit-note, .footer-bottom a[href*="admin.html"] {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
    .credit-note .developer-credit {
        justify-content: center;
    }
}

/* === 360 VIEW PAGE HOVER ANIMATION === */
.view360-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
}
.offer-image:hover .view360-overlay {
    opacity: 1;
}
.view360-overlay ion-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.view360-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* === LANGUAGE SPECIFIC FIXES (FINAL) === */
html[data-lang="ar"] .typing-text-wrapper {
    /* This makes the text and cursor appear as a single block for layout purposes */
    display: inline-flex; 
    /* This is the definitive fix: It sets the text direction to Right-to-Left, 
       which naturally places the cursor on the left without breaking word order. */
    direction: rtl;
}
html[data-lang="ar"] .hero-content p {
    direction: rtl; /* Ensures the whole line is RTL */
    text-align: center;
}
