/*
Theme Name: BlogHash Child
Theme URI: https://peregrine-themes.com/bloghash/
Template: bloghash
Author: Your Name
Description: Custom Header/Footer for Hotels
Version: 1.0.0
*/

/* --- आपका CSS कोड यहाँ से शुरू है --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f5f5f5; color: #333; }
a { text-decoration: none; }

/* Flash messages & OTP Area */
.flash-container { max-width: 1200px; margin: 10px auto 0; padding: 0 16px; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 10px; font-size: 14px; display: none; }
.flash-success { background-color: #e6f9ec; border: 1px solid #8ad4a3; color: #155724; }
.flash-error { background-color: #fdecea; border: 1px solid #f5c6cb; color: #721c24; }

.otp-box { max-width: 500px; margin: 0 auto 10px; background: #ffffff; border-radius: 6px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: none; }
.otp-box-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.otp-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.otp-form input[type="text"] { flex: 1; min-width: 120px; padding: 7px 9px; border-radius: 4px; border: 1px solid #ccc; font-size: 14px; }
.otp-form button { padding: 8px 16px; border-radius: 4px; border: none; background: #f15c00; color: #fff; font-weight: 600; cursor: pointer; font-size: 14px; }

/* Header */
.header { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 10px 0; position: sticky; top: 0; z-index: 400; }
.header-container { width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; gap: 10px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 47px; width: auto; display: block; }
.search-bar { display: flex; align-items: center; flex-grow: 1; max-width: 600px; }
.search-bar input { width: 100%; padding: 8px 12px; border: 1px solid #bdbcbb; border-radius: 20px; font-size: 14px; }
.add-business-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; border: none; background-color: #25D366; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.add-business-btn i { font-size: 16px; }

/* Navigation */
.nav-container { background-color: #fdfdfd; border-top: 1px solid #eee; border-bottom: 1px solid #eee; position: sticky; top: 60px; z-index: 300; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: center; position: relative; gap: 10px; }
.nav-menu { display: flex; gap: 28px; align-items: center; justify-content: center; }
.nav-item { font-size: 14px; color: #000000; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; position: relative; font-weight: 500; }
.nav-item:hover { color: #d32f2f; }
.nav-item.active { color: #000000; font-weight: 500; }
.nav-toggle { display: none; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 18px; border: 1px solid #ddd; background-color: #fff; font-size: 13px; cursor: pointer; }

/* Filters Header */
.full-width-filter { background-color: #ffffff; padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-bottom: 20px; }
.filter-container { width: 100%; margin: 0 auto; padding: 0 16px; }
.filter-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.filter-title { font-size: 18px; font-weight: 600; color: #f15c00; }
.sort-option { font-size: 14px; display: flex; align-items: center; white-space: nowrap; }
.sort-option select { margin-left: 5px; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }

/* Main Layout */
.main-content { display: flex; width: 100%; margin: 0 auto; padding: 0 16px 40px 16px; gap: 20px; }

/* Sidebar */
.filter-sidebar { width: 300px; background-color: white; border-radius: 8px; padding: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 110px; max-height: calc(100vh - 120px); overflow-y: auto; z-index: 100; transition: transform 0.3s ease; }
.filter-sidebar-header { display: none; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.filter-sidebar-header span { font-weight: 600; font-size: 15px; }
.close-filters { border: none; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.filter-section { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.filter-section:last-child { border-bottom: none; }
.filter-section-title { font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.filter-item { display: flex; align-items: center; margin-bottom: 6px; font-size: 14px; cursor: pointer; }
.filter-item input { margin-right: 8px; accent-color: #f15c00; }
.location-list { max-height: 200px; overflow-y: auto; padding-right: 4px; }
.location-list::-webkit-scrollbar { width: 4px; }
.location-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

/* Price & Budget */
.price-list .filter-item { justify-content: space-between; }
.price-count { color: #999; font-size: 13px; }
.budget-row { display: flex; gap: 8px; margin-top: 8px; }
.budget-row input { flex: 1; padding: 7px 8px; border: 1px solid #ddd; border-radius: 4px; }
.budget-row button { padding: 6px 8px; border-radius: 4px; border: none; background: #0073bb; color: white; cursor: pointer; }

/* Mobile Toggle */
.filter-toggle { display: none; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 18px; border: 1px solid #ddd; background-color: #fff; font-size: 13px; cursor: pointer; margin-bottom: 10px; }
.filter-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; display: none; }
.filter-overlay.active { display: block; }
.filter-sidebar.open { transform: translateX(0); z-index: 200; position: fixed; top: 0; left: 0; height: 100vh; max-height: 100vh; }

/* Content Wrapper */
.content-wrapper { flex: 1; display: flex; gap: 20px; }
.listings-container { width: 60%; }
.map-container { width: 40%; height: 600px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 110px; z-index: 90; }
#map { width: 100%; height: 100%; }

/* Listing Cards */
.listing { background-color: white; border-radius: 4px; padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); cursor: pointer; display: flex; }
.hotel-image { width: 200px; height: 193px; border-radius: 4px; overflow: hidden; margin-right: 15px; flex-shrink: 0; }
.hotel-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-content { flex: 1; display: flex; flex-direction: column; }
.listing-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.hotel-name { font-weight: 700; font-size: 18px; color: #0073bb; margin-bottom: 5px; }

.rating-container { display: flex; align-items: center; margin-bottom: 10px; }
.rating-box { background-color: #f15c00; color: white; padding: 3px 5px; border-radius: 3px; font-size: 12px; font-weight: bold; margin-right: 8px; display: flex; align-items: center; }
.rating-box i { font-size: 10px; margin-right: 2px; }
.review-count { font-size: 12px; color: #666; position: relative; padding-left: 10px; }
.review-count::before { content: "○"; position: absolute; left: 0; font-size: 4px; top: 50%; transform: translateY(-50%); }

.location { display: flex; align-items: center; margin-bottom: 8px; font-size: 15px; font-weight: bold; }
.location i { margin-right: 5px; color: #ff0000; }
.price-text { color: #41a700; font-weight: 600; }
.review-excerpt { font-size: 14px; margin-bottom: 8px; color: #333; }
.more-link { color: #0073bb; font-size: 14px; text-decoration: none; display: inline-block; margin-top: 5px; }

/* Amenities & Buttons */
.amenities-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.amenity { background-color: #efefef; padding: 5px 10px; border-radius: 3px; font-size: 12px; color: #080808; border: 1px solid #d0d0d0; display: inline-flex; align-items: center; justify-content: center; }

.amenities-row .book-now.small { margin-left: auto; padding: 6px 10px; border-radius: 18px; font-size: 13px; background: linear-gradient(90deg,#ff2a8f,#ff0066); color: #fff; border: none; font-weight: 700; box-shadow: 0 6px 16px rgba(255,0,102,0.12); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.write-review { text-align: right; margin-left: auto; }
.click-to-rate-label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; color: #333; }
.star-rating-wrapper { display: flex; justify-content: flex-end; }
.star-boxes { display: flex; gap: 3px; }
.star-box { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #ccc; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.star-box i { font-size: 14px; color: #999; }
.star-box.active i { color: #f5a623; }

.cta-right { margin-left: auto; display: flex; justify-content: flex-end; }

#noResultsMessage { display: none; padding: 20px; text-align: center; background: #fff; border-radius: 4px; margin-top: 10px; font-size: 15px; }

/* Pagination */
.pagination { display: flex; justify-content: center; margin-top: 30px; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-number { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; background: white; }
.page-number.active { background-color: #f15c00; color: white; border-color: #f15c00; }
.page-number:hover { background-color: #f5f5f5; }
.next-page { padding: 8px 15px; background-color: #f15c00; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; }

/* Footer */
.footer { background: radial-gradient(circle at center, #1e0066, #0d0033); padding: 40px 20px; text-align: center; color: white; margin-top: 40px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 25px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); }
.footer-links a { color: white; text-decoration: none; font-weight: 500; font-size: 14px; }
.footer-links a:hover { color: #ff00cc; }
.app-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 25px; }
.app-buttons img { height: 45px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 500; }
.modal-backdrop.active { display: flex; }
.review-modal { background: #fff; border-radius: 8px; padding: 20px 18px; max-width: 420px; width: 90%; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.review-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-modal-title { font-size: 16px; font-weight: 600; }
.review-modal-close { border: none; background: transparent; font-size: 20px; cursor: pointer; }
.review-modal form { display: flex; flex-direction: column; gap: 10px; }
.review-modal label { font-size: 13px; font-weight: 500; }
.review-modal input[type="text"], .review-modal input[type="email"], .review-modal textarea { width: 100%; padding: 8px 10px; border-radius: 4px; border: 1px solid #ccc; font-size: 13px; }
.review-modal textarea { min-height: 80px; resize: vertical; }
.modal-rating-stars { display: flex; gap: 4px; margin-top: 4px; }
.modal-rating-stars i { font-size: 18px; color: #999; cursor: pointer; }
.modal-rating-stars i.active { color: #f5a623; }
.submit-review-btn { margin-top: 6px; padding: 9px 0; border-radius: 4px; border: none; background: #f15c00; color: #fff; font-weight: 600; cursor: pointer; font-size: 14px; }

/* Responsive */
@media (max-width: 1200px) { .listings-container { width: 65%; } .map-container { width: 35%; } }
@media (max-width: 992px) { 
    .main-content { flex-direction: column; } 
    .content-wrapper { flex-direction: column; } 
    .listings-container { width: 100%; } 
    .map-container { width: 100%; position: relative; top: auto; height: 350px; }
    .filter-toggle { display: inline-flex; }
    .filter-sidebar { position: fixed; left: 0; top: 0; height: 100%; transform: translateX(-100%); width: 280px; z-index: 500; }
    .filter-sidebar-header { display: flex; }
}
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; justify-content: space-between; }
    .search-bar { order: 3; width: 100%; }
    .nav-inner { justify-content: space-between; }
    .nav-toggle { display: flex; }
    .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 8px 16px 10px 16px; flex-direction: column; align-items: flex-start; gap: 36px; box-shadow: 0 4px 10px rgba(0,0,0,0.12); z-index: 310; }
    .nav-menu.open { display: flex; }
    .hero-image { height: 200px; }
    .filter-header { flex-direction: column; align-items: flex-start; }
    .listing { flex-direction: column; }
    .hotel-image { width: 100%; height: 193px; margin-bottom: 10px; }
    .listing-header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
    .write-review { text-align: right; margin-left: auto; }
}