/* =========================================================
   propertiku-theme.css
   Tema khusus aplikasi properti. Di atas framework-global.css
   Ubah --brand-* di :root untuk ganti tema warna.
   ========================================================= */

:root {
  /* ---- Brand override (Oranye Hangat) ---- */
  --brand-main:       #ea580c;   /* Oranye utama */
  --brand-main-dark:  #c2410c;   /* Oranye gelap untuk hover */
  --brand-accent:     #0d6efd;   /* Aksen biru (opsional) */
  --brand-gradient:   linear-gradient(135deg, #f97316 0%, #ea580c 100%);

  /* ---- Spesifik properti ---- */
  --card-radius:      0.5rem;
  --card-hover-lift:  0 12px 24px -8px rgba(234, 88, 12, 0.25); /* Bayangan oranye */
  --hero-height:      clamp(400px, 60vh, 600px);
}

/* =========================================================
   SECTION HELPERS
   ========================================================= */
.section          { padding: var(--sp-7) 0; }
.section-sm       { padding: var(--sp-5) 0; }
.section-title    { font-size: 1.75rem; font-weight: 700; margin-bottom: var(--sp-2); }
.section-subtitle { color: var(--c-muted); margin-bottom: var(--sp-5); }

/* =========================================================
   HERO (Beranda)
   ========================================================= */
.hero {
  position: relative;
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  background: var(--brand-gradient);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-title {
  font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-3);
}
.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: var(--sp-5);
}

/* Search box di hero */
.hero-search {
  background: #fff;
  border-radius: var(--card-radius);
  padding: var(--sp-2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.hero-search form {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.hero-search .form-control,
.hero-search .form-select {
  flex: 1 1 160px;
  border: 1px solid #e0e0e0;
}
.hero-search .btn {
  flex: 0 0 auto;
  padding: 0.625rem 1.5rem;
}

@media (max-width: 575.98px) {
  .hero-search form { flex-direction: column; }
  .hero-search .btn { width: 100%; }
}

/* =========================================================
   PROPERTY CARD (Grid kartu properti)
   ========================================================= */
.property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-lift);
  border-color: var(--brand-main);
}

/* Media (gambar) */
.property-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-gray-200);
}
.property-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.property-card:hover .property-card-media img {
  transform: scale(1.05);
}
.property-card-media .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--c-gray-500);
  font-size: 2rem;
}

/* Badges di atas gambar */
.property-card-badges {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.property-card-badges .badge {
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
  backdrop-filter: blur(4px);
}

/* Body */
.property-card-body {
  flex: 1 1 auto;
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.property-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-main);
  line-height: 1.2;
}
.property-card-price small {
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.property-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.property-card-location {
  font-size: 0.85rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.property-card-specs {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.8rem;
  color: var(--c-gray-700);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-2);
  margin-top: auto;
}
.property-card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Footer */
.property-card-footer {
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--c-border);
  background: var(--c-gray-100);
  font-size: 0.75rem;
  color: var(--c-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   PROPERTY TYPE GRID (Kategori tipe)
   ========================================================= */
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  text-decoration: none;
  color: var(--c-body);
  transition: all 0.2s ease;
  text-align: center;
}
.type-card:hover {
  border-color: var(--brand-main);
  color: var(--brand-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.type-card .type-icon {
  font-size: 2rem;
  line-height: 1;
}
.type-card .type-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* =========================================================
   CATEGORY SPLIT (Primary vs Secondary)
   ========================================================= */
.category-split-card {
  display: block;
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--card-radius);
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.category-split-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.category-split-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}
.category-split-card p {
  opacity: 0.9;
  margin-bottom: var(--sp-3);
}
.category-split-card .btn {
  background: #fff;
  color: var(--c-body);
}
.category-split-primary   { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.category-split-secondary { background: linear-gradient(135deg, #6c757d, #495057); }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background: var(--brand-gradient);
  color: #fff;
  padding: var(--sp-7) var(--sp-4);
  border-radius: var(--card-radius);
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-section p  { opacity: 0.92; margin-bottom: var(--sp-4); }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--c-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: var(--sp-3); }
.empty-state h3 { color: var(--c-gray-700); margin-bottom: var(--sp-2); }



/* =========================================================
   WRAPPER LINK UNTUK KARTU PROPERTI (full clickable)
   ========================================================= */
.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    cursor: pointer;
}
.property-card-link:hover {
    text-decoration: none;
    color: inherit;
}
.property-card-link:focus-visible {
    outline: 3px solid rgba(var(--c-primary-rgb), .35);
    outline-offset: 4px;
    border-radius: var(--card-radius);
}


/* =========================================================
   PROPERTY DETAIL PAGE
   ========================================================= */
.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding: var(--sp-3) 0;
    font-size: 0.875rem;
    color: var(--c-muted);
}
.breadcrumb-nav a { color: var(--c-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--brand-main); }
.breadcrumb-nav .separator { color: var(--c-gray-400); }

.property-detail-header {
    padding: var(--sp-2) 0 var(--sp-4);
    border-bottom: 1px solid var(--c-border);
    margin-bottom: var(--sp-4);
}
.property-detail-title {
    font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
    font-weight: 700;
    margin-bottom: var(--sp-2);
    line-height: 1.3;
}
.property-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    font-size: 0.875rem;
    color: var(--c-muted);
    align-items: center;
}
.property-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 8px;
    background: var(--c-gray-100);
    border-radius: 4px;
    color: var(--c-gray-700);
}

