@charset "utf-8";
/* 메인 콘텐츠 */
.main-content { max-width: 1200px; padding: 1rem; margin: 0 auto; }

.pen-title-bar-center { display: flex; justify-content: center; align-items: center; gap: 0.7rem; margin-bottom: 1.0rem; margin-top: 0.5rem; }
.pen-title-bar-center h1 { margin: 0; font-size: 2rem; line-height: 1.2; }
.pen-search-icon { margin-left: 0.2rem; }


/* 검색 아이콘 */
.pen-search-icon { background: none; border: none; font-size: 2rem; color: #007bff; margin-left: 1rem; cursor: pointer; vertical-align: middle; }
.pen-search-icon:hover { color: #0056b3; }

/* 검색 모달 및 폼 */
.pen-search-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.33); z-index: 9999; align-items: center; justify-content: center; }
.pen-search-modal.active { display: flex; animation: penFadeIn 0.2s; }
@keyframes penFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pen-search-modal-content { background: #fff; padding: 2rem 1.5rem; border-radius: 12px; min-width: 280px; max-width: 90vw; box-shadow: 0 8px 32px rgba(0,0,0,0.18); margin: auto; }

.pen-search-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.pen-search-input { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1.1rem; }
.pen-filter-select { width: 100%; padding: 0.7rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
.pen-btn-search { padding: 0.8rem; border: none; background: #007bff; color: #fff; border-radius: 6px; cursor: pointer; font-size: 1.08rem; margin-top: 0.3rem; }
 

.pen-room-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.pen-room-thumb { width: 100%; height: auto; margin-bottom: 0.5rem; }
.pen-room-name { font-size: 1.5em; font-weight: bold; color: #222; margin-bottom: 0.4em; }
.pen-room-price { font-size: 1.0em; color: #4d004d; font-weight: bold; margin: 0.2em 0 0 0; }


@media (min-width: 480px) {
  .pen-search-modal-content { min-width: 360px; max-width: 400px; }
}

/* 반응형: 데스크탑 검색폼 가로 정렬 */
@media (min-width: 768px) {
  .pen-search-form { flex-direction: row; gap: 0.5rem; }
  .pen-search-input, .pen-filter-select { width: auto; flex: 1; }
}

/* 객실 리스트 및 기타 */
.room-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.room-item { border: 1px solid #eee; padding: 0.5rem; border-radius: 4px; text-align: center; }
.room-thumb { width: 100%; height: auto; display: block; margin-bottom: 0.5rem; }
.btn-wrapper { text-align: center; margin-top: 1rem; }
.btn-admin { display: inline-block; padding: 0.5rem 1rem; border-radius: 4px; background: #28a745; color: #fff; text-decoration: none; }

@media (min-width: 768px) {
  .room-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
