#map{
  top:0;
  left:0;
  width: 100%;
  height:100dvh;
}

html,body{
  margin:0;
  background:#020617;
  overflow: hidden;
  padding : 0;
 
}

*{
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}


.Sidebar{
  position:fixed;
  left:0;
  top:0;
  width:330px;
  height:100vh;
  padding : 20px 18px;
  background:linear-gradient(180deg,#020617 0%,#0f172a 100%);
  box-shadow:6px 0 30px rgba(0,0,0,0.45);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  z-index : 9999;
  overflow-y: auto;
  box-sizing: border-box;

  
}

@media (max-width: 768px) {
  .Sidebar {
    top:auto;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 30vh;

    padding:15px;
    border-radius:20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);

    transition: transform 0.3s ease-in-out;
    z-index : 9999;
  }
}

.Sidebar h4{
  font-size:20px; 
  font-weight:1000;
  letter-spacing: -0.3px;
  color:#fff;
}

.Sidebar label{
  display:block;
  margin-top:3px;
  margin-bottom:10px;
  color:#e2e8f0;
  font-size:15px;
  font-weight:1000;
  
}

.sidebar_sub{ 
 
  margin:0 0px 10px 10px;;
  color:#94a3b8;
  font-size:12.5px;
  line-height: 1.35
  
}


.container{
  margin-top:16px;
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06);
}

.container h4{
  margin:0 0 10px 0;
  font-size:15px;
  font-weight:800;
  color:#fff;
}

.container br{display:none;}

.container1{
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:14px;
}

.container1 label{
  display:flex;
  align-items:center;
  flex-direction: column;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(2,6,23,0.85);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06);
  cursor:pointer;
  transition:.2s;
}

.container1 label:hover{
  transform:translateY(-1px);
  box-shadow:inset 0 0 0 1px rgba(59,130,246,0.8);
}

.container1 input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#3b82f6;
}

/* ===== Button ===== */
.applyBtn{
  width:100%;
  margin-top:18px;
  padding:13px 14px;
  border-radius:16px;
  border:none;
  font-size:15px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  box-shadow:0 14px 32px rgba(59,130,246,0.35);
  cursor:pointer;
  transition:.25s;
}

.applyBtn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(59,130,246,0.5);
}

.applyBtn:active{
  transform:translateY(0) scale(.98);
}

/* ===== Footer ===== */
.site-footer{
  position:static;
  margin:0;
  background:#020617;
  color:#cbd5f5;
  padding:28px 20px;
  padding-left: 330px;
}



@media (max-width : 768px){
  
  .site-footer {
    height:auto;
    padding:10px 0;
    flex-direction: row;
    white-space: nowrap;
    padding-right: 10px;
  }
  
  .footer-brand {
    display:flex;
    align-items: center;
    justify-content: space-between;
    
    gap:12px;
    padding: 0 12px;
    font-size: 15px;
  } 

  .footer-links {
    display: flex;
    padding-left:10px;
    gap: 5px;
    
   
  }

  .site-footer .footer-inner .footer-brand p {
    display : none !important;
  }

}

.footer-inner{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr auto;
  row-gap:14px;
  align-items:center;
  
}

.footer-brand h3{
  margin:0;
  font-weight:800;
  letter-spacing:-0.4px;
}

.footer-brand p{
  margin:2px 0 0;
  font-size:13px;
  color:#94a3b8;
}

.footer-links{
  display:flex;
  gap:16px;
}

.footer-links a{
  color:#cbd5f5;
  text-decoration:none;
  font-size:13px;
  opacity:.8;
}

.footer-links a:hover{
  opacity:1;
  text-decoration:underline;
}

.footer-copy{
  grid-column:1 / -1;
  font-size:12px;
  color:#64748b;
  margin-top:6px;
}


.page-wrapper{
  margin-left:336px;
}

.resetButton {
  width:100%;
  margin-top:18px;
  padding:13px 14px;
  border-radius:16px;
  border:none;
  font-size:15px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  box-shadow:0 14px 32px rgba(59,130,246,0.35);
  cursor:pointer;
  transition:.25s;
}