/* Galeri */
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--c-gray-200);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: var(--sp-2);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: var(--c-gray-500);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--sp-2);
}
.gallery-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.gallery-thumb.active { border-color: var(--brand-main); }
.gallery-thumb:hover { border-color: var(--c-gray-400); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info card */
.info-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
}
.info-card h2 {
    font-size: 1.125rem;
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

/* Spesifikasi */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--sp-3);
}
.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-item .spec-label { font-size: 0.75rem; color: var(--c-muted); }
.spec-item .spec-value { font-size: 0.95rem; font-weight: 600; color: var(--c-body); }

/* Fasilitas */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-2);
}
.facility-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.9rem;
    background: var(--c-gray-100);
    border-radius: var(--radius);
}

/* Price box */
.price-box {
    background: linear-gradient(135deg, var(--brand-main), var(--brand-main-dark));
    color: #fff;
    border-radius: var(--card-radius);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
    box-shadow: var(--shadow-md);
}
.price-box .price-label { font-size: 0.8rem; opacity: 0.9; margin-bottom: var(--sp-1); }
.price-box .price-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.price-box .price-period { font-size: 0.9rem; opacity: 0.9; margin-top: var(--sp-1); }

/* Contact form card */
.contact-form-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    padding: var(--sp-4);
    position: sticky;
    top: var(--sp-4);
}
@media (max-width: 991.98px) {
    .contact-form-card { position: static; }
}

/* Flash alert */
.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-3);
    font-size: 0.9rem;
}
.alert-danger {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-3);
    font-size: 0.9rem;
}

/* Honeypot: tidak terlihat user, tapi bot akan mengisinya */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}


/* =========================================================
   NAVBAR STICKY & SMOOTH MOBILE MENU
   ========================================================= */

/* 1. Navbar Menempel di Atas (Sticky) */
.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky); /* Mengambil nilai 1020 dari framework-global.css */
    box-shadow: var(--shadow-sm);
    background-color: #fff; /* Pastikan background solid agar konten di bawahnya tidak tembus */
    transition: box-shadow 0.3s ease;
}

