/* Luna Verde - Responsive Bilingual Stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333; line-height: 1.6; background: #fff;
}
[dir="rtl"] body {
    font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
}
a { color: #d44429; text-decoration: none; transition: color 0.2s; }
a:hover { color: #a03020; text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
h1, h2, h3 { color: #222; line-height: 1.3; margin-bottom: 0.5em; }
h2 { font-size: 1.5rem; border-bottom: 2px solid #d44429; padding-bottom: 0.3em; display: inline-block; margin-bottom: 0.8em; }
p { margin-bottom: 1em; }

/* Layout */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #1a1a1a; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.logo { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; text-decoration: none; }
.logo:hover { color: #d44429; text-decoration: none; }

/* Nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; background: #fff; height: 3px; width: 26px; border-radius: 2px; position: relative; transition: all 0.3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
    display: block; padding: 8px 12px; color: #ccc; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; border-radius: 3px; transition: background 0.2s, color 0.2s; text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { background: #d44429; color: #fff; text-decoration: none; }
.lang-switch a { background: #333; color: #ffd700 !important; border-radius: 3px; }
.lang-switch a:hover { background: #555; }

/* Hero */
.page-hero {
    background-size: cover; background-position: center; position: relative;
    padding: 60px 0; color: #fff; text-align: center;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 0.3em; }
.page-hero .tagline { font-size: 1.1rem; color: #ddd; max-width: 700px; margin: 0 auto; }

/* Content */
.content-section { padding: 35px 0; }
.two-column { display: flex; gap: 40px; }
.col-left { flex: 1; min-width: 0; }
.col-right { flex: 1; min-width: 0; }

/* RTL two-column: flip */
[dir="rtl"] .two-column { flex-direction: row-reverse; }

/* Info cards */
.info-card { background: #f9f7f4; border-radius: 8px; padding: 25px; margin-bottom: 20px; border-left: 4px solid #d44429; }
[dir="rtl"] .info-card { border-left: none; border-right: 4px solid #d44429; }

/* Feature list */
.feature-list li { padding: 6px 0 6px 20px; position: relative; }
.feature-list li::before { content: "\25B8"; color: #d44429; position: absolute; left: 0; }
[dir="rtl"] .feature-list li { padding: 6px 20px 6px 0; }
[dir="rtl"] .feature-list li::before { left: auto; right: 0; transform: scaleX(-1); }

/* Image grid for villa types */
.image-row { display: flex; gap: 15px; margin: 20px 0; flex-wrap: wrap; }
.image-row figure { flex: 1; min-width: 200px; text-align: center; }
.image-row img { border-radius: 6px; border: 2px solid #ddd; }
.image-row figcaption { margin-top: 6px; font-weight: 600; color: #555; font-size: 0.9rem; }

/* Video */
.video-section { margin: 30px 0; text-align: center; }
.video-section video { max-width: 100%; border-radius: 8px; }

/* Floor plan */
.floor-plan { margin: 20px 0; text-align: center; }
.floor-plan img { border: 2px solid #ddd; border-radius: 6px; }

/* Gallery grid */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px; padding: 10px 0;
}
.gallery-grid a { display: block; overflow: hidden; border-radius: 4px; border: 2px solid #ddd; transition: border-color 0.2s; }
.gallery-grid a:hover { border-color: #d44429; }
.gallery-grid img { width: 100%; height: 100px; object-fit: cover; display: block; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1;
}

/* Contact */
.contact-info { margin-bottom: 30px; }
.contact-card { background: #f9f7f4; border-radius: 8px; padding: 20px; margin-bottom: 15px; }
.contact-card h3 { margin-bottom: 10px; color: #d44429; }
.contact-card p { margin-bottom: 6px; }
.contact-form { max-width: 500px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 1rem; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #d44429; }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn {
    display: inline-block; padding: 10px 24px; border: none; border-radius: 4px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.btn-primary { background: #d44429; color: #fff; }
.btn-primary:hover { background: #a03020; }

/* Footer */
.site-footer { background: #1a1a1a; color: #999; padding: 30px 0; margin-top: 40px; text-align: center; }
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.footer-nav a { color: #999; font-size: 0.85rem; }
.footer-nav a:hover { color: #d44429; }
.copyright { font-size: 0.8rem; color: #666; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #1a1a1a; max-height: 0; overflow: hidden; transition: max-height 0.3s; }
    .main-nav.open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 10px 20px; gap: 0; }
    .main-nav a { padding: 12px 14px; border-bottom: 1px solid #333; border-radius: 0; }
    .two-column { flex-direction: column; gap: 20px; }
    [dir="rtl"] .two-column { flex-direction: column; }
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero { padding: 40px 0; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
@media (max-width: 480px) {
    .header-inner { min-height: 50px; }
    .logo { font-size: 1.2rem; }
    .page-hero h1 { font-size: 1.4rem; }
    .image-row { flex-direction: column; align-items: center; }
}