.resetButton:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(59,130,246,0.5);
}

.resetButton:active{
  transform:translateY(0) scale(.98);
}

.container2 {
    width:270px;
    border-radius: 10px;
    height: 40px;
    font: bold;
    background-color:rgba(2,6,23,0.85);
    color:white;
    font-weight:bold;
    
}

.areaSelect1 {
  border-radius : 10px;
  height: 40px;
  width:270px;
  font: bold;
  background-color:rgba(2,6,23,0.85);
  color:white;
  font-weight: bold;
}

.price-range {
  position: relative;
  width: 250px;
  max-width: 100%;
  height: 20px;
  margin: 14px 0 0 10px;
}

.price-range-track,
.price-range-track-active {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  transform: translateY(-50%);
}

.price-range-track {
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.15);
}

.price-range-track-active {
  background: var(--primary, #2563eb);
}

.price-range-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 20px;
  transform: translateY(-50%);
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range-thumb::-webkit-slider-runnable-track {
  background: transparent;
}

.price-range-thumb::-moz-range-track {
  background: transparent;
  border: none;
}

.price-range-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary, #2563eb);
  cursor: pointer;
}

.price-range-thumb::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary, #2563eb);
  cursor: pointer;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  width: 250px;
  max-width: 100%;
  margin: 8px 0 0 10px;
  color: var(--text, #0f172a);
  font-size: 12px;
  font-weight: 700;
}

.areaSelect option {
  color:white ;
  background : rgba(2,6,23,0.85);

}

.container2 option {
  color : white;
}

.km_list {
  border-radius : 10px;
  height: 40px;
  width:270px;
  font: bold;
  background-color:rgba(2,6,23,0.85);
  color:white;
  font-weight: bold;
}

.container2 {
    width:270px;
    border-radius: 10px;
    height: 40px;
    font: bold;
    background-color:rgba(2,6,23,0.85);
    color:white;
    font-weight:bold;
}

.genderSelection {
  display: flex;
  gap: 20px;
  align-items: center; 
  justify-content: center;
}

.genderSelection label {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(2,6,23,0.85);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06);
  cursor:pointer;
  transition:.2s;
}

.genderSelection label:hover{
  transform:translateY(-1px);
  box-shadow:inset 0 0 0 1px rgba(59,130,246,0.8);
}

.genderSelection input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#3b82f6;
}

#roomModal {
  display: none;
  position: fixed;
  z-index: 10001; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85); 
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #0f172a;
  width: 90%;
  max-width: 450px;
  border-radius: 20px;
  overflow: hidden;
  color: white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

#roomModal {
  display: none; 
  position: fixed;
  z-index: 10001; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85); 
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #0f172a;
  width: 90%;
  max-width: 450px;
  border-radius: 20px;
  overflow: hidden;
  color: white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.modal_container {
  position:fixed;
  left: 50%;
  top:50%; 
  transform: translate(-50%, -46%) scale(0.97);
  z-index: 9999;
  height: 70%;
  width : min(900px, 80vw);
  overflow-y: auto;
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;

}


.report_modal {
  
  position:fixed;
  left: 50%;
  top:50%; 
  transform: translate(-50%, -46%) scale(0.97);
  z-index: 999999; 
  height: 90%;
  width : 30%;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);


  
  opacity:0;
  overflow-y: auto;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;

}

.report_content {
  padding: 28px 24px;
}

#phone_verify_modal .report_content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phone_verify_status {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #16a34a;
  min-height: 20px;
}

.phone_verify_status.is-error {
  color: #dc2626;
}

#report_id {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.report_listing_preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.report_listing_label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report_listing_address {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}