/* 2. Animasi Smooth untuk Mobile Menu */
@media (max-width: 767.98px) {
    /* Sembunyikan menu dengan animasi max-height, bukan display:none */
    .navbar-collapse {
        display: block !important; /* Paksa block agar transisi berjalan */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        margin-top: 0;
        border: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    /* Saat class .show aktif (diklik via JS) */
    .navbar-collapse.show {
        max-height: 500px; /* Nilai max-height yang cukup untuk menampung menu */
        opacity: 1;
        margin-top: var(--sp-2);
        padding: var(--sp-2);
        background: #fff;
        border: 1px solid var(--c-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
    }
    
    /* Rapikan list menu */
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .navbar-nav .nav-link {
        padding: var(--sp-3) var(--sp-4);
        border-bottom: 1px solid var(--c-gray-200);
        border-radius: 0;
    }
    
    .navbar-nav li:last-child .nav-link {
        border-bottom: 0;
    }
}


/* =========================================================
   FIX HERO SEARCH BOX MOBILE (Screenshot 2)
   ========================================================= */
@media (max-width: 767.98px) {
    .hero-search form {
        flex-direction: column;
    }
    .hero-search .form-control,
    .hero-search .form-select,
    .hero-search .btn {
        width: 100%;
        flex: none;
    }
}




/* =========================================================
   PROPERTY LIST PAGE (Filter Sidebar)
   ========================================================= */
.filter-sidebar {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    padding: var(--sp-4);
    position: sticky;
    top: 80px; /* Jarak dari navbar sticky */
}
@media (max-width: 991.98px) {
    .filter-sidebar { position: static; margin-bottom: var(--sp-4); }
}

/* Jarak antar form di sidebar */
.filter-sidebar .form-control-sm,
.filter-sidebar .form-select-sm {
    padding: .375rem .5rem;
    font-size: .875rem;
}



/* Contact Page */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    font-size: 1.25rem;
    flex-shrink: 0;
}




/* =========================================================
   REQUIREMENT CARDS (WTB/WTR)
   ========================================================= */
.requirement-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--brand-main); /* Aksen kiri */
    border-radius: var(--card-radius);
    padding: var(--sp-4);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.requirement-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.requirement-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--sp-2);
    line-height: 1.4;
}
.requirement-title a {
    color: var(--c-body);
    text-decoration: none;
}
.requirement-title a:hover {
    color: var(--brand-main);
}

.requirement-budget {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-main);
    margin-bottom: var(--sp-3);
}

.requirement-meta {
    display: flex;
    gap: var(--sp-3);
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-top: auto;
}



/* =========================================================
   ARTICLE CARDS & DETAIL
   ========================================================= */
.article-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-main); /* tambahan list warna */
}
.article-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--c-gray-100);
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-card:hover .article-card-img img {
    transform: scale(1.05);
}
.article-card-body {
    padding: var(--sp-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--sp-2);
    line-height: 1.4;
}
.article-card-title a {
    color: var(--c-body);
    text-decoration: none;
}
.article-card-title a:hover {
    color: var(--brand-main);
}
.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--c-muted);
    margin-bottom: var(--sp-3);
    flex: 1;
}
.article-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--c-gray-500);
    border-top: 1px solid var(--c-border);
    padding-top: var(--sp-2);
}

/* Article Detail Typography */
.article-detail-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--sp-3);
    color: var(--c-gray-900);
}
.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    font-size: 0.9rem;
    color: var(--c-muted);
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-gray-800);
}
/* Styling bawaan untuk isi Rich Editor Filament */
.article-content p { margin-bottom: var(--sp-4); }
.article-content h2, .article-content h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); color: var(--c-gray-900); }
.article-content img { border-radius: var(--radius); margin: var(--sp-4) 0; max-width: 100%; height: auto; }
.article-content ul, .article-content ol { margin-bottom: var(--sp-4); padding-left: var(--sp-5); }
.article-content blockquote {
    border-left: 4px solid var(--brand-main);
    background: var(--c-gray-100);
    padding: var(--sp-3) var(--sp-4);
    margin: var(--sp-4) 0;
    font-style: italic;
}



/* =========================================================
   FULLY CLICKABLE CARDS (Article & Requirement)
   ========================================================= */
.article-card-link,
.requirement-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    cursor: pointer;
}

.article-card-link:hover,
.requirement-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-card-link:focus-visible,
.requirement-card-link:focus-visible {
    outline: 3px solid rgba(var(--c-primary-rgb), .35);
    outline-offset: 4px;
    border-radius: var(--card-radius);
}

/* Pindahkan efek hover dari kartu ke wrapper link */
.article-card,
.requirement-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card-link:hover .article-card,
.requirement-card-link:hover .requirement-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Pastikan tombol di dalam link tidak biru/bergaris bawah */
.requirement-card-link .btn-outline-primary {
    text-decoration: none;
}



