/* ============================================================
   NESTWELL REALTY — MAIN STYLESHEET
   ============================================================ */

/* ===== VARIABLES ===== */

:root {
    --blue: #1f5fa8;
    --dark: #142850;
    --green: #4ca043;
    --light: #f4f7fb;
    --text: #1a1a1a;
}

/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
}

/* ===== LAYOUT ===== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== HEADER ===== */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
}

/* ===== LOGO ===== */

.logo-text a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.logo-blue  { color: var(--blue); }
.logo-green { color: var(--green); }
.logo-dark  { color: var(--dark); }

/* ===== NAV LINKS ===== */

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--green);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HAMBURGER ===== */

.hamburger,
.admin-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span,
.admin-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1),
.admin-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.hamburger.open span:nth-child(2),
.admin-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }

.hamburger.open span:nth-child(3),
.admin-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV OVERLAY ===== */

.mobile-nav,
.admin-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 40, 80, 0.97);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-nav.open,
.admin-mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a,
.admin-mobile-nav a {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 12px 0;
    transition: color 0.2s;
}

.mobile-nav a:hover,
.admin-mobile-nav a:hover { color: var(--green); }

.mobile-nav-close,
.admin-mobile-nav .nav-close {
    position: absolute;
    top: 22px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.admin-mobile-nav .nav-logout {
    margin-top: 20px;
    color: #ff6b6b !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 107, 107, 0.4);
    padding: 10px 30px !important;
    border-radius: 30px;
}

/* ===== CLICKABLE CONTACT LINKS ===== */

a.tel-link,
a.email-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

a.tel-link:hover,
a.email-link:hover { color: var(--green); }

/* ===== HERO ===== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(20, 40, 80, 0.7), rgba(20, 40, 80, 0.8)),
        url('../images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding-left: 12%;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */

.btn-primary {
    display: inline-block;
    background: #1e8f4c;
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #166b39;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-luxury {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0f9d58, #0c7c46);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(15, 157, 88, 0.25);
}

.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(15, 157, 88, 0.35);
}

/* ===== SECTIONS ===== */

.section {
    padding: 120px 5%;
}

h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--dark);
}

/* ===== ABOUT HIGHLIGHT ===== */

.about-highlight {
    padding: 120px 8%;
    background: #ffffff;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-highlight.show {
    opacity: 1;
    transform: translateY(0);
}

.about-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #f5f7fa 40%, transparent 40%);
    z-index: 0;
}

.about-highlight-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-highlight h2,
.about-highlight p,
.about-highlight ul,
.about-highlight .btn-primary,
.about-highlight img {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease;
}

.about-highlight.show h2,
.about-highlight.show p,
.about-highlight.show ul,
.about-highlight.show .btn-primary,
.about-highlight.show img {
    opacity: 1;
    transform: translateY(0);
}

.about-highlight.show h2          { transition-delay: 0.1s; }
.about-highlight.show p           { transition-delay: 0.25s; }
.about-highlight.show ul          { transition-delay: 0.4s; }
.about-highlight.show .btn-primary{ transition-delay: 0.55s; }
.about-highlight.show img         { transition-delay: 0.2s; }

.about-highlight-text h2 {
    font-size: 46px;
    font-weight: 700;
    margin: 20px 0 25px;
    color: #111;
}

.about-highlight-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: 0.4s ease;
}

.about-highlight-image img:hover {
    transform: scale(1.03);
}

/* ===== ABOUT SECTION ===== */

.about-section {
    padding: 100px 8%;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    max-width: 1400px;
    margin: auto;
}

.about-text {
    flex: 1;
    animation: fadeSlideUp 1s ease forwards;
}

.about-text h5 {
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a4fa3;
    font-size: 13px;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #111;
    line-height: 1.2;
}

.about-text p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-image {
    flex: 1;
    position: relative;
    animation: fadeSlideRight 1.2s ease forwards;
}

.about-image img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ===== SMALL TITLE ===== */

.small-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1e3a5f;
    font-weight: 600;
}

/* ===== CHECKLISTS ===== */

.luxury-checklist {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.luxury-checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

.luxury-checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #0f9d58;
    font-size: 16px;
    font-weight: bold;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.about-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #1e8f4c;
    font-weight: bold;
}

.feature-list {
    list-style: none;
    margin-top: 12px;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 14.5px;
    color: #444;
    position: relative;
    padding-left: 22px;
}

.feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 13px;
}

/* ===== CAROUSEL ===== */