.report_listing_photos {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.report_listing_photos .modal-photo {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.report_form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report_form label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.report_form input,
.report_form textarea,
.report_form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.report_form textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.report_form input::placeholder,
.report_form textarea::placeholder {
  color: #94a3b8;
  line-height: 1.5;
}

.report_form input:focus,
.report_form textarea:focus,
.report_form select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
  transform: translateY(-1px);
}

.report_form select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

#incident_date {
  min-height: 52px;
}

.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.report-actions .back,
.report-actions #submit {
  flex: 1;
}

#submit {
  margin-top: 0;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(34, 197, 94, 0.3);
  filter: brightness(1.02);
}

#submit:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.22);
}


.privates, .personalInfo, .apply_form {
  position:fixed;
  left: 50%;
  top:50%; 
  transform: translate(-50%, -46%) scale(0.97);
  z-index: 9999;
  height: 90%;
  width : 30%;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  z-index: 999999;
  
  opacity:0;
  overflow-y: auto;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  
}



@media (max-width: 768px) {
  .privates, .personalInfo, .apply_form, .report_modal {
      height: 70%;
      width: 60%;
  }

  .report_content {
    padding: 20px 16px;
  }

  
}

.modal_container.show , .privates.show, .personalInfo.show , .apply_form.show, .report_modal.show  {
    opacity : 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    z-index : 99999;
}


.report_modal.show {
  opacity : 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  z-index : 99999999;

}

.image {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding:30px;
    
  
}

.image img {
  width:100%;
  height:80%;
  object-fit: cover;
  border-radius:10px;
 

}

.modal p {
  padding-left: 20px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 12px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  height: 40px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cancel-btn {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #1e293b;
}

.report-btn {
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: #fff;
}

.back:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.back:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.back:focus {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .modal-actions {
    justify-content: center;
  }

  .back {
    flex: 1;
    max-width: 140px;
  }
}

.content {
  font-size: 13px;
  margin-left: 10px;
}

.button2 {
  position: fixed;
  left: 10px;
  

}

.privacy-content {
  font-size : 13px;
  margin-left: 10px;
  
}

.privacy-content h2 {
  font-size : 16px;
  text-align: center;
  margin-bottom:18px;
  
}

.submit-btn {
  display: block;
}

.form {
  padding: 28px 24px;
}

#rentForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label{
  margin-top: 0;
  margin-left: 0;
  font-weight: bold;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.form-group { 
  display : flex;
  flex-direction: column;
  gap : 8px;
}

.form-group input, .form-group select {
  border-radius : 14px;
  min-height: 52px;
  width: 100%;
  border: 1px solid #dbe4ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px 16px;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.introduction textarea:focus,
.date_available input:focus {
  outline: none;
  border-color: #1dccd8;
  box-shadow: 0 0 0 4px rgba(29, 204, 216, 0.14);
  transform: translateY(-1px);
}

.check{
  margin-top: 0;
  font-weight: 400;
  user-select: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dbe4ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  cursor: pointer;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkbox-group span {
  font-weight: 700;
}

.checkbox-group:hover {
  border-color: #1dccd8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.check input[type = "checkbox"] {
  width: 18px;           
  height: 18px;
  cursor: pointer;
  accent-color: #1dccd8;
}

.submit-btn { 
  margin-top : 6px;
  width: 100%;
  border-radius: 16px;
  min-height: 54px;
  border: none;
  background: linear-gradient(135deg, #1dccd8 0%, #0ea5b7 100%);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, filter 0.2s ease;
  font-size:16px;
  color: white;
  font-weight: 700;
  display:block;
  box-shadow: 0 16px 30px rgba(29, 204, 216, 0.24);

}

.close-btn { 
  margin-top : 10px;
  width: 100%;
  border-radius: 16px;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, border-color 0.2s ease;
  font-size:16px;
  font-weight: 700;
  color: #0f172a;
  display:block;

}
.submit-btn:hover, .close-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  cursor: pointer;
}

.submit-btn:active, .close-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  filter: brightness(0.9);
}

input[type = "file"] {
  padding:14px;
  background: #f8fbff;
  border: 1.5px dashed #94dbe0;
  border-radius: 14px;
  width: 100%;
  font-size: 0.95rem;
  color: #334155;
  box-sizing: border-box;
}

.introduction textarea{
  display:block;
  width:100%;
  border-radius: 14px;
  min-height: 180px;
  border: 1px solid #dbe4ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.5;
}

.introduction {
  font-weight:bold;
  margin-top: 0;
  color: #0f172a;
}

.introduction label,
.date_available label,
.gender label,
.room-type label,
.deposit-type label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
 
.date_available label {
  margin-top: 0;
  margin-left : 0;
}

.date_available input {
  border-radius : 14px;
  width:100%;
  min-height: 52px;
  margin-bottom: 0;
  margin-left : 0;
  border: 1px solid #dbe4ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px 16px;
  box-sizing: border-box;
}

.modal_inside {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.nearby-places-title {
  margin: 16px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.nearby-places-map {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  margin: 8px 0 16px;
}

.edit-photo-item {
  position: relative;
  list-style: none;
}

.edit-photo-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  border-radius: 10px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

#edit_new_photos_list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#edit_new_photos_list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  font-size: 13px;
}

.nearby-places-emoji-icon {
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.nearby-places-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -4px 0 16px;
  font-size: 13px;
  color: #444;
}

.nearby-places-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nearby-places-legend-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}

.gender label {
    font-weight: bold;
    display: block;
    margin-top : 0;
}

.gender input,
.room-type input,
.deposit-type input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1dccd8;
}

.gender,
.room-type,
.deposit-type {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0f172a;
}

.gender > label:first-child,
.room-type > label:first-child,
.deposit-type > label:first-child {
  width: 100%;
}

#display {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 13px;
}

