/* Hostel detail page — brand #00468E */

.hostel-detail-page {
    background: var(--brand-soft);
    padding: 2rem 0 4rem;
}

.hostel-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.hostel-detail-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brand);
    margin: 0;
}

.hostel-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.hostel-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hostel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.hostel-badge-verified {
    background: var(--brand);
    color: var(--white);
}

.hostel-badge-type {
    background: var(--brand-light);
    color: var(--brand);
}

.hostel-detail-tagline {
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.hostel-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hostel-detail-meta i {
    color: var(--brand);
}

.hostel-detail-rating i {
    color: #f59e0b;
}

.hostel-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hostel-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 70, 142, 0.15);
    border-radius: 10px;
    background: var(--white);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.hostel-icon-btn:hover {
    background: var(--brand-light);
    border-color: var(--brand);
}

.hostel-contact-btn {
    white-space: nowrap;
}

/* Gallery */
.hostel-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.hostel-gallery-main {
    min-height: 340px;
    border-radius: var(--radius);
    overflow: hidden;
}

.hostel-gallery-main img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.hostel-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
}

.hostel-gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 0;
}

.hostel-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
}

.hostel-gallery-item.has-more::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 70, 142, 0.45);
}

.hostel-gallery-more {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Stats — horizontal compact cards with highlighted icon */
.hostel-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hostel-stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 70, 142, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 72px;
}

.hostel-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 70, 142, 0.12);
}

.hostel-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.hostel-stat-icon-blue {
    background: rgba(0, 70, 142, 0.12);
    color: var(--brand);
}

.hostel-stat-icon-green {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.hostel-stat-icon-navy {
    background: rgba(0, 51, 102, 0.12);
    color: var(--brand-dark);
}

.hostel-stat-icon-brand {
    background: rgba(0, 70, 142, 0.14);
    color: var(--brand);
}

.hostel-stat-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
}

.hostel-stat-text strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    flex-shrink: 0;
}

.hostel-stat-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs */
.hostel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    background: var(--white);
    padding: 0.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.hostel-tab {
    border: none;
    background: transparent;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.hostel-tab:hover:not(.active) {
    color: var(--brand);
    background: var(--brand-soft);
}

.hostel-tab.active {
    background: var(--brand);
    color: var(--white);
}

.hostel-tab.active:hover {
    background: var(--brand-dark);
    color: var(--white);
}

.hostel-section-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.hostel-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.hostel-about-text {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.75;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.hostel-page-alert {
    margin-bottom: 1rem;
}

.hostel-nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.hostel-nearby-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--brand-soft);
    border-radius: 10px;
    border: 1px solid rgba(0, 70, 142, 0.08);
}

.hostel-nearby-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hostel-nearby-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

.hostel-nearby-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Same pattern as myhostel.pk property detail map */
.hostel-location-section .hostel-location-address {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.property-details-google-map {
    height: 360px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 70, 142, 0.12);
    background: #e9eef3;
}

.property-details-google-map #map,
.hostel-detail-map-canvas {
    width: 100%;
    height: 360px;
    min-height: 360px;
}

.hostel-detail-map-embed {
    display: block;
    width: 100%;
    height: 360px;
    min-height: 360px;
    border: 0;
}

.hostel-map-unavailable {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-soft) 100%);
}

.hostel-map-unavailable i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.hostel-tab-placeholder {
    text-align: center;
    padding: 3rem 2rem;
}

.hostel-tab-placeholder i {
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 0.75rem;
    display: block;
}

.hostel-tab-placeholder h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hostel-tab-placeholder p {
    color: var(--text-muted);
    margin: 0;
}

/* Amenities */
.hostel-amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.hostel-amenity-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--brand-soft);
    border: 1.5px solid rgba(0, 70, 142, 0.1);
    border-radius: 12px;
    position: relative;
    transition: border-color 0.2s;
}

.hostel-amenity-card:hover {
    border-color: var(--brand);
}

.hostel-amenity-card > i:first-child {
    font-size: 1.15rem;
    color: var(--brand);
    flex-shrink: 0;
}

.hostel-amenity-card > span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.hostel-amenity-check {
    color: var(--brand);
    font-size: 0.92rem;
    flex-shrink: 0;
}

.hostel-amenity-card.is-unavailable {
    background: #f1f5f9;
    border-color: #e2e8f0;
    opacity: 0.55;
}

.hostel-amenity-card.is-unavailable > i:first-child,
.hostel-amenity-card.is-unavailable > span {
    color: #94a3b8;
}

