/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --primary-red: #0d6efd;
    --primary-orange: #F37021;
    --dark-grey: #222;
    --medium-grey: #777;
    --light-grey: #efefef;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
}

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 6%; background: var(--white); border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 1000;
}

.logo {
    padding: 5px 0;
}

.header-logo {
    height: 60px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.brand-name { color: #198754; font-size: 24px; font-weight: 900; letter-spacing: -1px; }

.nav-links { display: flex; list-style: none; gap: 25px; margin: 0; align-items: center;}
.nav-links a {
    color: var(--dark-grey); font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-red); }

.dropdown { position: relative; padding: 20px 0; }
.dropdown-menu {
    display: block; position: absolute; top: 100%; left: 0;
    background: var(--white); min-width: 220px; box-shadow: var(--shadow-hover);
    list-style: none; padding: 10px 0; border-top: 3px solid var(--primary-red);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { padding: 12px 20px; display: block; text-transform: none; font-size: 14px; color: var(--medium-grey); }

/* =========================================
   3. HERO & PAGE HEADERS
   ========================================= */
.hero-section { position: relative; height: 75vh; overflow: hidden; }
.hero-item { height: 75vh; width: 100%; background-size: cover; background-position: center; display: block; }

.hero.page-inner {
    padding: 9rem 0 5rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero.overlay:before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .heading {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #0d6efd !important;
}

.properties-page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/apart11.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

/* =========================================
   4. SEARCH BAR
   ========================================= */
.search-bar-red { background: var(--primary-red); padding: 25px 0; color: #fff; }
.search-flex { display: flex; align-items: flex-end; gap: 15px; flex-wrap: wrap; justify-content: center; }
.field-group { flex: 1; min-width: 200px; }
.field-group label { font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; color: rgba(255,255,255,0.8); display: block; }
.field-group input, .field-group select { width: 100%; padding: 12px; border: none; border-radius: 2px; font-size: 14px; }
.btn-search-main { background: var(--dark-grey); color: #fff; border: none; padding: 12px 45px; font-weight: 700; cursor: pointer; text-transform: uppercase; border-radius: 2px; }

/* =========================================
   5. PROPERTY CARDS
   ========================================= */

/* --- Standard Card (Image Top, Content Bottom) --- */
.property-card {
    background: #fff;
    border: 1px solid #eee;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    height: 100%;
    border-radius: 12px;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.img-wrapper {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.property-card:hover .img-wrapper {
    transform: scale(1.05);
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-grey);
}

.property-location {
    font-size: 13px;
    color: var(--medium-grey);
    margin-bottom: 15px;
}

.card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-grey);
    display: block;
}

.price-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

/* --- Overlay Card (Image as background) --- */
.property-card-item {
    padding: 10px; /* Space for the slider gutter */
}

.prop-card-bg {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prop-card-bg::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
}

.prop-overlay-content {
    position: relative;
    z-index: 2;
    padding: 25px 20px;
    color: #fff;
}

.prop-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.prop-location { font-size: 13px; opacity: 0.8; margin-bottom: 15px; }

.prop-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.price-red, .price-red-call {
    color: #0d6efd; font-weight: 800; font-size: 18px;
}

.prop-specs { display: flex; gap: 15px; font-size: 13px; font-weight: 600; }
.prop-specs span { display: flex; align-items: center; gap: 6px; }


/* --- Card Components (Tags, Specs, Buttons) --- */
.tag-container, .card-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.tag {
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tag-for-sale { background: #0d6efd; }
.tag-featured { background: #FF7043; }
.tag-prime {
    background-color: #d4af37;
    background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
    border: 1px solid #b8860b;
}

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.circle-btn {
    background: rgba(255, 255, 255, 0.2); border: none; color: #fff;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    transition: 0.3s;
}
.circle-btn:hover { background: #0d6efd; }

.card-specs {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 15px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--medium-grey);
}

.card-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   6. GRIDS & LAYOUTS
   ========================================= */
.properties-sale-grid,
.articles-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    background: #eee;
    gap: 1px;
}

.location-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
    cursor: pointer;
}
.location-card.tall { height: 520px; }
.location-card.small-box { height: 252px; }
.location-overlay {
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

/* =========================================
   7. SECTIONS & COMPONENTS
   ========================================= */

.section-header h2 { font-size: 28px; font-weight: 700; color: #333; margin-bottom: 5px; }
.section-header p { color: #888; font-size: 14px; margin-bottom: 30px; }

.main-title {
    font-weight: 800;
    text-transform: uppercase;
    color: #2c3e50;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2rem;
    color: #0d6efd; /* Brand Blue */
    border-bottom: 3px solid #0d6efd;
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 5px;
}
.section-title i { margin-right: 10px; }

/* --- Lifestyles --- */
.lifestyle-card { padding: 60px 20px; background: #999; color: #fff; text-align: center; cursor: pointer; transition: var(--transition); }
.lifestyle-card:hover, .lifestyle-card.active { background: var(--primary-red); padding-top: 50px; padding-bottom: 70px; }
.lifestyle-icon img { height: 70px; width: 70px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; border: 2px solid rgba(255,255,255,0.3); }

/* --- Testimonials --- */
.testimonials-section {
    padding: 80px 0;
    background-color: #E6E8E3;
    text-align: center;
}
.testimonial-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 100%;
    min-height: 320px;
    justify-content: center;
    align-items: center;
}
.stars { color: #f1c40f; font-size: 1.2rem; margin-bottom: 10px; }
.user-name { font-size: 1.1rem; font-weight: 700; margin: 5px 0; }
.user-role { color: #888; font-size: 0.9rem; margin-bottom: 15px; font-style: italic; }
.user-feedback { font-size: 0.95rem; line-height: 1.6; color: #444; max-width: 280px; }
.testimonials-section .tns-nav { margin-top: 40px; }

/* --- News & Articles --- */
.news-articles-section { padding: 80px 0; background-color: #ffffff; }
.article-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.article-image { height: 240px; background-size: cover; background-position: center; width: 100%; border-radius: 4px; margin-bottom: 15px; }
.article-body { padding: 25px 0; display: flex; flex-direction: column; flex-grow: 1; }
.article-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: #000; margin-bottom: 10px; min-height: 52px; }
.article-meta { font-size: 12px; color: #999; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.article-excerpt { font-size: 14px; color: #555; margin-bottom: 25px; line-height: 1.6; flex-grow: 1; }
.btn-read-more {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    align-self: flex-start;
    transition: background 0.3s ease;
}
.btn-read-more:hover { background-color: #0a58ca; }

/* --- Team --- */
.team-member:hover {
    transform: none !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}
.team-member img {
    transition: none !important;
    transform: none !important;
}
.team-member:hover img {
    transform: none !important;
}

/* --- About Page --- */
.img-about.dots:after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(#0d6efd 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: -1;
    bottom: -20px;
    left: -20px;
    opacity: 0.3;
}

/* =========================================
   8. FOOTER
   ========================================= */
.main-footer {
    padding: 60px 0 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.footer-input {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

.btn-subscribe {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-title { margin-top: 20px; }
.social-icons { display: flex; gap: 10px; }
.social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.fb { background: #3b5998; }
.yt { background: #ff0000; }
.in { background: #0077b5; }
.ig { background: #3f729b; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    text-decoration: none;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 600;
}
.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.designer { color: #0d6efd; font-weight: 700; }

/* =========================================
   9. UTILITIES & HELPERS
   ========================================= */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
}

.filter-btn.active {
    color: white !important;
}

/* =========================================
   10. PROPERTY SINGLE PAGE
   ========================================= */
/* Red Checkmark Styling for Features */
#property-features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #444;
}
#property-features-list li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #0d6efd; /* Blue color */
}

/* Slider Sizing */
.property-main-slider img, .property-main-slider video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

#thumbnail-slider img {
    height: 80px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.6;
    transition: 0.3s;
}
#thumbnail-slider .tns-nav-active img {
    opacity: 1;
    border: 2px solid #0d6efd;
}

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .articles-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-header { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 15px; justify-content: center; flex-wrap: wrap; gap: 15px; }
    .search-flex { flex-direction: column; align-items: stretch; }
    .location-card.tall, .location-card.small-box { height: 300px; }
    .articles-grid, .testimonials-grid, .properties-sale-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-input { margin: 0 auto 10px; }
    .contact-info p, .social-icons { justify-content: center; }

    .hero .heading { font-size: 2.5rem; }
    .properties-page-header { padding: 50px 0; }
    .testimonials-section, .news-articles-section { padding: 50px 0; }
    .main-footer { padding: 40px 0; }
}

@media (max-width: 576px) {
    .brand-name { font-size: 22px; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 12px; }
    .hero .heading { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
}

/* =========================================
   12. SLIDER CONTROLS & NAVIGATION
   ========================================= */
/* Carousel Container */
.new-properties-carousel {
    display: flex;
    gap: 20px;
    overflow: hidden; /* Owl Carousel will handle the display */
}

/* Navigation Buttons */
#new-prop-controls {
    display: flex;
    gap: 10px;
    z-index: 10;
}

#new-prop-controls button {
    background: #dc3545; /* text-danger color */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

#new-prop-controls button:hover {
    background: #a71d2a;
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.property-card-link:hover {
    color: inherit;
}

/* Ensure images within cards are consistent */
.new-properties-carousel .img-wrapper {
    background-size: cover;
    background-position: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Position the slider controls over the image */
.tns-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.tns-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s;
}

.tns-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}
