/* Body */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #111; /* dark background */
    font-family: sans-serif;
}

.papa
{
   background: #111;
    display: flex;
    justify-content: center;
    font-family: sans-serif;
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;  /* 🔥 यही main fix */
    padding: 5px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 999;
    animation: blink 1s infinite;
}



.ad-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;

    display: inline-block !important;
    width: fit-content !important;   /* 🔥 FINAL FIX */

    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 9999;

    white-space: nowrap;   /* 🔥 text wrap nahi hoga */
    animation: blink 1s infinite;
}

/* COLORS */
.ad-badge.premium {
    background: gold;
    color: black;
}

.ad-badge.super {
    background: red;
    color: #fff;
}

.ad-badge.top {
    background: blue;
    color: #fff;
}
.action-btn.remove {
    background: gray;
}

/* ANIMATION */
@keyframes blink {
    0% {opacity:1;}
    50% {opacity:0.3;}
    100% {opacity:1;}
}
.form-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px;
    width: 370px;
    min-height: 480px; /* height increase */
    color: #fff;
    

    /* 🔥 Premium Border */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Glow Effect */
    box-shadow: 
        0 0 20px rgba(255,255,255,0.1),
        0 0 40px rgba(255,255,255,0.05);
}
/* Heading */
.form-box h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* Input Box */
.input-box {
    position: relative;
    margin-bottom: 20px;
}

/* Inputs */
.input-box input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    outline: none;
}

/* Placeholder */
.input-box input::placeholder {
    color: #ccc;
}

/* Eye Icon */
.eye {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
}

/* Terms */
.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #222;
}

/* Links */
.extra-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
}

.extra-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
    transition: 0.3s;
}

.extra-links a:hover {
    color: #fff;
}

.extra-links span {
    color: #555;
}
/* Big Form post an add */

.form-container {
   width: 1000px;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    flex-direction: column; /* stack H2 and form vertically */
    align-items: center;    /* center content horizontally */
    box-sizing: border-box;
  height: 100%;
}

/* Form Title */
.form-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #ffdd57; /* visible color */
}

/* Big Form */
.big-form {
    width: 100%;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Form Columns */
.form-col label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-col input,
.form-col select,
.form-col textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
color: rgba(255,255,255,0.7);
    font-size: 16px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
        width: 100%;
height: 200px;
}

