:root {
    --orange: #f26522;
    --orange-light: #fff3ed;
    --dark: #1a1a2e;
    --sidebar-w: 215px;
    --strip-h: 45px;
    --nav-h: 52px;
    --header-total: 35px;
    --border: #e0e3e8;
    --label: #555;
    --radius: 10px;
}


.chevron {
    font-size: 9px;
    transition: transform .2s
}

.nav-item:hover>a .chevron {
    transform: rotate(180deg)
}

.dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
    display: none;
    z-index: 2000;
    padding: 5px 0;
}

.nav-item:hover .dropdown {
    display: block;
    animation: fadeDown .15s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    color: #444;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.dropdown a:hover {
    background: var(--orange-light);
    color: var(--orange)
}

.dd-head {
    padding: 7px 16px 3px;
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.dropdown hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 3px 0
}

/* ══ LAYOUT ══ */
.layout {
    display: flex;
    margin-top: var(--header-total);
    min-height: calc(100vh - var(--header-total))
}

/* ══ SIDEBAR ══ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--dark);
    position: fixed;
    top: var(--header-total);
    left: 0;
    height: calc(100vh - var(--header-total));
    overflow-y: auto;
    z-index: 900;
    transition: transform .3s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 850;
}
.profile-title{
    font-size: 10px;
    color: #ccc;
    font-weight: 700;
    letter-spacing: .8px;
    padding-bottom: 10px;
}

.profile-block {
    padding: 20px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}


.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    font-size: 17px;
    color: #ccc;
}

.uname {
    font-size: 12px;
    color: #ccc;
    font-weight: 600
}

.urole {
    font-size: 11px;
    color: #888
}

.menu-label {
    font-size: 12px;
    color: #ccc;
    font-weight: 700;
    letter-spacing: .8px;
    padding: 14px 16px 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: white;
    font-size: 12.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.side-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-left-color: var(--orange)
}

.side-link.active {
    background: var(--orange);
    color: #fff;
}

.side-link i {
    font-size: 15px;
    width: 18px;
    text-align: center
}

/* ══ MAIN CONTENT ══ */
.main-content {
    
    flex: 1;
    padding: 22px 24px 60px;
    min-width: 0
}

.page-title {
    font-size: 12px;
    color: #525252;
    margin: 14px;
    font-weight: bold;
}





/* ══ SECTION CARDS ══ */
.card-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 18px;
}

.card-section h2 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ══ FORM ══ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 18px
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.form-group.span2 {
    grid-column: span 2
}

.form-group.span3 {
    grid-column: span 3
}

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 2px;
    padding-bottom: 3px;
}

.req {
    color: black
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #d0d4db;
    border-radius: 25px;
    padding: 10px 10px;
    font-size: 12.5px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.form-group textarea {
    border-radius: 15px;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange)
}

.form-group textarea {
    resize: vertical;
    min-height: 82px
}

option:checked, option:focus, option:hover{
    background-color: #ff6600;
  color: #fff;
}

::placeholder {
    color: #bbb
}

/* Radio */
.radio-group {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-top: 2px
}

.radio-group label{
    gap: 35px;
}
.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #444;
    cursor: pointer
}

.radio-item input[type=radio] {
    display: none
}

.radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
}

.radio-item input[type=radio]:checked+.radio-dot {
    border-color: var(--orange);
    background: var(--orange)
}

.radio-item input[type=radio]:checked+.radio-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff
}

/* Input + unit */
.input-with-unit {
    display: flex
}

.input-with-unit input {
    border-radius: 4px 0 0 4px;
    flex: 1
}

.input-with-unit select {
    border-radius: 0 4px 4px 0 ;
    border-left: none;
    width: 76px;
    flex-shrink: 0
}

/* Map */
.map-container {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 4px;
    position: relative;
    background: #e8eef2;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none
}

.map-pin {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border-radius: 4px;
    padding: 4px 7px;
    font-size: 16px;
    color: var(--orange);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 6px
}

.check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #444;
    cursor: pointer
}

.check-item input[type=checkbox] {
    display: none
}

.check-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    border: 2px solid #ccc;
    background: #fff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}

.check-item input:checked+.check-box {
    background: var(--orange);
    border-color: var(--orange)
}

.check-item input:checked+.check-box::after {
    content: '✓';
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1
}

/* Nearby */
.nearby-row {
    display: grid;
    grid-template-columns: 1fr 140px 32px;
    gap: 8px;
    align-items: end;
    margin-bottom: 10px
}

.nearby-row:last-child {
    margin-bottom: 0
}

.add-btn,
.remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.add-btn {
    background: var(--orange);
    color: #fff
}

.add-btn:hover {
    background: #d9571a
}

.remove-btn {
    background: #e0e3e8;
    color: #555
}

/* Media */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.upload-box {
    border: 1.5px dashed #c8cdd6;
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    background: #fafbfc;
}

.upload-btn {
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    display: inline-block;
    transition: background .2s;
}

.upload-btn:hover {
    background: #d9571a
}

.upload-btn.grey {
    background: #6c757d
}

