/* ============================================
   PET HOTELS & RESTAURANTS - LISTING PAGE
   Clean, subtle design matching groomer-list
   ============================================ */

/* Page Header */
.ph-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    padding-top: 95px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.ph-results-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #526432;
}
.ph-results-label i {
    font-size: 18px;
    color: #e6f972;
    background: #526432;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ph-map-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #526432;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.ph-map-btn:hover,
.ph-map-btn.active {
    background: #526432;
    color: #e6f972;
    border-color: #526432;
}
.ph-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #526432;
    color: #e6f972;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.ph-add-btn:hover {
    background: #024a5c;
    color: #e6f972;
}

/* Pill Filter Bar */
.ph-pill-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* City scrollable area */
.ph-city-scroll-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.ph-city-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ph-city-scroll::-webkit-scrollbar { display: none; }
#cityPillsContainer {
    display: flex;
    gap: 8px;
    padding: 2px 0;
    white-space: nowrap;
}
.ph-city-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.2s;
}
.ph-city-fade-left {
    left: 0;
    background: linear-gradient(to right, #fff 30%, transparent);
    opacity: 0;
}
.ph-city-fade-right {
    right: 0;
    background: linear-gradient(to left, #fff 30%, transparent);
    opacity: 1;
}

.ph-search-wrap {
    position: relative;
    min-width: 200px;
    flex-shrink: 0;
}
.ph-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}
.ph-search-wrap input {
    width: 100%;
    padding: 8px 14px 8px 34px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: #526432;
    transition: border-color 0.2s;
}
.ph-search-wrap input:focus {
    border-color: #526432;
}

.ph-pin-wrap {
    position: relative;
    min-width: 130px;
    flex-shrink: 0;
}
.ph-pin-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}
.ph-pin-wrap input {
    width: 100%;
    padding: 8px 14px 8px 34px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: #526432;
    transition: border-color 0.2s;
}
.ph-pin-wrap input:focus {
    border-color: #526432;
}

.ph-pill-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    flex-shrink: 0;
    margin: 0 4px;
}

.ph-pill {
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}
.ph-pill:hover {
    border-color: #526432;
    color: #526432;
}
.ph-pill.active {
    background: #526432;
    color: #e6f972;
    border-color: #526432;
}

/* Type pills */
.ph-type-pill {
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ph-type-pill:hover {
    border-color: #526432;
}
.ph-type-pill.active {
    background: #024a5c;
    color: #fff;
    border-color: #024a5c;
}

/* Sort select */
.ph-sort-wrap {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ph-sort-wrap label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    white-space: nowrap;
}
.ph-sort-wrap select {
    padding: 7px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: #526432;
    background: #fff;
    cursor: pointer;
}

/* Masonry Grid */
.ph-grid-container {
    padding: 20px 30px 60px;
    background: #f8f9fa;
    min-height: 60vh;
}
.ph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card */
.ph-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.25s;
}
.ph-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: #ddd;
}
.ph-card-img {
    height: 190px;
    overflow: hidden;
    position: relative;
}
.ph-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.ph-card:hover .ph-card-img img {
    transform: scale(1.04);
}
.ph-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-hotel {
    background: #e6f972;
    color: #526432;
}
.badge-restaurant {
    background: #526432;
    color: #e6f972;
}
.ph-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(1,49,61,0.85);
    color: #e6f972;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}
.ph-card-body {
    padding: 16px;
}
.ph-card-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #526432;
    margin: 0 0 4px;
}
.ph-card-loc {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ph-card-loc i {
    font-size: 11px;
    color: #aaa;
}
.ph-card-policy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 10px;
}
.ph-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.ph-card-tags span {
    background: #f5f5f5;
    color: #555;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
}
.ph-card-tags span i {
    color: #7cb342;
    font-size: 9px;
    margin-right: 3px;
}
.ph-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.ph-card-price {
    font-size: 11px;
    color: #999;
}
.ph-card-price strong {
    display: block;
    font-size: 17px;
    color: #526432;
    font-weight: 800;
}
.ph-card-detail-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 7px;
    background: #526432;
    color: #e6f972;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ph-card-detail-btn:hover {
    background: #024a5c;
}

/* Current location indicator */
.ph-current-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    flex-shrink: 0;
}
.ph-current-loc i {
    font-size: 11px;
}

/* Loading */
.ph-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1 / -1;
}
.ph-loading i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

/* Empty state */
.ph-empty {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.ph-empty i {
    font-size: 44px;
    color: #ddd;
    margin-bottom: 12px;
    display: block;
}
.ph-empty h4 {
    font-size: 17px;
    color: #888;
    font-weight: 700;
    margin: 0 0 6px;
}
.ph-empty p {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

/* Map Drawer */
.ph-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
.ph-drawer-overlay.open {
    display: block;
}
.ph-map-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 450px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.ph-map-drawer.open {
    right: 0;
}
.ph-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.ph-drawer-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #526432;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ph-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}
.ph-drawer-close:hover {
    background: #e0e0e0;
}
.ph-drawer-map {
    height: calc(100% - 56px);
}
.ph-drawer-map #map {
    width: 100%;
    height: 100%;
}

/* Show More */
.ph-show-more-wrap {
    text-align: center;
    padding: 24px 0 0;
}
.ph-show-more-btn {
    padding: 10px 32px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    color: #526432;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: none;
}
.ph-show-more-btn.visible {
    display: inline-block;
}
.ph-show-more-btn:hover {
    background: #526432;
    color: #e6f972;
    border-color: #526432;
}

/* Responsive */
@media (max-width: 991px) {
    .ph-map-drawer { width: 100%; right: -100%; }
    .ph-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 767px) {
    .ph-page-header { padding: 10px 16px; }
    .ph-pill-bar { padding: 10px 16px; }
    .ph-grid-container { padding: 16px 16px 40px; }
    .ph-grid { grid-template-columns: 1fr; }
    .ph-search-wrap { min-width: 160px; }
    .ph-sort-wrap { display: none; }
}
