
/* =====================================================
   GLOBAL LAYOUT SYSTEM
===================================================== */

.kg-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 14px;
}

.kg-header-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===========================
   HEADER
=========================== */

.kg-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.kg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.kg-logo-img {
    max-height: 42px;
    width: auto;
    display: block;
}

/* Mobile logo control */

@media (max-width:480px){

.kg-logo-img{
    max-height:32px;
}

.kg-post-btn{
    font-size:12px;
    padding:8px 12px;
}

}

/* ==============================
   HOMEPAGE CATEGORY GRID
============================== */

.kg-home-categories {
    padding: 20px 15px 40px;
    background: #f8f9fb;
    min-height: 100vh;
}

.kg-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.kg-category-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    color: #222;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.15s ease;
}

.kg-category-card:active {
    transform: scale(0.95);
}

.kg-category-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.kg-category-label {
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .kg-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==============================
        property GRID
============================== */

.kg-property-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:14px;
margin-top:18px;
}

@media(min-width:768px){
.kg-property-grid{
grid-template-columns:repeat(3,1fr);
}
}

/* =====================================================
   CATEGORY PAGE
===================================================== */

.kg-category-content {
    max-width: 1100px;
    margin: auto;
}


/* =====================================================
   CATEGORY FILTER BAR
===================================================== */

.kg-filter-wrapper {
    margin-top: 12px;
    margin-bottom: 10px;
}

.kg-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    margin-top: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.kg-filter-bar input,
.kg-filter-bar select,
.kg-filter-bar button {
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.kg-filter-bar button {
    grid-column: span 2;
    background: #1f7ae0;
    color: #fff;
    border: none;
    font-weight: 600;
}

/* Desktop */

@media (min-width: 768px) {

    .kg-filter-bar {
        grid-template-columns: repeat(5, 1fr);
    }

    .kg-filter-bar button {
        grid-column: span 1;
    }

}


/* =====================================================
   CATEGORY GRID
===================================================== */

.kg-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (min-width:768px) {

    .kg-category-grid {
        grid-template-columns: repeat(4,1fr);
    }

}


/* =====================================================
   FORM LAYOUT
===================================================== */

.ukp-form-wrapper {
    max-width: 700px;
    margin: auto;
}

.ukp-form-wrapper label {
    font-weight: 600;
    font-size: 14px;
}

.ukp-form-wrapper input,
.ukp-form-wrapper textarea,
.ukp-form-wrapper select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===========================
   HEADER ACTION BUTTONS
=========================== */

.kg-user-link {
    display: flex;
    gap: 10px;
}

.kg-post-btn {
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.kg-post-btn:hover {
    opacity: 0.9;
}

.kg-btn-outline {
    border: 1px solid #1f7ae0;
    color: #1f7ae0;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

/* ===========================
   SELLER DASHBOARD
=========================== */

.ukp-app-content{
    max-width:900px;
    margin:auto;
}

.ukp-app-content h2{
    margin-bottom:20px;
}

.ukp-property-card{
    margin-bottom:20px;
}

/* Property form */

.ukp-app-form{
    margin-top:30px;
}

.ukp-app-form form{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.ukp-app-form input,
.ukp-app-form select,
.ukp-app-form textarea{
    width:100%;
}

/* ===========================
   LOGIN PAGE
=========================== */

.ukp-submit-header{
    margin-bottom:20px;
}

.ukp-submit-header h1{
    font-size:24px;
}

.ukp-submit-header p{
    font-size:14px;
    color:#666;
}

.ukp-submit-form{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.ukp-submit-form input{
    width:100%;
}

/* ===========================
   FOOTER
=========================== */

.kg-footer{
    margin-top:40px;
    padding:20px 16px;
    background:#fff;
    border-top:1px solid #eee;
    font-size:14px;
}

.kg-footer-inner{
    max-width:1100px;
    margin:auto;
}

.kg-footer-links{
    display:flex;
    gap:14px;
    margin-bottom:8px;
    flex-wrap:wrap;
}

.kg-footer-links a{
    text-decoration:none;
    color:#555;
}

.kg-footer-links a:hover{
    color:#000;
}

/* ===========================
SELLER DASHBOARD FORM
=========================== */

.ukp-app-form{
max-width:700px;
margin:30px auto;
background:#fff;
padding:20px;
border-radius:14px;
box-shadow:0 4px 14px rgba(0,0,0,0.06);
}

.ukp-app-form form{
display:flex;
flex-direction:column;
gap:12px;
}

.ukp-app-form input,
.ukp-app-form select,
.ukp-app-form textarea{
width:100%;
padding:12px;
border-radius:10px;
border:1px solid #ddd;
font-size:14px;
}

.ukp-app-form textarea{
min-height:100px;
resize:vertical;
}

/* ===========================
PROPERTY CARD
=========================== */

.kg-property-card{
background:#fff;
border-radius:14px;
overflow:hidden;
box-shadow:0 4px 12px rgba(0,0,0,0.06);
transition:0.15s ease;
}

.kg-property-card:active{
transform:scale(0.97);
}

.kg-property-link{
text-decoration:none;
color:inherit;
display:block;
}

.kg-property-image img{
width:100%;
height:160px;
object-fit:cover;
display:block;
}

.kg-property-info{
padding:12px;
}

.kg-card-price{
font-size:16px;
font-weight:700;
color:#1f7ae0;
margin-bottom:4px;
}

.kg-card-purpose{
font-size:11px;
background:#eef3ff;
display:inline-block;
padding:3px 7px;
border-radius:6px;
margin-bottom:6px;
}

.kg-card-title{
font-size:15px;
font-weight:600;
margin:4px 0;
line-height:1.3;
}

.kg-card-location{
font-size:13px;
color:#666;
}



/* ===========================
SINGLE SEARCH
=========================== */
.kg-single-search{
display:flex;
gap:10px;
margin-bottom:20px;
}

.kg-single-search input{
flex:1;
padding:12px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
}

.kg-single-search button{
background:#2f7bdc;
color:#fff;
border:none;
padding:12px 20px;
border-radius:8px;
cursor:pointer;
}