#display li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

#display li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#display li button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#display li button:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

#display li button:active {
  transform: translateY(1px);
}

#display li button:focus-visible {
  outline: 3px solid rgba(248, 113, 113, 0.35);
  outline-offset: 2px;
}

#report_screenshot_list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.report-screenshot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
}

.report-screenshot-name {
  min-width: 0;
  color: #475569;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-screenshot-delete {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff5f5;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.report-screenshot-delete:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.report-screenshot-delete:active {
  transform: translateY(1px);
}

.report-screenshot-delete:focus-visible {
  outline: 3px solid rgba(248, 113, 113, 0.35);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .form {
    padding: 20px 16px;
  }
}

.roomPhotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
  width: 100%;
}

.modal-photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.modal-photo:hover {
  z-index: 2;
  transform: scale(1.035);
  filter: brightness(1.04) contrast(1.03);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.26);
}

.modal-photo:active {
  transform: scale(1.015);
}

.photo-zoom-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.94);
  z-index: 2147483647;
  padding: 24px;
  box-sizing: border-box;
}

.photo-zoom-modal.show {
  display: flex;
}

.photo-zoom-content {
  position: relative;
  width: min(92vw, 1200px);
  height: min(88vh, 900px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  z-index: 2147483647;
}

.photo-zoom-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.photo-zoom-btn {
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.photo-zoom-btn:hover {
  background: rgba(15, 23, 42, 0.16);
}

.photo-zoom-stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-zoom-stage img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 12px;
  transform-origin: center center;
  transition: transform 0.15s ease;
  cursor: zoom-in;
}

.photo-zoom-hint {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: #64748b;
  font-size: 14px;
  z-index: 2;
}

@media (max-width: 768px) {
  .modal_container {
    width: calc(100vw - 24px);
    height: 80%;
  }

  .modal_inside {
    padding: 16px;
  }

  .roomPhotos {
    grid-template-columns: 1fr;
  }

  .photo-zoom-modal {
    padding: 10px;
  }

  .photo-zoom-content {
    width: 100%;
    height: 82vh;
  }
}

.no-photo {
  color: #64748b;
  font-size: 14px;
}

/* ===== Responsive usability polish ===== */
* {
  box-sizing: border-box;
}

button,
select,
input,
textarea {
  font: inherit;
}

button,
label,
select,
input[type="checkbox"],
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}

.Sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.7) rgba(15, 23, 42, 0.45);
}

.Sidebar h4 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.container2,
.areaSelect1,
.km_list {
  width: 100% !important;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  outline: none;
  cursor: pointer;
}

.container2:focus,
.areaSelect1:focus,
.km_list:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.genderSelection,
.container1 {
  width: 100%;
}

.genderSelection {
  gap: 10px;
}

.genderSelection label,
.container1 label {
  min-height: 46px;
}

.applyBtn,
.resetButton,
.submit-btn,
.close-btn,
#submit,
.back,
.button2,
.button3 {
  min-height: 46px;
  touch-action: manipulation;
}

.modal_container,
.report_modal,
.privates,
.personalInfo,
.apply_form {
  max-width: calc(100vw - 32px);
  border-radius: 18px;
}

.content,
.privacy-content {
  margin: 0;
  padding: 22px;
  line-height: 1.65;
}

.button2,
.button3 {
  position: sticky;
  bottom: 14px;
  width: 100%;
  margin-top: 18px;
  border: none;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.modal p {
  padding: 0 20px;
  line-height: 1.55;
}

.modal .listing-introduction {
  max-width: 72ch;
  margin: 18px 20px 0;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.modal .listing-introduction h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.modal .listing-introduction p {
  margin: 0;
  padding: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@media (min-width: 769px) {
  .Sidebar {
    height: calc(100dvh - 76px);
    top: 76px;
  }

  #map {
    height: calc(100dvh - 76px);
  }

  .site-footer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 14px 24px 14px 354px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  #map {
    height: 100dvh;
  }

  .site-footer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 10px 12px;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(10px);
  }

  .footer-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: none;
  }

  .footer-brand {
    flex: 0 0 auto;
    padding: 0;
  }

  .footer-brand h3 {
    font-size: 17px;
  }

  .footer-links {
    flex: 1;
    overflow-x: auto;
    gap: 8px;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .footer-links::-webkit-scrollbar {
    display: none;
  }

  .footer-links a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    white-space: nowrap;
  }

  .footer-copy {
    display: none;
  }

  .Sidebar {
    height: min(52dvh, 440px);
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }

  .Sidebar::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.45);
  }

  .Sidebar h4 {
    font-size: 18px;
  }

  .Sidebar label {
    font-size: 14px;
  }

  .container {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .container2,
  .areaSelect1,
  .km_list {
    min-height: 48px;
    font-size: 16px;
  }

  .genderSelection {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .genderSelection label,
  .container1 label,
  .checkbox-group {
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .container1 label {
    flex-direction: row;
    align-items: center;
  }

  .applyBtn,
  .resetButton {
    margin-top: 12px;
    min-height: 50px;
    border-radius: 14px;
  }

  .modal_container,
  .report_modal,
  .privates,
  .personalInfo,
  .apply_form {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto;
    height: min(86dvh, 720px);
    max-width: none;
    transform: translateY(18px) scale(0.98);
    border-radius: 18px;
  }

  .modal_container.show,
  .privates.show,
  .personalInfo.show,
  .apply_form.show,
  .report_modal.show {
    transform: translateY(0) scale(1);
  }

  .report_content,
  .form {
    padding: 18px 16px max(20px, env(safe-area-inset-bottom));
  }

  #rentForm,
  #report_id {
    gap: 16px;
  }

  .form-group input,
  .form-group select,
  .date_available input,
  .report_form input,
  .report_form textarea,
  .report_form select,
  input[type="file"] {
    min-height: 50px;
    font-size: 16px;
    border-radius: 13px;
  }

  .introduction textarea {
    min-height: 140px;
    font-size: 16px;
  }

  .gender,
  .room-type {
    padding: 12px;
    gap: 10px;
  }

  .gender .checkbox-group,
  .room-type .checkbox-group {
    flex: 1 1 120px;
  }

  .modal_inside {
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
  }

  .modal p {
    padding: 0 4px;
    font-size: 14px;
  }

  .modal-actions {
    gap: 8px;
    padding: 12px 0 2px;
  }

  .back {
    max-width: none;
    min-height: 44px;
  }

  .content,
  .privacy-content {
    padding: 18px 16px max(20px, env(safe-area-inset-bottom));
    font-size: 14px;
  }

  .image {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .image img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .photo-zoom-toolbar {
    top: 10px;
    right: 10px;
    left: 10px;
    justify-content: flex-end;
    gap: 6px;
  }

  .photo-zoom-btn {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .photo-zoom-hint {
    display: none;
  }
}

@media (max-width: 420px) {
  .Sidebar {
    height: 56dvh;
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-brand h3 {
    font-size: 16px;
  }

  .footer-links a {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .genderSelection {
    grid-template-columns: 1fr;
  }

  .modal_container,
  .report_modal,
  .privates,
  .personalInfo,
  .apply_form {
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 88dvh;
  }
}

/* ===== Simple user-friendly redesign ===== */
:root {
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.14);
}

html,
body {
  background: var(--surface-soft);
}

#map {
  height: 100dvh;
}

.site-footer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 64px;
  padding: 0 24px 0 368px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.footer-inner {
  height: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
}

.footer-brand p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  text-decoration: none;
}

.footer-links a:hover {
  background: #f1f5f9;
  color: var(--text);
  text-decoration: none;
}

.footer-copy {
  display: none;
}

.Sidebar {
  top: 16px;
  left: 16px;
  width: 328px;
  height: calc(100dvh - 32px);
  padding: 18px;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.Sidebar h4,
.Sidebar h4[style] {
  margin: 0 0 6px;
  color: var(--text) !important;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
}

.Sidebar > label,
.Sidebar label[style] {
  margin: 14px 0 6px !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.sidebar_sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.container {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: none;
}

.container h4,
.container h4[style] {
  margin: 0 0 10px !important;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 850;
}

.container label,
.container label[style] {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.container2,
.areaSelect1,
.km_list {
  width: 100% !important;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.container2 option,
.km_list option,
.areaSelect1 option {
  color: var(--text);
  background: #ffffff;
}

.container1 {
  gap: 8px;
}

.container1 label,
.genderSelection label {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text) !important;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
}

.container1 label {
  flex-direction: row;
  justify-content: flex-start;
}

.container1 label:hover,
.genderSelection label:hover {
  transform: none;
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: none;
}

.container1 input[type="checkbox"],
.genderSelection input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.genderSelection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.click_team {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 72%, rgba(255, 255, 255, 0));
}

.applyBtn,
.resetButton {
  min-height: 46px;
  margin-top: 0;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
  box-shadow: none;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.applyBtn {
  background: var(--primary);
  color: #ffffff;
}

.resetButton {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.applyBtn:hover {
  background: var(--primary-dark);
  box-shadow: none;
  transform: translateY(-1px);
}

.resetButton:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: none;
  transform: translateY(-1px);
}

.modal_container,
.report_modal,
.privates,
.personalInfo,
.apply_form {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
}

.form-group input,
.form-group select,
.date_available input,
.report_form input,
.report_form textarea,
.report_form select,
.introduction textarea,
input[type="file"],
.checkbox-group,
.gender,
.room-type {
  background: #ffffff;
  border-color: #dbe4ee;
  border-radius: 10px;
  box-shadow: none;
}

.submit-btn,
#submit {
  border-radius: 10px;
  background: var(--primary);
  box-shadow: none;
}

.close-btn {
  border-radius: 10px;
}

@media (min-width: 769px) {
  .site-footer {
    padding-left: 368px;
  }

  .Sidebar {
    top: 16px;
    height: calc(100dvh - 32px);
  }

  #map {
    height: 100dvh;
  }
}

@media (max-width: 768px) {
  .site-footer {
    height: 56px;
    padding: 0 10px;
  }

  .footer-inner {
    gap: 8px;
  }

  .footer-brand h3 {
    font-size: 17px;
  }

  .footer-brand p {
    display: none;
  }

  .footer-links {
    flex: 1;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .footer-links a {
    min-height: 34px;
    padding: 0 10px;
    background: #f1f5f9;
    font-size: 12px;
  }

  .Sidebar {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: min(50dvh, 420px);
    padding: 14px 14px max(14px, env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  .Sidebar::before {
    width: 42px;
    height: 4px;
    margin-bottom: 10px;
    background: #cbd5e1;
  }

  .Sidebar h4,
  .Sidebar h4[style] {
    font-size: 18px;
  }

  .sidebar_sub {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .container {
    padding: 10px;
    margin-top: 8px;
  }

  .container2,
  .areaSelect1,
  .km_list {
    height: 46px;
    min-height: 46px;
    font-size: 16px;
  }

  .container1 label,
  .genderSelection label {
    min-height: 46px;
    justify-content: center;
  }

  .click_team {
    gap: 8px;
  }

  .applyBtn,
  .resetButton {
    min-height: 48px;
    font-size: 14px;
  }

  .modal_container,
  .report_modal,
  .privates,
  .personalInfo,
  .apply_form {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: min(86dvh, 720px);
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .site-footer {
    height: 52px;
  }

  .footer-links a {
    font-size: 11.5px;
    padding: 0 8px;
  }

  .Sidebar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 54dvh;
  }

  .genderSelection {
    grid-template-columns: 1fr 1fr;
  }
}

/* Room type filter: keep choices inside the panel */
#roomType {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

#roomType > label {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0 !important;
  padding: 10px 12px;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

#roomType > label:last-child {
  grid-column: 1 / -1;
}

#roomType input[type="checkbox"] {
  flex: 0 0 auto;
}

@media (max-width: 420px) {
  #roomType {
    grid-template-columns: 1fr;
  }

  #roomType > label:last-child {
    grid-column: auto;
  }
}

/* Mobile filter sheet open/close control */
.filterSheetToggle {
  display: none;
}

@media (max-width: 768px) {
  .filterSheetToggle {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 10px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
  }

  .filterSheetToggle::before {
    content: "";
    width: 38px;
    height: 4px;
    position: absolute;
    top: -8px;
    left: 50%;
    border-radius: 999px;
    background: #cbd5e1;
    transform: translateX(-50%);
  }

  .Sidebar {
    transition: height 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
  }

  body.filter-sheet-collapsed .Sidebar {
    height: 96px;
    overflow: hidden;
  }

  body.filter-sheet-collapsed .Sidebar > h4 {
    margin-bottom: 0;
    font-size: 17px;
    text-align: center;
  }

  body.filter-sheet-collapsed .Sidebar > label,
  body.filter-sheet-collapsed .sidebar_sub,
  body.filter-sheet-collapsed .container,
  body.filter-sheet-collapsed .click_team {
    display: none;
  }

  body.filter-sheet-collapsed .filterSheetToggle {
    margin-bottom: 8px;
    background: var(--primary);
    color: #ffffff;
  }
}

@media (max-width: 420px) {
  body.filter-sheet-collapsed .Sidebar {
    height: 92px;
  }
}

/* Keep Leaflet zoom buttons clear of the mobile header */
@media (max-width: 768px) {
  .leaflet-top.leaflet-left {
    top: 66px;
    left: 12px;
  }

  .leaflet-control-zoom {
    border: 1px solid #dbe4ee !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden;
  }

  .leaflet-control-zoom a {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    color: #0f172a !important;
    font-size: 22px !important;
  }
}

@media (max-width: 420px) {
  .leaflet-top.leaflet-left {
    top: 60px;
    left: 10px;
  }
}

/* Make the mobile filter control feel like a draggable sheet handle */
@media (max-width: 768px) {
  .filterSheetToggle {
    min-height: 46px;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 8px;
    padding: 4px 0 6px;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    touch-action: none;
    user-select: none;
  }

  .filterSheetToggle::before {
    display: none;
  }

  .filterHandleLines {
    width: 48px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .filterHandleLines span {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .filterHandleHint {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0;
  }

  .filterSheetToggle[aria-expanded="false"] .filterHandleLines span {
    background: #94a3b8;
  }

  .filterSheetToggle[aria-expanded="false"] .filterHandleLines span:first-child {
    transform: translateY(-1px);
  }

  .filterSheetToggle[aria-expanded="false"] .filterHandleLines span:last-child {
    transform: translateY(1px);
  }

  .filterSheetToggle[aria-expanded="true"] .filterHandleHint {
    color: #94a3b8;
  }

  body.filter-sheet-collapsed .Sidebar {
    height: 82px;
    padding-top: 12px;
  }

  body.filter-sheet-collapsed .Sidebar > h4 {
    display: none;
  }

  body.filter-sheet-collapsed .filterSheetToggle {
    margin-bottom: 0;
    background: transparent;
    color: #64748b;
  }
}

@media (max-width: 420px) {
  body.filter-sheet-collapsed .Sidebar {
    height: 78px;
  }
}

.leaflet-tooltip.price-label {
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.leaflet-tooltip.price-label.is-hovered {
  background-color: #e8f1fd;
  border-color: #2f80ed;
  color: #2f80ed;
  font-weight: 700;
}

.leaflet-tooltip.price-label.is-pressed {
  background-color: #2f80ed;
  border-color: #2f80ed;
  color: #fff;
  font-weight: 700;
  transform: scale(0.95);
}

/* 렌트 등록하기 / 이용약관 / 개인정보처리방침 모달: 모바일에서는 화면을 꽉 채우는 전체화면으로 표시 */
@media (max-width: 768px) {
  .apply_form,
  .privates,
  .personalInfo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    transform: translateY(16px) scale(1);
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .apply_form.show,
  .privates.show,
  .personalInfo.show {
    transform: translateY(0) scale(1);
  }

  .apply_form .form,
  .privates .content,
  .personalInfo .privacy-content {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .apply_form *,
  .privates *,
  .personalInfo * {
    max-width: 100%;
  }
}

/* 모든 모달(렌트 등록하기 / 매물 상세 / 신고하기 / 이용약관 / 개인정보처리방침): iPad 등 태블릿 화면에서도 전체화면으로 표시 */
@media (min-width: 769px) and (max-width: 1024px) {
  .modal_container,
  .report_modal,
  .privates,
  .personalInfo,
  .apply_form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    transform: translateY(16px) scale(1);
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .modal_container.show,
  .report_modal.show,
  .privates.show,
  .personalInfo.show,
  .apply_form.show {
    transform: translateY(0) scale(1);
  }

  .apply_form .form,
  .privates .content,
  .personalInfo .privacy-content,
  .modal_container .modal_inside,
  .report_modal .report_content {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .modal_container *,
  .report_modal *,
  .privates *,
  .personalInfo *,
  .apply_form * {
    max-width: 100%;
  }
}

/* 휴대폰 인증 모달은 내용이 짧으므로 모바일/태블릿에서도 화면을 꽉 채우지 않고
   내용 크기에 맞는 작은 팝업으로 중앙에 표시 (위의 전체화면 규칙을 덮어씀) */
@media (max-width: 1024px) {
  #phone_verify_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    max-width: 360px;
    height: auto;
    max-height: 90dvh;
    border-radius: 18px;
    transform: translate(-50%, -46%) scale(0.97);
  }

  #phone_verify_modal.show {
    transform: translate(-50%, -50%) scale(1);
  }

  #phone_verify_modal .report_content {
    width: auto;
    min-height: 0;
  }
}

/* Google Maps InfoWindow: remove blank space reserved above content for the close button row */
.gm-style-iw.gm-style-iw-c {
  padding-top: 0 !important;
}

.gm-style-iw-chr {
  position: absolute !important;
  top: 0;
  right: 0;
  height: 0 !important;
}

.gm-style-iw-d {
  overflow: auto !important;
}