/* Advertisement Slot */
.ad-container {
    overflow: hidden;
    padding: var(--sp-2) 0;
}


/* =========================================================
   AFFILIATE CARDS & DETAIL
   ========================================================= */
.affiliate-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.affiliate-card-link:hover { color: inherit; text-decoration: none; }
.affiliate-card-link:hover .affiliate-card { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-main); }

.affiliate-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.affiliate-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--c-gray-100);
    overflow: hidden;
}
.affiliate-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.affiliate-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--c-danger);
    color: #fff;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}
.affiliate-platform {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.affiliate-card-body {
    padding: var(--sp-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.affiliate-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.affiliate-card-price-box {
    margin-bottom: var(--sp-2);
}
.affiliate-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-main);
}
.affiliate-price-original {
    font-size: 0.8rem;
    color: var(--c-muted);
    text-decoration: line-through;
}

.affiliate-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--c-muted);
    margin-bottom: var(--sp-1);
}

.affiliate-card-location {
    font-size: 0.75rem;
    color: var(--c-gray-500);
}

.affiliate-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--c-gray-100);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
}
.affiliate-main-img img { width: 100%; height: 100%; object-fit: contain; }


/* =========================================================
   PROJECTS (PRIMARY) CARDS & DETAIL
   ========================================================= */
.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.project-card-link:hover { color: inherit; text-decoration: none; }
.project-card-link:hover .project-card { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-main); }

.project-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.project-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--c-gray-200);
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; }

.project-kawasan-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.project-card-body {
    padding: var(--sp-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--sp-1);
}

.project-card-meta {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-bottom: var(--sp-3);
}

.project-main-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--c-gray-100);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
}
.project-main-img img { width: 100%; height: 100%; object-fit: cover; }



/* =========================================================
   GO TO TOP BUTTON
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    
    /* Animasi transisi */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Class 'show' akan ditambahkan oleh JavaScript saat halaman di-scroll */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--brand-main-dark);
    transform: translateY(-5px); /* Efek melayang saat di-hover */
    box-shadow: var(--shadow-lg);
}




/* =========================================================
   WHY CHOOSE US CARDS
   ========================================================= */
.why-us-card {
    text-align: center;
    padding: var(--sp-4) var(--sp-3);
    background: var(--c-gray-100);
    border-radius: var(--card-radius);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}
.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: #fff;
    border-color: var(--brand-main);
}
.why-us-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    box-shadow: var(--shadow-sm);
    color: var(--brand-main);
}




/* =========================================================
   SECTION LAYANAN KAMI
   ========================================================= */
.section-layanan {
    padding: var(--sp-7) 0;
}

.layanan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-4);
    margin-top: var(--sp-5);
}

.layanan-item {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Efek garis oranye di atas saat di-hover */
.layanan-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.layanan-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.layanan-item:hover::before {
    transform: scaleX(1);
}

.layanan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--c-gray-100);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: var(--sp-3);
    transition: background 0.3s ease;
}

.layanan-item:hover .layanan-icon {
    background: var(--brand-main);
    color: #fff;
}

.layanan-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--sp-2);
    color: var(--c-gray-900);
}

.layanan-item p {
    font-size: 0.9rem;
    color: var(--c-muted);
    margin-bottom: 0;
    line-height: 1.6;
}


/* =========================================================
   SHARE BUTTONS
   ========================================================= */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--c-gray-700);
    border-color: var(--c-border);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.btn-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.btn-copy:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.btn-copy.copied { background: var(--c-success); color: #fff; border-color: var(--c-success); }


/* =========================================================
   HEROICONS SIZE & COLOR HELPER
   ========================================================= */
   .icon-sm { width: 20px; height: 20px; }
   .icon-md { width: 24px; height: 24px; }
   .icon-lg { width: 32px; height: 32px; }
   
   /* Pewarnaan Ikon (mengambil warna dari framework Anda) */
   .text-primary { color: var(--brand-main) !important; }
   .text-warning { color: var(--brand-accent) !important; }
   .text-success { color: var(--c-success) !important; }
   .text-info    { color: var(--c-info) !important; }
   .text-danger  { color: var(--c-danger) !important; }


   