.carousel-wrapper {
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.carousel-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.carousel-track {
    display: flex;
    gap: 25px;
    will-change: transform;
    padding: 20px 0;
}

.carousel-track .property-card {
    flex: 0 0 23%;
    max-width: 23%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 1s ease;
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
    width: 50px;
    transition: 0.3s;
}

.carousel-btn:hover {
    color: #c59d5f;
    transform: scale(1.2);
}

/* ===== PROPERTY GRID ===== */

.property-grid,
.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    padding: 0 8%;
}

/* ===== PROPERTY CARD ===== */

.property-card {
    position: relative;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0 !important;
    transform: translateY(60px) !important;
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.property-card.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.property-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--dark);
}

/* ===== PROPERTIES CARD (alternate class) ===== */

.properties-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: .3s;
}

.properties-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.properties-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ===== SOLD BADGE ===== */

.sold-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e53935;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 1px;
}

.sold-price {
    color: #e53935;
    font-weight: 600;
}

/* ===== PROPERTY SLIDER ===== */

.property-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
}

.property-slider.multi img {
    animation: slide 12s infinite;
}

.property-slider img:first-child { opacity: 1; }

.property-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.property-slider img:nth-child(1) { animation-delay: 0.1s; }
.property-slider img:nth-child(2) { animation-delay: 0.4s; }
.property-slider img:nth-child(3) { animation-delay: 0.8s; }

/* ===== PRICE & LOCATION ===== */

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 25px;
}

.price-label {
    font-size: 14px;
    color: #777;
    margin-left: 5px;
}

.location {
    color: #7b7b7b;
    font-size: 15px;
    margin-bottom: 20px;
}

.description {
    font-size: 14.5px;
    line-height: 1.7;
    color: #555;
}

/* ===== SEARCH ===== */

.search-wrapper {
    padding: 1px 5% 50px;
    display: flex;
    justify-content: center;
}

.search-form {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-row input {
    flex: 1;
    padding: 18px 25px;
    border-radius: 60px;
    border: 1px solid #e5e5e5;
    outline: none;
    font-size: 15px;
    transition: .3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.search-row input:focus {
    border-color: #c59d5f;
    box-shadow: 0 10px 25px rgba(197, 157, 95, 0.2);
}

.filter-btn {
    padding: 14px 22px;
    border-radius: 50px;
    border: 1px solid #e5e5e5;
    background: white;
    cursor: pointer;
    transition: .3s;
}

.filter-btn:hover { background: #f5f5f5; }

.search-btn {
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    background: #4ca043;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: .3s;
}

.search-btn:hover {
    background: #3d8f35;
    transform: translateY(-2px);
}

/* ===== FILTER POPUP ===== */

.filter-popup {
    position: absolute;
    top: 75px;
    right: 0;
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 280px;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: .3s ease;
    z-index: 2000;
}

.filter-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-popup select,
.filter-popup input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===== PAGINATION ===== */

.pagination {
    text-align: center;
    margin-top: 60px;
}

.pagination a {
    margin: 0 6px;
    padding: 8px 14px;
    background: #f3f3f3;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: .3s;
}

.pagination a.active,
.pagination a:hover {
    background: #c59d5f;
    color: white;
}

.no-results {
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 40px;
}

/* ===== PROPERTIES SECTION ===== */

.properties-section {
    padding: 120px 8% 80px;
}

/* ===== INFO CARD ===== */

.info-card {
    background: white;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

/* ===== PROPERTY DETAILS ===== */

.details {
    padding: 120px 0;
}

.details h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.details-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.details-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.detail-info h1 {
    font-size: 34px;
    color: var(--dark);
    margin-bottom: 10px;
}

.detail-section {
    margin-top: 25px;
    padding: 22px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.detail-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    transition: 0.4s ease;
}

.detail-img:hover {
    transform: scale(1.01);
}

.gallery {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.gallery img {
    width: 95px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.75;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.gallery img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.gallery img.active {
    opacity: 1;
    border-color: var(--green);
}

/* ===== CONTACT PAGE ===== */

.contact-page {
    padding: 120px 8% 80px;
    text-align: center;
}

.contact-logo {
    margin-bottom: 30px;
}

.contact-logo img {
    width: 160px;
}

.contact-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
}

.contact-info,
.contact-form {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.contact-form button {
    width: 100%;
}

/* ===== FOOTER ===== */

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 100px;
}

/* ===== ADMIN LAYOUT ===== */

.admin-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--light);
}

.admin-content {
    flex: 1;
    padding: 110px 40px 40px 40px;
}

.admin-footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    font-size: 13px;
}

/* ===== ADMIN DASHBOARD ===== */

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.admin-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeSlide .5s ease;
    transition: transform .3s;
}

.admin-card:hover { transform: translateY(-5px); }

.admin-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.admin-card p {
    font-size: 28px;
    font-weight: 600;
    color: var(--green);
}

/* ===== ADMIN TABLE ===== */

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background: var(--blue);
    color: white;
    padding: 15px;
    text-align: left;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.admin-table tr:hover { background: #f9fbff; }

/* ===== ADMIN STATUS ===== */

.status-available { color: green; font-weight: 600; }
.status-sold      { color: red;   font-weight: 600; }

/* ===== ADMIN BUTTONS ===== */

.delete-btn {
    color: white;
    background: #e74c3c;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.edit-btn {
    color: white;
    background: green;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.sold-btn {
    background: green;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 5px;
    font-size: 14px;
}

.delete-btn:hover,
.edit-btn:hover,
.sold-btn:hover { opacity: 0.8; }

/* ===== ADMIN FORM ===== */

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.admin-form textarea {
    grid-column: 1 / -1;
    min-height: 100px;
}

.primary-btn {
    background: var(--green);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    grid-column: 1 / -1;
}

.primary-btn:hover { opacity: 0.9; }

/* ===== ADMIN LOGIN ===== */

.admin-login-page {
    margin: 0;
    background: #f5f6f8;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-login-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    width: 360px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.admin-logo {
    width: 120px;
    margin-bottom: 25px;
}

.admin-login-card h2 {
    margin-bottom: 25px;
    font-weight: 500;
    color: #333;
}

.admin-login-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-login-card input {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: .3s;
}

.admin-login-card input:focus {
    border-color: #c59d5f;
    box-shadow: 0 0 0 2px rgba(197, 157, 95, 0.2);
}

.admin-login-card button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #c59d5f;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: .3s;
}

.admin-login-card button:hover { background: #b88c4f; }

.admin-error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ===== MAP PICKER ===== */

.map-picker-wrap {
    grid-column: 1 / -1;
    margin-bottom: 10px;
    position: relative;
}

.map-picker-wrap label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 10px;
}

.map-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.map-search-wrap input[type="text"],
#map-search {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    outline: none;
    transition: .25s ease;
    box-sizing: border-box;
    margin: 0 !important;
}

.map-search-wrap input[type="text"]:focus,
#map-search:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.12) !important;
}

