:root {
    --bs-dark: #212121;
    --hijau-tua: #2e7d32;
    --hijau-muda: #4caf50;
    --putih: #ffffff;
    --abu: #f5f5f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --primary-dark: #1b5e20;
    --merah-muda: #f30d0d;
    --merah-tua: #cd0404;

}

body {
    background-color: var(--abu);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;

    margin: 0;
    padding: 0;
    box-sizing: border-box;

    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.logo {
    width: 30px;
    height: 30px;
    border: 1px solid var(--bs-dark);
    object-fit: cover;
}

.circle {
    border-radius: 50%;
}

/* .hidden-element {
    display: none;
} */

.capital {
    text-transform: capitalize;
}



.img-navbar {
    border: solid 1px;
    height: 20px;
    width: 20px;
}

.bg-green {
    background-color: var(--hijau-tua);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../img/land-hero.jpg') no-repeat center center/cover;
    padding-top: 80px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}



/* Kavling */
.halaman-kavling {
    background-color: #f8f9fa;
}

/* Header perbaiki bagian url*/
.header-kavling {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url("<?= base_url('assets/img/bg-pattern.png') ?>");
    background-size: cover;
}

.judul-utama {
    color: #2e7d32;
    font-weight: 700;
    font-size: 2.5rem;
}

.subjudul {
    color: #6c757d;
    font-size: 1.1rem;
}

.filter-utama {
    border-radius: 10px;
    border: none;
}

/* navbar */
.nav-link-login {
    color: var(--primary-dark);
    /* background-color: #2e7d32; */
    /* padding: 1px 1px; */
}



/* halaman login */
/* .header-mobile {
    display: none;
} */

.login-layout {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .login-container {
    width: 100%;
    max-width: 400px;
} */

.login-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.header-login {
    background-color: var(--hijau-tua);
    color: white;
    text-align: center;
    padding: 20px;
    border-bottom: none;
}

.card-body {
    padding: 30px;
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
}

.btn-login {
    background-color: var(--hijau-tua);
    border: none;
    padding: 12px;
    font-weight: 600;
    width: 100%;
}

.btn-login:hover {
    background-color: var(--hijau-muda);
}

.input-group-text {
    background-color: white;
    border-right: none;
    height: 50px;
}



/* halaman registrasi */
.registrasi-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.registrasi-card {
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: var(--putih);
}

.card-header {
    background-color: var(--hijau-tua);
    color: var(--putih);
    padding: 1.5rem;
    text-align: center;
}

.card-header h3 {
    margin-bottom: 0;
}

.form-section {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--hijau-tua);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--hijau-tua);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}


.btn-registrasi {
    background-color: var(--hijau-tua);
    color: var(--putih);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-registrasi:hover {
    background-color: var(--hijau-muda);
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
}

.login-link a {
    color: var(--hijau-tua);
    font-weight: 600;
    text-decoration: none;
}



/* halaman profil */
.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.profile-card {
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: var(--putih);
}

.profile-header {
    background-color: var(--hijau-tua);
    color: var(--putih);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--putih);
    object-fit: cover;
    margin-bottom: 1rem;
}

.edit-profile {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--putih);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: rotate(15deg);
}

.profile-body {
    padding: 2rem;
}

.nav-pills .nav-link.active {
    background-color: var(--hijau-tua);
}

.nav-pills .nav-link {
    color: var(--hijau-tua);
}

.info-label {
    font-weight: 600;
    color: var(--hijau-tua);
    margin-bottom: 0.5rem;
}

.info-value {
    background-color: var(--abu);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.btn-edit {
    background-color: var(--hijau-tua);
    color: var(--putih);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background-color: var(--hijau-muda);
    transform: translateY(-2px);
}

.btn-logout {
    background-color: var(--merah-tua);
    color: var(--putih);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: var(--merah-muda);
    transform: translateY(-2px);
}

.kavling-item {
    border-left: 4px solid var(--hijau-tua);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bs-dark);
    width: 80%;
}


/* detail kavling */
.detail-kavling-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hidden {
    display: none;
}

.detail-kavling-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.property-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.property-images {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

.property-details {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.property-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary);
}

.property-location {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-light);
}