/* Rules & Timings */
.hostel-section-title i {
    color: var(--brand);
    margin-right: 0.25rem;
}

.hostel-timings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.hostel-timing-card {
    background: var(--brand-soft);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 70, 142, 0.06);
}

.hostel-timing-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.hostel-timing-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.hostel-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hostel-rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
}

.hostel-rules-list li + li {
    border-top: 1px solid rgba(0, 70, 142, 0.05);
}

.hostel-rules-list i {
    color: var(--brand);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Reviews */
.review-summary {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

.review-summary-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.review-big-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.review-stars-row {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.25rem;
}

.review-stars-row i {
    font-size: 1rem;
    color: #d1d5db;
}

.review-stars-row i.is-filled {
    color: #f59e0b;
}

.review-total-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
}

.review-bar-label {
    width: 12px;
    text-align: right;
    color: var(--text-muted);
    font-weight: 600;
}

.review-bar-row > i {
    font-size: 0.72rem;
    color: #f59e0b;
}

.review-bar-track {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.review-bar-pct {
    width: 30px;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    margin-bottom: 0;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author-info {
    flex: 1;
}

.review-author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.review-meta span + span::before {
    content: "|";
    margin-right: 0.5rem;
    color: #cbd5e1;
}

.review-stars-sm {
    display: inline-flex;
    gap: 0.1rem;
}

.review-stars-sm i {
    font-size: 0.7rem;
    color: #d1d5db;
}

.review-stars-sm i.is-filled {
    color: #f59e0b;
}

.review-more-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 6px;
}

.review-more-btn:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.review-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.review-images {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.review-images img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0, 70, 142, 0.08);
}

.review-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 70, 142, 0.06);
}

.review-action-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.review-action-btn:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

/* Rooms & Pricing */
.hostel-rooms-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hostel-beds-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--white);
}

.hostel-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hostel-room-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.hostel-room-card.is-expanded {
    border-color: var(--brand);
}

.hostel-room-card-main {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1.25rem;
    padding: 1.25rem;
    align-items: start;
}

.hostel-room-image {
    border-radius: 10px;
    overflow: hidden;
    height: 120px;
}

.hostel-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hostel-room-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.hostel-room-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
}

.hostel-room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.hostel-room-feature {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--brand-soft);
    border: 1px solid rgba(0, 70, 142, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.hostel-room-availability {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hostel-room-price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 130px;
}

.hostel-room-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand);
    margin: 0;
    line-height: 1.2;
}

.hostel-room-price-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hostel-room-price-col .hostel-view-seats {
    margin-top: auto;
    white-space: nowrap;
}

.hostel-room-seats {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(0, 70, 142, 0.08);
    margin-top: 0;
    padding-top: 1.25rem;
}

.hostel-seats-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.hostel-seats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.hostel-seat-btn {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid var(--brand);
    background: var(--white);
    color: var(--brand);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hostel-seat-btn i {
    font-size: 1.2rem;
}

.hostel-seat-btn:hover:not(.is-occupied):not(.is-selected) {
    background: var(--brand-light);
}

.hostel-seat-btn.is-selected {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

.hostel-seat-btn.is-occupied {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

.hostel-seats-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hostel-seats-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hostel-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.hostel-legend-dot.is-available {
    border: 2px solid var(--brand);
    background: var(--white);
}

.hostel-legend-dot.is-occupied {
    background: #cbd5e1;
    border: 2px solid #cbd5e1;
}

.hostel-legend-dot.is-selected {
    background: var(--brand);
    border: 2px solid var(--brand);
}

.hostel-book-seat-btn {
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* Sidebar */
.hostel-sidebar {
    position: sticky;
    top: 90px;
}

.hostel-sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.hostel-pricing-card {
    border: 1px solid rgba(0, 70, 142, 0.12);
}

.hostel-price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.hostel-price-range {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1.1rem;
}

.hostel-price-range span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hostel-owner-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.hostel-owner-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.hostel-owner-avatar,
.hostel-owner-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hostel-owner-avatar {
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hostel-owner-avatar-img {
    object-fit: cover;
    display: block;
    border: 3px solid rgba(0, 70, 142, 0.12);
    box-shadow: 0 4px 14px rgba(0, 70, 142, 0.15);
}

.hostel-owner-avatar.is-hidden,
.hostel-owner-avatar-img.is-hidden {
    display: none !important;
}

.hostel-owner-profile--lg .hostel-owner-avatar,
.hostel-owner-profile--lg .hostel-owner-avatar-img {
    width: 88px;
    height: 88px;
}

.hostel-owner-profile--lg .hostel-owner-avatar {
    font-size: 1.75rem;
}

.hostel-owner-name,
.owner-profile-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--text);
    line-height: 1.35;
    max-width: 100%;
}

.owner-profile-name {
    font-size: 1.1rem;
}

.hostel-owner-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

.hostel-owner-verified-badge i {
    font-size: 0.9rem;
}

.text-brand {
    color: var(--brand) !important;
}

.hostel-owner-since,
.owner-profile-since {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.hostel-owner-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(0, 70, 142, 0.08);
    border-bottom: 1px solid rgba(0, 70, 142, 0.08);
}

.hostel-owner-stats strong {
    display: block;
    font-size: 1.1rem;
    color: var(--brand);
}

.hostel-owner-stats span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hostel-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
}

.hostel-sidebar-title i {
    color: var(--brand);
}

.hostel-safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hostel-safety-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
}

.hostel-safety-list i {
    color: var(--brand);
    font-size: 0.95rem;
}

/* Modals */
.hostel-modal .modal-header {
    border-bottom-color: rgba(0, 70, 142, 0.1);
}

.hostel-modal .modal-title {
    color: var(--brand);
    font-weight: 700;
}

/* Gallery Lightbox */
.gallery-lightbox .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 0;
}