#map-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.map-dd-item {
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    line-height: 1.5;
    color: var(--text);
    transition: background .15s;
}

.map-dd-item:last-child { border-bottom: none; }
.map-dd-item:hover      { background: #eef4ff; }
.map-dd-none            { color: #aaa; cursor: default; }

#map-picker {
    width: 100% !important;
    height: 350px !important;
    border-radius: 14px !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    margin-bottom: 8px;
}

.map-hint {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.coord-display {
    display: flex;
    gap: 12px;
}

.coord-display input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    background: #f7f9fb;
    color: #666;
    cursor: default;
}

#property-map {
    height: 300px;
    border-radius: 14px;
    border: 1px solid #e0e0e0;
    margin-top: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.gmaps-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 22px;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, transform .2s;
}

.gmaps-link:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.gmaps-link svg {
    width: 17px;
    height: 17px;
    fill: #fff;
}

.location-section { margin-top: 10px; }

/* ===== ANIMATIONS ===== */

.fade-in { animation: fadeIn .8s ease; }

@keyframes slide {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    30%  { opacity: 1; }
    38%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: none; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: none; }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== RESPONSIVE — TABLET (≤ 900px) ===== */

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-img {
        height: 380px;
    }
}

/* ===== RESPONSIVE — MOBILE (≤ 768px) ===== */

