:root {
    --primary: #0b1f3b;       /* Dark Navy Blue */
    --primary-light: #1a365d; /* Dark Slate Blue */
    --accent: #2563eb;        /* Royal Blue */
    --accent-hover: #1d4ed8;  /* Cobalt Blue */
    --accent-light: #eff6ff;  /* Soft Blue Tint */
    --bg-main: #f8fafc;       /* Soft White/Gray */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-light);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link-icon {
    display: none;
}

.mobile-sticky-action-bar {
    display: none;
}

.flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lang-dropdown-btn:hover .flag-icon {
    transform: scale(1.08);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- LANGUAGE SWITCHER DROPDOWN --- */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1005;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Crucial for mobile Safari & Opera: Child elements must NOT capture clicks/touches */
.lang-dropdown-btn * {
    pointer-events: none;
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown-btn .lang-flag {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.lang-dropdown-btn .lang-code {
    letter-spacing: 0.5px;
}

.lang-dropdown-btn .lang-arrow {
    transition: transform 0.25s ease;
    opacity: 0.75;
}

.lang-dropdown-wrapper.open .lang-dropdown-btn .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(11, 31, 59, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    min-width: 175px;
    padding: 0.4rem;
    z-index: 1105;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    color: #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-item * {
    pointer-events: none;
}

.lang-item:hover {
    background: rgba(37, 99, 235, 0.22);
    color: #ffffff;
}

.lang-item.active {
    background: rgba(37, 99, 235, 0.35);
    color: #ffffff;
    font-weight: 700;
}

.lang-item-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.lang-item-name {
    flex: 1;
}

.lang-item-code {
    font-size: 0.72rem;
    opacity: 0.65;
    font-weight: 700;
}

.lang-item .lang-check {
    color: #60a5fa;
    margin-left: 0.25rem;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../images/villa_listing.png') no-repeat center center/cover;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(241, 245, 249, 0.8);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* --- ABOUT SECTION --- */
.about {
    padding: 6rem 0;
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-container {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-experience-badge h4 {
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 1;
}

.about-experience-badge p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.about-feature-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* --- FEATURED SECTION --- */
.featured {
    padding: 6rem 0;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* --- LISTING CARD --- */
.listing-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.listing-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.badge-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.badge-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7em;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.card-location svg {
    flex-shrink: 0;
}

.card-specs {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spec-item svg {
    color: var(--primary-light);
}

/* --- PAGE INTRO HEADER (LISTINGS & ARCHIVES) --- */
.page-intro-header {
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.92)), url('../images/villa_listing.png') no-repeat center center/cover;
    color: #ffffff;
    padding: 5rem 0 7rem 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
    backdrop-filter: blur(8px);
}

.page-intro-title {
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.page-intro-desc {
    color: rgba(241, 245, 249, 0.85);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 580px;
    margin: 0 auto;
}

/* --- FILTER PANEL (LISTINGS PAGE - LUXURY WHITE FLOATING CARD) --- */
.filter-wrapper {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 2.25rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(11, 31, 59, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 3.5rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
}

.filter-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.filter-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.filter-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
    border-radius: 8px;
}

.filter-wrapper h3 {
    color: #0f172a;
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.filter-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #dc2626;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: #fef2f2;
    transition: var(--transition);
    text-decoration: none;
}

.filter-reset-link:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.filter-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.filter-group select, 
.filter-group input {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    width: 100%;
    font-size: 0.92rem;
    height: 46px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select:focus, 
.filter-group input:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.filter-group option {
    background-color: #ffffff;
    color: #0f172a;
}

.filter-submit-container {
    display: flex;
    align-items: flex-end;
}

.filter-submit-btn {
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 31, 59, 0.18);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.filter-submit-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-icon-wrapper {
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h5 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-phone-item {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.contact-phone-item:last-child {
    margin-bottom: 0;
}

.contact-phone-number {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    direction: ltr;
    unicode-bidi: embed;
}

.contact-phone-number:hover {
    color: var(--accent);
}

.contact-phone-sep {
    color: var(--text-muted);
}

.contact-phone-name {
    color: var(--text-muted);
}

.contact-form-card {
    background-color: var(--bg-main);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-desc {
    color: rgba(241, 245, 249, 0.6);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link-item a {
    color: rgba(241, 245, 249, 0.7);
    font-size: 0.95rem;
}

.footer-link-item a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-link:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(241, 245, 249, 0.5);
    font-size: 0.9rem;
}

/* --- PROPERTY DETAIL PAGE --- */
.property-banner-header {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92)), url('../images/villa_listing.png') no-repeat center center/cover;
    color: #ffffff;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.property-banner-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.property-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.meta-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-left: auto;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .meta-price {
        margin-left: 0;
        width: 100%;
        margin-top: 1rem;
    }
}

.property-detail-layout {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* --- PROPERTY GALLERY SLIDER --- */
.property-gallery-slider {
    position: relative;
    width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2.5rem;
    background-color: #000;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 500px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.prev-btn {
    left: 1.5rem;
}

.next-btn {
    right: 1.5rem;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .property-gallery-slider, .slider-track {
        max-height: 350px;
        height: 350px;
    }
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .prev-btn {
        left: 0.8rem;
    }
    .next-btn {
        right: 0.8rem;
    }
}

.property-main-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.property-main-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.property-description {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.prop-spec-box {
    background-color: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prop-spec-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.prop-spec-icon {
    color: var(--accent);
    margin-bottom: 0.2rem;
    transition: var(--transition);
}

.prop-spec-box:hover .prop-spec-icon {
    transform: scale(1.1);
}

.prop-spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.prop-spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* PROPERTY MAP & LOCATION */
.property-map-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.property-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.property-map-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.property-map-title svg {
    color: var(--accent);
}

.property-map-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.property-map-subtitle svg {
    color: var(--accent);
}

.btn-map-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-map-directions:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-map-directions svg {
    transition: var(--transition);
}

.btn-map-directions:hover svg {
    transform: translateY(-1px) translateX(2px);
}

.property-map-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    background-color: #f1f5f9;
}

.property-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.property-map-overlay-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    pointer-events: none;
    z-index: 2;
}

.property-map-overlay-badge svg {
    color: var(--accent);
}

.agent-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 110px;
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.agent-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.agent-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.agent-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- ADMIN PANEL --- */
.admin-login-body {
    background-color: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-login-card {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.admin-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.admin-login-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--primary);
    color: #ffffff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.admin-logo-text span {
    color: var(--accent);
}

.admin-menu-toggle {
    display: none;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-menu-link {
    color: rgba(241, 245, 249, 0.7);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.admin-menu-link:hover, .admin-menu-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-main {
    padding: 3rem;
    background-color: var(--bg-main);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.admin-header-title {
    font-size: 2rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.3rem;
}

.stat-icon {
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ADMIN TABLE --- */
.table-responsive {
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background-color: #f1f5f9;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.table-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.badge-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-sale {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-rent {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-edit {
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-edit:hover {
    background-color: #2563eb;
}

/* --- ADMIN EDIT/ADD FORM --- */
.admin-card {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-card-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.img-preview-box {
    margin-top: 1rem;
    width: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.alert-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .property-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .agent-card {
        position: static;
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }

    .logo-img {
        height: 38px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .header-right {
        gap: 0.65rem;
    }

    .lang-dropdown-btn {
        min-height: 40px;
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
        gap: 0.4rem;
        touch-action: manipulation;
    }

    .lang-dropdown-btn .lang-flag {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-sm);
        color: #ffffff;
        font-size: 1.3rem;
        cursor: pointer;
        transition: var(--transition);
    }

    .menu-toggle:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.16);
    }
    
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0b1f3b;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1.25rem 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
        gap: 0.25rem;
        z-index: 9999;
    }
    
    nav.show {
        display: flex;
        animation: mobileNavFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes mobileNavFadeIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(11, 31, 59, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-links-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    nav .nav-link {
        display: flex;
        align-items: center;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 1.02rem;
        font-weight: 600;
        color: #e2e8f0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: var(--transition);
    }

    nav .nav-link:last-child {
        border-bottom: none;
    }
    
    nav .nav-link:hover, nav .nav-link:active, nav .nav-link.active {
        background-color: rgba(37, 99, 235, 0.15);
        color: #60a5fa;
        padding-left: 1.3rem;
    }

    html[dir="rtl"] nav .nav-link:hover,
    html[dir="rtl"] nav .nav-link:active,
    html[dir="rtl"] nav .nav-link.active {
        padding-left: 1rem;
        padding-right: 1.3rem;
    }

    .nav-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #60a5fa;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }

    html[dir="rtl"] .nav-link-icon {
        margin-right: 0;
        margin-left: 0.75rem;
    }

    /* Mobile Sticky Action Bar for Property Detail */
    .mobile-sticky-action-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        background: rgba(11, 31, 59, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 0.65rem 1rem;
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
        z-index: 990;
        gap: 0.65rem;
    }

    body.property-detail-page {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    #contactForm {
        scroll-margin-top: 90px;
    }

    .mobile-bar-price-info {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        min-width: 0;
    }

    .mobile-bar-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #94a3b8;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 2px;
    }

    .mobile-bar-amount {
        font-size: 1.08rem;
        font-weight: 800;
        color: #60a5fa;
        font-family: var(--font-heading);
        white-space: nowrap;
        line-height: 1.2;
    }

    .mobile-bar-btn-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        justify-content: flex-end;
        min-width: 0;
    }

    .mobile-bar-btn-call {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
        transition: var(--transition);
    }

    .mobile-bar-btn-call:hover,
    .mobile-bar-btn-call:active {
        background: var(--accent);
        border-color: var(--accent);
        color: #ffffff;
    }

    .mobile-bar-btn-whatsapp {
        background: rgba(37, 211, 102, 0.16);
        border-color: rgba(37, 211, 102, 0.45);
        color: #25d366;
    }

    .mobile-bar-btn-whatsapp:hover,
    .mobile-bar-btn-whatsapp:active {
        background: #25d366;
        border-color: #25d366;
        color: #ffffff;
    }


    .mobile-bar-btn-inquire {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        height: 40px;
        padding: 0 0.95rem;
        font-weight: 700;
        font-size: 0.88rem;
        border-radius: var(--radius-md);
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bar-btn-inquire span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bar-btn-inquire svg {
        flex-shrink: 0;
    }
    
    .about-experience-badge {
        right: 0;
        bottom: 0;
    }
    
    .hero {
        padding: 7rem 0 6.5rem 0;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        min-height: 100svh;
        display: flex;
        align-items: center;
        justify-content: center;
        background-position: center center;
    }

    .hero-title {
        font-size: clamp(1.85rem, 6.5vw, 2.35rem);
        line-height: 1.25;
        margin-bottom: 1.25rem;
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Mobil Bölüm ve Sayfa Boşlukları Düzenlemesi (Daha Az Boşluk) */
    .about,
    .featured,
    .contact-section {
        padding: 3.25rem 0;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 2rem;
        padding-bottom: 0.75rem;
    }

    .about-grid {
        gap: 2.25rem;
    }

    .about-title {
        font-size: 1.45rem;
        margin-bottom: 0.85rem;
    }

    .about-p {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }

    .about-features {
        margin-top: 1.25rem;
        gap: 0.75rem;
    }

    .featured-more-btn {
        margin-top: 2rem !important;
    }

    .contact-grid {
        gap: 2.25rem;
    }

    .contact-info h3 {
        font-size: 1.55rem;
        margin-bottom: 0.85rem;
    }

    .contact-info-p {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .contact-details {
        gap: 1rem;
    }

    .contact-phone-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.65rem;
        gap: 0.15rem;
    }

    .contact-phone-item:last-child {
        margin-bottom: 0;
    }

    .contact-phone-sep {
        display: none;
    }

    .contact-phone-number {
        font-weight: 600;
        font-size: 0.98rem;
    }

    .contact-phone-name {
        font-size: 0.88rem;
        color: var(--text-muted);
        opacity: 0.9;
    }

    html[dir="rtl"] .contact-phone-item {
        align-items: flex-start;
    }

    footer {
        padding: 3.5rem 0 1.5rem 0;
    }

    .footer-grid {
        margin-bottom: 2rem;
    }

    .page-intro-badge {
        display: none !important;
    }

    .page-intro-header {
        padding: 2.5rem 0 3.5rem 0 !important;
        text-align: center !important;
    }

    .page-intro-title {
        font-size: 1.65rem;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .page-intro-desc {
        font-size: 0.92rem;
        text-align: center !important;
        padding: 0 0.5rem;
        margin: 0 auto;
    }

    .filter-wrapper {
        margin-top: -2.5rem;
        margin-bottom: 2.5rem;
        padding: 1.75rem 1.5rem;
        border: 1px solid #e2e8f0;
        box-shadow: 0 15px 30px -10px rgba(11, 31, 59, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
        background-color: #ffffff;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .filter-group-keyword {
        grid-column: 1 / -1;
    }

    .filter-submit-container {
        grid-column: 1 / -1;
    }

    .property-detail-layout {
        grid-template-columns: 1fr;
        padding: 2rem 0;
        gap: 1.75rem;
    }

    .card-title {
        white-space: normal;
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .card-specs {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .spec-item {
        font-size: 0.82rem;
    }

    .contact-item {
        background: #ffffff;
        border: 1px solid var(--border-color);
        padding: 1.1rem 1.2rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .property-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        position: relative;
        z-index: 100;
        min-width: 0;
        gap: 0;
    }
    
    .admin-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #ffffff;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }
    
    .admin-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }
    
    .admin-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1.5rem;
        gap: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 101;
    }

    .admin-menu.show {
        display: flex !important;
    }
    
    .admin-card {
        padding: 1.5rem;
    }
    
    .admin-main {
        padding: 1.5rem;
        min-width: 0;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .agent-card {
        padding: 1.5rem;
    }
    
    .property-banner-header {
        padding: 2rem 0;
    }
    
    .property-banner-header h1 {
        font-size: 1.8rem;
    }
    
    .property-header-meta {
        gap: 0.8rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .property-main-card {
        padding: 1.5rem;
    }

    /* Mobile Table to Cards conversion */
    .admin-table, 
    .admin-table tbody, 
    .admin-table tr, 
    .admin-table td {
        display: block;
        width: 100%;
    }
    
    .admin-table thead {
        display: none;
    }
    
    .admin-table tr {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        box-shadow: var(--shadow-sm);
        position: relative;
    }
    
    .admin-table td {
        border-bottom: none;
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        font-size: 0.9rem;
    }
    
    /* Attribute data-label display as column labels on mobile */
    .admin-table td[data-label="Başlık"]::before,
    .admin-table td[data-label="Konum"]::before,
    .admin-table td[data-label="Tür"]::before,
    .admin-table td[data-label="Kategori"]::before,
    .admin-table td[data-label="Fiyat"]::before,
    .admin-table td[data-label="İşlemler"]::before,
    .admin-table td[data-label="Tarih"]::before,
    .admin-table td[data-label="Müşteri"]::before,
    .admin-table td[data-label="Mesaj"]::before,
    .admin-table td[data-label="İşlem"]::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary);
        text-align: left;
        margin-right: 1rem;
    }

    .admin-table td[data-label="Mesaj"] {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-top: 0.8rem;
    }

    .admin-table td[data-label="Mesaj"]::before {
        margin-bottom: 0.4rem;
    }

    .admin-table td[data-label="Mesaj"] > div {
        max-width: 100% !important;
        text-align: left;
        width: 100%;
    }

    .admin-table td[data-label="Başlık"] {
        white-space: normal;
        text-align: right;
    }

    /* Thumbnail display as top cover card */
    .admin-table td:first-child:not([data-label]) {
        justify-content: center;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .admin-table td:first-child:not([data-label]) .table-thumb {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: var(--radius-md);
    }
    
    .actions-cell {
        width: 100%;
        justify-content: stretch;
        margin-top: 0.5rem;
    }
    
    .actions-cell .btn, .actions-cell form {
        flex: 1;
    }
    
    .actions-cell form .btn {
        width: 100%;
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .admin-section-header h2 {
        text-align: left;
    }
    
    .admin-section-header .btn {
        width: 100%;
        text-align: center;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .admin-header .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: 100svh;
        padding: 8rem 0 8rem 0;
        background-position: center center;
    }

    .hero-buttons {
        gap: 0.9rem;
        margin-bottom: 2.5rem;
    }

    .about,
    .featured,
    .contact-section {
        padding: 2.5rem 0;
    }

    .about-grid {
        gap: 1.75rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem 1.25rem;
    }

    .featured-more-btn {
        margin-top: 1.5rem !important;
    }

    .page-intro-badge {
        display: none !important;
    }

    .page-intro-header {
        padding: 2rem 0 3rem 0 !important;
        text-align: center !important;
    }

    .page-intro-title {
        font-size: 1.45rem;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .page-intro-desc {
        font-size: 0.88rem;
        text-align: center !important;
        margin: 0 auto;
    }

    .filter-wrapper {
        margin-top: -2rem;
        margin-bottom: 2rem;
        padding: 1.35rem 1.1rem;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 12px 25px -8px rgba(11, 31, 59, 0.12);
        background-color: #ffffff;
    }

    .filter-header-bar {
        margin-bottom: 1.15rem;
        padding-bottom: 0.85rem;
    }

    .filter-wrapper h3 {
        font-size: 1.1rem;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .filter-group-keyword {
        grid-column: 1 / -1;
    }

    .filter-group input, 
    .filter-group select {
        height: 46px;
        font-size: 0.95rem;
    }

    .filter-submit-container {
        grid-column: 1 / -1;
    }

    .filter-submit-btn {
        height: 48px;
        width: 100%;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.55rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-col {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .property-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .prop-spec-box {
        padding: 0.85rem 0.6rem;
        border-radius: var(--radius-md);
    }

    .prop-spec-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0.2rem;
    }

    .prop-spec-value {
        font-size: 1.1rem;
    }

    .prop-spec-label {
        font-size: 0.72rem;
    }

    .property-sticky-price {
        font-size: 1.4rem !important;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-bottom: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .admin-login-card {
        padding: 1.5rem 1.25rem;
    }
    
    .property-gallery-slider, .slider-track {
        max-height: 250px;
        height: 250px;
        border-radius: var(--radius-md);
    }
    
    .property-map-container {
        height: 280px;
    }
    
    .property-map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .btn-map-directions {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    /* Mobile sticky action bar adjustments for phones <= 480px (iPhone 12, 15 Pro, etc.) */
    .mobile-sticky-action-bar {
        padding: 0.55rem 0.75rem;
        padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
        gap: 0.5rem;
    }

    .mobile-bar-amount {
        font-size: 1rem;
    }

    .mobile-bar-btn-group {
        gap: 0.4rem;
    }

    .mobile-bar-btn-call {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .mobile-bar-btn-inquire {
        height: 38px;
        padding: 0 0.75rem;
        font-size: 0.84rem;
        gap: 0.35rem;
    }
}

@media (max-width: 360px) {
    .mobile-sticky-action-bar {
        padding: 0.45rem 0.55rem;
        padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
        gap: 0.35rem;
    }

    .mobile-bar-amount {
        font-size: 0.92rem;
    }

    .mobile-bar-btn-call {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .mobile-bar-btn-inquire {
        height: 36px;
        padding: 0 0.55rem;
        font-size: 0.78rem;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- RTL SUPPORT (Persian / Farsi - dir="rtl") --- */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html[dir="rtl"] .hero {
    text-align: right;
}

html[dir="rtl"] .hero-content {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .badge-type {
    left: auto;
    right: 1rem;
}

html[dir="rtl"] .badge-category {
    right: auto;
    left: 1rem;
}

html[dir="rtl"] .filter-group input,
html[dir="rtl"] .filter-group select,
html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .about-feature-item {
    direction: rtl;
}

html[dir="rtl"] .property-sticky-price {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .prop-spec-box {
    text-align: right;
}

html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .contact-item a[href^="tel:"],
html[dir="rtl"] .mobile-nav-call-btn,
html[dir="rtl"] .mobile-bar-amount {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: embed;
}

/* --- ADMIN MULTI-LANGUAGE TABS & AUTO-TRANSLATE --- */
.lang-tabs-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.lang-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.lang-tabs-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lang-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-tab-btn:hover {
    background: #e2e8f0;
}

.lang-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-auto-translate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-auto-translate:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-auto-translate:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-auto-translate .translate-spinner {
    animation: translateSpin 1s linear infinite;
}

@keyframes translateSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.translate-status {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.translate-status.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.translate-status.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.lang-tab-pane {
    display: none;
}

.lang-tab-pane.active {
    display: block;
    animation: fadeInTab 0.2s ease-in-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