.gallery-lb-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 10;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-lb-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-lb-stage {
    position: relative;
    width: 100%;
    max-width: 850px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lb-img {
    display: none;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
}

.gallery-lb-img.is-active {
    display: block;
}

.gallery-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-lb-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-lb-prev {
    left: 1.5rem;
}

.gallery-lb-next {
    right: 1.5rem;
}

.gallery-lb-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-open {
    cursor: pointer;
}

.hostel-modal-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

/* WhatsApp Message modal */
.wa-hostel-info {
    background: var(--brand-soft);
    border: 1px solid rgba(0, 70, 142, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.wa-hostel-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.wa-hostel-info-row strong {
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#messageModal .form-control {
    border-radius: 10px;
    border-color: rgba(0, 70, 142, 0.15);
}

#messageModal .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 70, 142, 0.12);
}

/* Owner Profile modal */
.owner-profile-name {
    font-size: 1.1rem;
}

.owner-profile-since {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.owner-profile-section {
    margin-bottom: 1.25rem;
}

.owner-profile-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.owner-profile-about {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.owner-profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.owner-profile-stat {
    background: var(--brand-soft);
    border: 1px solid rgba(0, 70, 142, 0.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.owner-profile-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
}

.owner-profile-stat span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.owner-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.owner-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--brand-soft);
    border-radius: 10px;
    border: 1px solid rgba(0, 70, 142, 0.06);
    font-size: 0.9rem;
    color: var(--text);
}

.owner-contact-item i {
    color: var(--brand);
    font-size: 1.05rem;
    flex-shrink: 0;
}

a.owner-contact-link {
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

a.owner-contact-link:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.owner-properties-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.owner-property-item {
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1.5px solid rgba(0, 70, 142, 0.1);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.owner-property-item:hover {
    border-color: var(--brand);
}

.owner-property-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.owner-property-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.owner-property-item span i {
    font-size: 0.75rem;
    color: var(--brand);
}

#ownerModal .modal-footer .btn {
    padding: 0.6rem 1rem;
}

/* Schedule Visit modal */
.visit-section-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.visit-date-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.visit-date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 68px;
    border: 2px solid rgba(0, 70, 142, 0.12);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.visit-date-pill:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.visit-date-pill.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--white);
}

.visit-date-day {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.visit-date-pill:not(.is-active) .visit-date-day {
    color: var(--text-muted);
}

.visit-date-num {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.visit-date-pill:not(.is-active) .visit-date-num {
    color: var(--text);
}

.visit-time-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.visit-time-pill {
    padding: 0.4rem 0.85rem;
    border: 1.5px solid rgba(0, 70, 142, 0.12);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.visit-time-pill:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.visit-time-pill.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--white);
}

#visitModal .form-control {
    border-radius: 10px;
    border-color: rgba(0, 70, 142, 0.15);
    padding: 0.6rem 0.85rem;
}

#visitModal .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 70, 142, 0.12);
}

#visitModal .form-label {
    font-size: 0.88rem;
    font-weight: 600;
}

.visit-summary-card {
    background: var(--brand-soft);
    border: 1px solid rgba(0, 70, 142, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.visit-summary-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
}

.visit-summary-title i {
    color: var(--brand);
}

.visit-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.visit-summary-row strong {
    color: var(--text);
    font-weight: 600;
}

/* Book Your Seat modal */
.book-seat-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.book-seat-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.book-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.book-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 72px;
}