@media (max-width: 768px) {

    /* Header */
    .nav-wrapper {
        padding: 14px 20px;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger,
    .admin-hamburger {
        display: flex;
    }

    .mobile-nav,
    .admin-mobile-nav {
        display: flex;
    }

    .logo-text a {
        font-size: 20px;
    }

    /* Hero */
    .hero {
        height: 100svh;
        padding-left: 6%;
        padding-right: 6%;
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .btn-primary {
        padding: 13px 28px;
        font-size: 14px;
    }

    /* About Highlight */
    .about-highlight {
        padding: 60px 6%;
    }

    .about-highlight-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-highlight-text h2 {
        font-size: 28px;
    }

    .about-highlight-image img {
        border-radius: 14px;
    }

    /* Sections */
    .section {
        padding: 60px 5%;
    }

    .section h2 {
        font-size: 26px;
        margin-bottom: 36px;
    }

    /* Carousel */
    .carousel-track {
        gap: 14px;
    }

    .carousel-track .property-card {
        flex: 0 0 78%;
        max-width: 78%;
    }

    /* Properties */
    .properties-section {
        padding: 100px 4% 60px;
    }

    .property-grid,
    .properties-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0;
    }

    .property-card img {
        height: 210px;
    }

    .property-info {
        padding: 16px;
    }

    .property-info h3 {
        font-size: 17px;
    }

    /* Search */
    .search-wrapper {
        padding: 0 4% 36px;
    }

    .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .search-row input {
        width: 100%;
        padding: 14px 18px;
        font-size: 14px;
    }

    .search-btn,
    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 12px;
    }

    .filter-popup {
        width: 100%;
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px 36px;
        box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.2);
    }

    /* Property Details */
    .details-container {
        padding: 12px 4%;
        margin-top: 72px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-img {
        height: 260px;
        border-radius: 14px;
    }

    .gallery {
        gap: 8px;
        flex-wrap: wrap;
    }

    .gallery img {
        width: 72px;
        height: 54px;
        border-radius: 8px;
    }

    .details-info h1 {
        font-size: 22px;
    }

    .price {
        font-size: 22px;
    }

    .info-card {
        padding: 16px;
        border-radius: 12px;
    }

    #property-map {
        height: 230px;
    }

    .gmaps-link {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Contact */
    .contact-page {
        padding: 100px 5% 60px;
        text-align: left;
    }

    .contact-logo {
        text-align: center;
    }

    .contact-title {
        font-size: 24px;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info,
    .contact-form {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .contact-info p {
        font-size: 14.5px;
    }

    /* Footer */
    footer {
        margin-top: 60px;
        padding: 20px 5%;
        font-size: 13px;
    }

    /* Sold badge */
    .sold-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Pagination */
    .pagination {
        margin-top: 36px;
    }

    .pagination a {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Admin */
    .admin-content {
        padding: 90px 16px 40px;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    .admin-cards {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-bottom: 28px;
    }

    .admin-card {
        padding: 18px;
        border-radius: 12px;
    }

    .admin-card h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .admin-card p {
        font-size: 22px;
    }

    h2 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    .admin-table-wrapper {
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .admin-table {
        min-width: 560px;
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 11px 12px;
    }

    .admin-table td img {
        width: 52px !important;
        height: 40px;
        object-fit: cover;
        border-radius: 6px;
    }

    .edit-btn,
    .sold-btn,
    .delete-btn {
        display: inline-block;
        padding: 6px 10px;
        font-size: 12px;
        margin-bottom: 4px;
        border-radius: 6px;
    }

    .admin-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-form input,
    .admin-form select,
    .admin-form textarea {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .admin-form textarea {
        min-height: 90px;
    }

    .primary-btn {
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    #map-picker {
        height: 240px !important;
    }

    .coord-display {
        flex-direction: column;
        gap: 8px;
    }

    .coord-display input {
        width: 100%;
    }

    .map-search-wrap input {
        font-size: 14px !important;
        padding: 11px 14px !important;
    }

    .admin-table td:nth-child(3) {
        max-width: 160px;
        word-break: break-word;
    }

    .admin-login-card {
        width: 90%;
        padding: 36px 24px;
    }

    .admin-logo {
        width: 100px;
    }

    .admin-footer {
        padding: 14px;
        font-size: 13px;
    }
}

/* ===== RESPONSIVE — SMALL PHONES (≤ 480px) ===== */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 28px;
    }

    .about-highlight-text h2 {
        font-size: 24px;
    }

    .carousel-track .property-card {
        flex: 0 0 88%;
        max-width: 88%;
    }

    .property-card img {
        height: 190px;
    }

    .details-info h1 {
        font-size: 20px;
    }

    .detail-img {
        height: 230px;
    }

    .mobile-nav a,
    .admin-mobile-nav a {
        font-size: 24px;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }

    .admin-table {
        min-width: 480px;
        font-size: 12px;
    }

    .admin-content {
        padding: 80px 12px 36px;
    }
}

/* ===== CAROUSEL RESPONSIVE ===== */

@media (max-width: 1200px) {
    .carousel-track .property-card {
        flex: 0 0 31%;
        max-width: 31%;
    }
}

@media (max-width: 768px) {
    .carousel-track .property-card {
        flex: 0 0 78%;
        max-width: 78%;
    }
}

@media (max-width: 480px) {
    .carousel-track .property-card {
        flex: 0 0 88%;
        max-width: 88%;
    }
}