/* ===== Root Colors & Variables ===== */
:root {
    --primary-gold: #C5A457;
    --primary-green: #2a443a;
    --text-gray: #7a7a7a;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
}

/* ===== General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-gray);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-green);
    font-weight: 600;
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== Navigation ===== */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-green) !important;
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-gold) !important;
}

/* ===== Banner Section ===== */
.banner-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(42, 68, 58, 0.5);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.banner-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--white) !important;
}

.banner-subtitle {
    font-size: 1.5rem !important;
    color: var(--primary-gold) !important;
}

@media (max-width: 768px) {
    .banner-section {
        height: 250px;
    }

    .banner-title {
        font-size: 2rem !important;
    }

    .banner-subtitle {
        font-size: 1rem !important;
    }
}

/* ===== Filter Section ===== */
.filter-section {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-label {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.form-select, .form-control {
    border-color: var(--border-color);
    color: var(--text-gray);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(197, 164, 87, 0.15);
}

/* ===== View Toggle ===== */
.view-toggle {
    transition: all 0.3s ease;
}

.view-toggle.active {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

/* ===== Properties Container ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== Property Card Grid View ===== */
.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.property-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.property-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e9ecef;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.property-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.property-tag {
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

.property-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-price {
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-feature i {
    color: var(--primary-gold);
}

.btn-view-detail {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.btn-view-detail:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-green);
}

/* ===== Property Card List View ===== */
.property-card-list {
    display: flex;
    gap: 2rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.property-card-list:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.property-card-list-image {
    width: 300px;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.property-card-list-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-card-list-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.property-card-list-location {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.property-card-list-price {
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.property-card-list-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.property-card-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card-list-features {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .property-card-list {
        flex-direction: column;
        gap: 1rem;
    }

    .property-card-list-image {
        width: 100%;
        height: 200px;
    }

    .property-card-list-content {
        padding: 1.5rem;
    }

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* ===== Primary Button ===== */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-green);
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

/* ===== Property Detail Page ===== */
.image-carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    background: #e9ecef;
}

.carousel-control-prev, .carousel-control-next {
    background-color: rgba(0, 0, 0, 1) !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 12px 15px 14px !important;
}

#mainCarousel .carousel-inner{position: relative;}
#mainCarousel .carousel-inner::before{position:absolute; content: ''; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); left: 0; top: 0; z-index: 1;}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(0, 0, 0, 1);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
filter: initial !important;
}

.property-main-image {
    height: 500px;
    object-fit: cover;
}

.thumbnail-gallery {
    margin-top: 1.5rem;
}

.thumbnail-item {
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    max-height: 120px;
}

.thumbnail-item:hover {
    border-color: var(--primary-gold);
}

.thumbnail-item.active {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(197, 164, 87, 0.2);
}

/* ===== Property Details Grid ===== */
.property-details-section {
    background: var(--light-gray) !important;
    border: 1px solid var(--border-color);
}

.detail-item {
    padding: 1.5rem;
}

.detail-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.3rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0;
}

/* ===== Description Section ===== */
.description-section ul li {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.description-section ul li:before {
    content: "✓ ";
    color: var(--primary-gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ===== Info Card ===== */
.info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.property-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.quick-info {
    justify-content: space-around;
    text-align: center;
}

/* ===== Enquiry Form ===== */
.enquiry-form-card {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.enquiry-form-card h5 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    border-color: var(--border-color);
    border-radius: 4px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: #bbb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(197, 164, 87, 0.15);
}

/* ===== Share Section ===== */
.share-section {
    display: flex;
    flex-direction: column;
}

.share-section .btn-outline-secondary {
    color: var(--text-gray);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

.share-section .btn-outline-secondary:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

/* ===== Similar Properties Grid ===== */
.similar-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== Footer ===== */
footer {
    background-color: #1a1a1a !important;
    color: var(--white);
}

footer h5, footer h6 {
    color: var(--primary-gold);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-gold) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .property-card-list {
        flex-direction: column;
    }

    .property-card-list-image {
        width: 100%;
        height: 200px;
    }

    .property-main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 1.8rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .filter-section {
        padding: 1.5rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-card-list-content {
        padding: 1.5rem;
    }

    .info-card, .enquiry-form-card {
        padding: 1.5rem;
    }

    .property-main-image {
        height: 300px;
    }

    .property-details-section .row {
        gap: 1rem !important;
    }

    .detail-item {
        padding: 1rem;
    }

    .similar-properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .banner-title {
        font-size: 1.3rem;
    }

    .property-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .filter-section .row {
        gap: 1rem !important;
    }

    .btn-group {
        width: 100%;
    }

    .btn-group button {
        flex: 1;
    }

    .quick-info {
        gap: 1rem !important;
    }

    .detail-icon {
        font-size: 2rem;
    }

    .detail-value {
        font-size: 1.1rem;
    }
}

/* ===== Lightbox Customization ===== */
.lightbox {
    background: rgba(0, 0, 0, 0.95);
}

.lb-outerContainer {
    border-radius: 4px;
}

.lb-nav a.lb-prev, .lb-nav a.lb-next {
    background: rgba(197, 164, 87, 0.8);
}

.lb-nav a.lb-prev:hover, .lb-nav a.lb-next:hover {
    background: var(--primary-gold);
}

.lb-close {
    background: rgba(197, 164, 87, 0.8);
}

.lb-close:hover {
    background: var(--primary-gold);
}

.buy-banner{background: url(/wp-content/uploads/2025/12/buy-banner.jpg) no-repeat; background-size: cover;}
.term-buy .buy-banner{background: url(/wp-content/uploads/2025/12/buy-house.jpg) no-repeat; background-size: cover;}
.term-sell .buy-banner{background: url(/wp-content/uploads/2025/12/sale-house.jpg) no-repeat; background-size: cover;}

/* ===== Full-Width Slider ===== */
.full-width-slider {
  width: 100%;
}

.full-width-slider .carousel {
  width: 100%;
  margin: 0;
}

.full-width-slider .carousel-inner {
  background: #e9ecef;
}

.slider-main-image {
  height: 500px;
  object-fit: cover;
}

.thumbnail-nav-container {
  padding: 0 15px;
}

.thumbnail-nav {
  border-radius: 4px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  max-height: 120px;
  object-fit: cover;
}

.thumbnail-nav:hover {
  border-color: #c5a457;
  transform: scale(1.02);
}

.thumbnail-nav.active {
  border-color: #c5a457;
  box-shadow: 0 0 0 3px rgba(197, 164, 87, 0.2);
}

.carousel-control-prev,
.carousel-control-next {
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

.description-section ul li{list-style: none;}
.description-section ul{padding-left: 0px;}

@media (max-width: 768px) {
  .slider-main-image {
    height: 300px;
  }
}


.container{max-width: 1410px !important;}