.book-stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.book-stepper-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.book-stepper-item.is-active .book-stepper-circle {
    background: var(--brand);
    color: var(--white);
}

.book-stepper-item.is-active .book-stepper-label {
    color: var(--brand);
}

.book-stepper-item.is-complete .book-stepper-circle {
    background: var(--brand);
    color: var(--white);
}

.book-stepper-line {
    flex: 1;
    max-width: 48px;
    height: 3px;
    background: #e2e8f0;
    margin: 0 0.25rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.book-stepper-line.is-complete {
    background: var(--brand);
}

.book-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--brand-soft);
    border: 1px solid rgba(0, 70, 142, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.book-summary-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
}

.book-summary-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.book-summary-price {
    text-align: right;
}

.book-summary-price strong {
    display: block;
    font-size: 1.15rem;
    color: var(--brand);
}

.book-summary-price span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.book-panel-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.book-seat-modal .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.book-seat-modal .form-control,
.book-seat-modal .form-select {
    border-radius: 10px;
    border-color: rgba(0, 70, 142, 0.15);
    padding: 0.6rem 0.85rem;
}

.book-seat-modal .form-control:focus,
.book-seat-modal .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 70, 142, 0.12);
}

.book-pricing-summary {
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.12);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
}

.book-pricing-title {
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.book-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.book-pricing-row strong {
    color: var(--text);
    font-weight: 600;
}

.book-pricing-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 70, 142, 0.12);
}

.book-pricing-total span {
    font-weight: 700;
    color: var(--text);
}

.book-pricing-total strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand);
}

.book-payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.book-payment-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.book-payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.book-payment-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1.5px solid rgba(0, 70, 142, 0.12);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 0.2s, background 0.2s;
}

.book-payment-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}

.book-payment-card small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.book-payment-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    margin-top: 0.15rem;
    position: relative;
}

.book-payment-option input:checked + .book-payment-card,
.book-payment-card.is-selected {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.book-payment-option input:checked + .book-payment-card .book-payment-radio,
.book-payment-card.is-selected .book-payment-radio {
    border-color: var(--brand);
}

.book-payment-option input:checked + .book-payment-card .book-payment-radio::after,
.book-payment-card.is-selected .book-payment-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand);
}

.book-terms-card {
    background: var(--brand-soft);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(0, 70, 142, 0.08);
}

.book-terms-label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    cursor: pointer;
}

.book-terms-label input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--brand);
}

.book-terms-label a {
    color: var(--brand);
    font-weight: 600;
}

.book-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.book-total-bar strong {
    color: var(--brand);
}

.book-total-bar small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.book-total-bar > strong:last-child {
    font-size: 1.35rem;
}

.book-review-section {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 70, 142, 0.08);
}

.book-review-section:last-of-type {
    border-bottom: none;
}

.book-review-section h6 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.book-review-section h6 i {
    color: var(--brand);
}

.book-review-list {
    margin: 0;
}

.book-review-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.88rem;
}

.book-review-list dt {
    color: var(--text-muted);
    font-weight: 500;
}

.book-review-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.book-payment-review {
    margin-top: 0.5rem;
}

.book-modal-footer {
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.5rem;
}

.book-success-icon {
    font-size: 3.5rem;
    color: var(--brand);
    display: block;
    margin-bottom: 0.75rem;
}

.book-success-state h5 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hostel-gallery {
        grid-template-columns: 1fr;
    }

    .hostel-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hostel-sidebar {
        position: static;
    }

    .hostel-amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hostel-room-card-main {
        grid-template-columns: 120px 1fr;
    }

    .hostel-room-price-col {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        min-width: 0;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 70, 142, 0.08);
    }

    .hostel-room-price-note {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .hostel-detail-header-actions {
        width: 100%;
    }

    .hostel-contact-btn {
        flex: 1;
    }

    .hostel-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hostel-nearby-grid {
        grid-template-columns: 1fr;
    }

    .hostel-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hostel-timings-grid {
        grid-template-columns: 1fr;
    }

    .review-summary {
        flex-direction: column;
        gap: 1.25rem;
    }

    .review-images img {
        width: 60px;
        height: 60px;
    }

    .hostel-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .hostel-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hostel-room-card-main {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .hostel-room-image {
        height: 160px;
    }

    .hostel-room-price-col {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-stepper-label {
        font-size: 0.65rem;
    }

    .book-stepper-line {
        max-width: 24px;
    }

    .book-summary-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-summary-price {
        text-align: left;
    }
}