.upload-btn.grey:hover {
    background: #555
}

.upload-box p {
    font-size: 11px;
    color: #999;
    margin-top: 4px
}

.upload-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--label);
    margin-bottom: 8px;
    display: block
}

.thumb-row {
    display: flex;
    gap: 7px;
    margin-top: 8px;
    flex-wrap: wrap
}

.thumb {
    width: 54px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumb .del {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e55;
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pdf-thumb {
    width: 54px;
    height: 44px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #fff8f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #888;
    gap: 2px;
}

.pdf-thumb i {
    font-size: 16px;
    color: var(--orange)
}

/* Action */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 16px 0 10px
}

.btn-add-prop {
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 9px 32px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-add-prop:hover {
    background: #d9571a
}

.btn-save-preview {
    background: #fff;
    color: #444;
    border: 1.5px solid #c8cdd6;
    border-radius: 20px;
    padding: 9px 32px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-save-preview:hover {
    background: #f4f6f8
}

/* Code added on 1 April */

/* ════════════════════════════════════════
   MEDIA UPLOAD – NEW SECTION
════════════════════════════════════════ */

.media-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.media-upload-col { display: flex; flex-direction: column; gap: 10px; }

.media-full-width { grid-column: 1 / -1; }

.upload-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #555;
}

/* Drop Zone */
.drop-zone {
    border: 1.5px dashed #ccc;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.drop-zone.dragover {
    border-color: var(--accent);
    background: #fff5f2;
}
.drop-zone p {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Buttons inside drop zone */
.upload-btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .18s;
}
.upload-btn-primary:hover { background: var(--accent-h); }

.upload-btn-outline {
    background: #fff;
    color: #333;
    border: 1.5px solid #ccc;
    border-radius: 22px;
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: border-color .18s, color .18s;
}
.upload-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Hidden file inputs */
input[type="file"] { display: none; }

/* Image / Video preview row */
.preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-img-thumb {
    position: relative;
    width: 88px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}
.media-img-thumb img,
.media-img-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* PDF / File preview row */
.pdf-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-file-thumb {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 64px;
}
.media-file-icon {
    width: 44px;
    height: 52px;
    background: #fff;
    border: 1.5px solid #e5e5e5;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 22px;
}
.media-file-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.4;
}
.media-file-name {
    font-size: 9px;
    color: #666;
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove button (shared by img & file thumbs) */
.media-remove-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    z-index: 2;
    transition: background .18s;
}
.media-remove-btn:hover { background: #c00; }

.ImgBtnCustom{
    background-color: var(--orange);
    color: #fff;
}

/* Code ended on 1 April     */

.profile-box{
    display: flex;
}
.name-profile{
    margin-left: 10px;
}


/* Accordion addition on each section starts*/
.custom-accordion {
  max-width: 100%;
}

.custom-accordion .acc-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.custom-accordion summary {
  cursor: pointer;
  padding: 15px;
  font-weight: 600;
  background: #f5f5f5;
  list-style: none;
  position: relative;
}

/* Remove default arrow */
.custom-accordion summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
.custom-accordion summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
}

/* When open */
.custom-accordion .acc-item[open] summary::after {
  content: "-";
}

.custom-accordion .card-section {
  padding: 15px;
  background: #fff;
}
/* Accordion addition on each section Ends*/




/* ══ RESPONSIVE ══ */

@media(max-width:1100px) {
    .nav-item>a {
        padding: 0 9px;
        font-size: 11.5px
    }
}

@media(max-width:900px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .form-group.span3 {
        grid-column: span 2
    }

    .amenities-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .media-grid {
        grid-template-columns: 1fr
    }

    .layout-full {
        grid-column: span 1 !important
    }
}

@media(max-width:768px) {
    .navbar .hamburger {
        display: flex
    }

    .navbar nav {
        display: none
    }

    .strip-contact {
        display: none
    }

    .sidebar {
        transform: translateX(-100%)
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .sidebar-overlay.open {
        display: block
    }

    .main-content {
        padding: 16px 12px 60px
    }
}

@media(max-width:540px) {
 

    :root {
        --header-total: 52px
    }

    .navbar {
        top: 0
    }

    .layout {
        margin-top: 52px
    }

    .sidebar {
        top: 52px;
        height: calc(100vh - 52px)
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-group.span2,
    .form-group.span3 {
        grid-column: span 1
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .nearby-row {
        grid-template-columns: 1fr 100px 32px
    }

    .btn-post {
        display: none
    }

   .media-upload-grid { grid-template-columns: 1fr; }

}
/* Add Property > PROPERTY INFORMATION: the key fields (Property, Property
   Type, Project Type, Category, Name) stacked in the left column, the
   rest in two columns beside them; one column on tablets and phones. */
.prop-info-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px 18px;
    align-items: start;
}

.prop-info-key {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prop-info-layout > .form-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media(max-width:900px) {
    .prop-info-layout,
    .prop-info-layout > .form-grid {
        grid-template-columns: 1fr;
    }

    .prop-info-layout .form-group.span2 {
        grid-column: span 1;
    }
}