.location-icon {
    margin-right: 8px;
    color: var(--primary);
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    background: var(--secondary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.feature-icon {
    margin-right: 6px;
    color: var(--primary);
}

.property-description {
    margin-bottom: 25px;
    color: var(--text-light);
}

.action-section {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.action-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.booking-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.btn-detail-kavling {
    margin-top: 15px;
    gap: 8px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--hijau-tua);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    /* display: flex;
    align-items: center;
    justify-content: center; */
    /* gap: 8px; */
    /* margin-top: 15px; */
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.hidden-text {
    visibility: hidden;
}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
    }

    .nav-links a {
        margin: 0;
    }

    .main-image {
        height: 300px;
    }

}





/* detail kredit */
.detail-kredit {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 60px;
    padding: 20px;
}

.header {
    background-color: #2c3e50;
    color: white;
    padding: 30px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.header h1 {
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.kavling-detail,
.credit-detail {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.kavling-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.kavling-gallery img {
    width: 100%;
    /* height: 180px; */
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.kavling-gallery img:hover {
    transform: scale(1.03);
}

.main-image {
    grid-column: span 2;
    height: 300px;
}

.kavling-info {
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: bold;
    color: #7f8c8d;
    display: block;
    margin-bottom: 10px;
}

.info-value {
    font-size: 1.1em;
}

.price {
    font-size: 1.8em;
    font-weight: bold;
    color: #e74c3c;
    margin: 15px 0;
}

.credit-summary {
    margin-bottom: 30px;
}

.payment-plan {
    margin-top: 30px;
}

.payment-steps {
    margin-top: 20px;
}

.payment-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ecf0f1;
}

.step-number {
    background-color: #3498db;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.8em;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.step-desc {
    font-size: 0.9em;
    color: #7f8c8d;
}

.document-list {
    margin-top: 30px;
}

.document-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.document-icon {
    margin-right: 10px;
    color: #3498db;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payment-table th,
.payment-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.payment-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.payment-table tr:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .kavling-gallery {
        grid-template-columns: 1fr;
    }

    .main-image {
        grid-column: span 1;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}








/*dekstop*/
@media (min-width: 769px) {

    /* login */
    .header-mobile {
        display: none;
    }


    /* profil kavling-saya */
    .kavling-item {
        width: 80%;
    }

    .setting-width {
        width: 70%;
    }

    /* .hidden-element {
        display: none;
    } */

    /* register */
    /* .registrasi-container {
        width: 100%;
        max-width: 800px;
        margin: 2rem auto;
        padding: 0 1rem;
    } */
}

/* tablet */



/* mobile */
@media (max-width: 768px) {

    /* beranda */
    .hero-section {
        height: auto;
        padding: 100px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .btn {
        width: 100%;
    }

    .d-flex.justify-content-center {
        flex-direction: column;
        gap: 1rem;

    }

    .btn-in-mobile {
        margin-top: 10px;
    }

    .wa-in-mobile {
        margin-top: 5px;
    }


    /* login */
    .header-login {
        display: none;
    }

    .login-layout {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-login {
        background-color: var(--hijau-tua);
        border: none;
        padding: 12px;
        font-weight: 600;
        width: 100%;
    }

    /* register */
    .registrasi-container {
        padding: 0;
        margin: 0;
    }

    .registrasi-card {
        border-radius: 0;
        box-shadow: none;
    }

    .form-section {
        padding: 1.5rem;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    /* Profil */
    .profile-container {
        padding: 0;
    }

    .profile-card {
        border-radius: 0;
    }

    .profile-header {
        padding: 1.5rem;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .profile-body {
        padding: 1.5rem;
    }

    /* profil  */
    /* kavling-saya */
    .kavling-item {
        width: 100%;
    }

    /* pengaturan */
    .setting-width {
        width: 100%;
    }

    /* edit profile */
    .width-edit-profil {
        width: 100%;
    }

    .margin {
        margin-top: 6rem;
    }

    /* detail kavling */
    .main-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .kavling-gallery img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 5px;
        cursor: pointer;
        transition: transform 0.3s;
    }

    /* .hidden-element {
        display: none;
    } */


    /* detail kredit */
    .table-responsive table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive td:nth-child(1),
    .table-responsive td:nth-child(2) {
        white-space: nowrap;
    }

}






@media (min-width: 992px) {
    .form-section {
        padding: 2.5rem;
    }

    .width-edit-profil {
        width: 50%;
    }

    .margin {
        margin-top: 6rem;
    }
}