/* Submit Button */
button {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(90deg,#ff6a00,#ee0979);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}
.note {
    font-size: 12px;
    color: #aaa;
}
/* Select Dropdown */
select {
    background-color: rgba(0,0,0,0.6); /* semi-dark background */
    color: #fff; /* text white for visibility */
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 12px;
    appearance: none; /* remove default arrow */
    font-size: 16px;
}

/* Dropdown Options */
select option {
    background-color: rgba(0,0,0,0.8); /* dark background for options */
    color: #fff; /* text white */
}

/* Optional: hover on option */
select option:hover {
    background-color: #333;
}



.page-title {
    text-align: center;
    margin: 30px 0;
    color: #ffdd57;
}

.ads-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.ad-card {
    display: flex;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ad-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.ad-details {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-title {
    margin: 0 0 10px;
    color: #ffdd57;
       max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.ad-description {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
    max-height: 60px;           /* card me height fix */
    overflow: hidden;           /* extra content hide */
    text-overflow: ellipsis;    /* "..." show */
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* max 3 lines */
    -webkit-box-orient: vertical;
    line-height: 1.4em;   
}

.personal-info span {
    display: inline-block;
    margin-right: 15px;
    font-size: 13px;
    color: #aaa;
}


/* single add*/
/* MAIN BOX */
.profile-section {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* LEFT SIDE */
.left-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.large-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    
}

.large-image img {
width:100%;
    height: 350px; /* fixed height */
    object-fit: cover; /* poori image dikhe */
    background: #f5f5f5; /* empty space hide */
}

.small-images {
    display: flex;
    gap: 15px;
}

.small-images div {
    width: 50%;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
}

.small-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT SIDE */
.right-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 14px;
}

.label {
    font-weight: bold;
    color: #ffdd57;
    min-width: 120px;
}

.value {
    color: #ccc;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ABOUT */
.about-me {
    max-width: 1000px;
    margin: 20px auto;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);

    /* REMOVE SCROLL */
    max-height: none;
    overflow: visible;
        word-break: break-word;

}

.about-me h3 {
    margin-top: 0;
    color: #ffdd57;
}

.about-me p {
    margin: 8px 0 0 0;
    color: #ccc;
}
.profile-title {
    max-width: 1000px;
    margin: 20px auto 10px;
    font-size: 28px;
    font-weight: bold;
    color: #ffdd57;
}
/* end single add*/
.contact-buttons {
    display: flex;
    justify-content: center;  /* center horizontally */
    gap: 20px;               /* spacing between buttons */
    margin: 20px 0;          /* top and bottom spacing */
}

.contact-buttons .btn {
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

/* Phone button */
.btn-phone {
    background-color: #2196F3;
}
.btn-phone:hover {
    background-color: #1976D2;
}

/* WhatsApp button */
.btn-whatsapp {
    background-color: #25D366;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Unique Search Form Styling */
.search-form-unique {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

/* State input */
.search-input-state {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* City input */
.search-input-city {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Search button */
.search-btn {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #2196F3;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #1976D2;
}
/* Dashboard Unique Styling */
.dashboard-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    color: #fff;
    font-family: Arial, sans-serif;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.user-info span {
    font-size: 16px;
}

.quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-links a {
    text-decoration: none;
    background-color: #2196F3;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.quick-links a:hover {
    background-color: #1976D2;
}

/* ---------------- BUTTON GROUP ---------------- */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* ---------------- BASE BUTTON STYLE ---------------- */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    display: inline-block;
}

/* ---------------- VIEW BUTTON ---------------- */
.btn-view {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---------------- EDIT BUTTON ---------------- */
.btn-edit {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---------------- DELETE BUTTON ---------------- */
.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---------------- OPTIONAL: Smooth Transition on Cards ---------------- */
.ad-card {
    transition: all 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* ---------------- TABLET RESPONSIVE (768px - 1024px) ---------------- */
/* ================= TABLET (max-width: 1024px) ================= */
@media screen and (max-width: 1024px) {

    * {
        box-sizing: border-box;
    }

    /* Forms */
    .form-container {
        width: 90%;
        padding: 30px;
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    /* Profile */
    .profile-section {
        flex-direction: column;
        padding: 20px;
    }

    .left-images, 
    .right-details {
        width: 100%;
    }

    .large-image {
        height: 250px;
    }

    .small-images div {
        height: 100px;
    }

    /* Ads */
    .ad-card {
        flex-direction: column;
        align-items: flex-start;   /* FIX */
        text-align: left;          /* FIX */
    }

    .ad-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .ad-details {
        width: 100%;
    }

    /* Contact Buttons */
    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Search Form */
    .search-form-unique {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .search-input-state,
    .search-input-city,
    .search-btn {
        width: 100%;
    }
}


/* ================= DELHI CONTENT ================= */
.delhi-content {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
}

.delhi-content h2 {
    color: #e91e63;
}

.delhi-content h3 {
    margin-top: 15px;
    color: #333;
}

.delhi-content p {
    line-height: 1.6;
    color: #555;
}


/* ================= MOBILE (max-width: 767px) ================= */
@media screen and (max-width: 767px) {

    * {
        box-sizing: border-box;
    }

    /* Form */
    .form-box {
        width: 90%;
        padding: 25px;
        min-height: auto;
    }

    .form-container {
        width: 95%;
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Profile */
    .profile-section {
        padding: 15px;
        gap: 10px;
    }

    .large-image {
        height: 200px;
    }

    .small-images div {
        height: 80px;
    }

    /* Ads */
    .ad-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ad-image img {
        width: 100%;
        height: 180px;   /* FIX */
        object-fit: cover;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .ad-details {
        padding: 10px;
    }

    /* Contact Buttons */
    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Dashboard */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main {
        margin-left: 0;
    }

    /* Buttons */
    .btn {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 8px 12px;
    }
}