2026-01-31 13:15:13 +01:00
|
|
|
/**
|
|
|
|
|
* WP BnB Frontend Styles
|
|
|
|
|
*
|
|
|
|
|
* @package Magdev\WpBnb
|
|
|
|
|
*/
|
|
|
|
|
|
Add frontend features with search, shortcodes, widgets, and blocks (v0.6.0)
- Room search with availability, capacity, room type, amenity, price range, and building filters
- AJAX-powered search with pagination and load more
- Shortcodes: [bnb_buildings], [bnb_rooms], [bnb_room_search], [bnb_building], [bnb_room]
- Widgets: Similar Rooms, Building Rooms, Availability Calendar
- Gutenberg blocks: Building, Room, Room Search, Buildings List, Rooms List
- Frontend CSS with responsive design and CSS custom properties
- Frontend JavaScript with SearchForm, CalendarWidget, AvailabilityForm, PriceCalculator
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 14:08:11 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
CSS Variables
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
--wp-bnb-primary: #2271b1;
|
|
|
|
|
--wp-bnb-primary-hover: #135e96;
|
|
|
|
|
--wp-bnb-secondary: #50575e;
|
|
|
|
|
--wp-bnb-success: #00a32a;
|
|
|
|
|
--wp-bnb-warning: #dba617;
|
|
|
|
|
--wp-bnb-error: #d63638;
|
|
|
|
|
--wp-bnb-border: #dcdcde;
|
|
|
|
|
--wp-bnb-bg-light: #f6f7f7;
|
|
|
|
|
--wp-bnb-text: #1e1e1e;
|
|
|
|
|
--wp-bnb-text-light: #646970;
|
|
|
|
|
--wp-bnb-radius: 4px;
|
|
|
|
|
--wp-bnb-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
|
|
|
--wp-bnb-gap: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Grid System
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-buildings-grid,
|
|
|
|
|
.wp-bnb-rooms-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: var(--wp-bnb-gap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-columns-1 { grid-template-columns: 1fr; }
|
|
|
|
|
.wp-bnb-columns-2 { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
|
.wp-bnb-columns-3 { grid-template-columns: repeat(3, 1fr); }
|
|
|
|
|
.wp-bnb-columns-4 { grid-template-columns: repeat(4, 1fr); }
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1024px) {
|
|
|
|
|
.wp-bnb-columns-4 { grid-template-columns: repeat(3, 1fr); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.wp-bnb-columns-3,
|
|
|
|
|
.wp-bnb-columns-4 { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
|
.wp-bnb-columns-2,
|
|
|
|
|
.wp-bnb-columns-3,
|
|
|
|
|
.wp-bnb-columns-4 { grid-template-columns: 1fr; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* List layout */
|
|
|
|
|
.wp-bnb-buildings-list,
|
|
|
|
|
.wp-bnb-rooms-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: var(--wp-bnb-gap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-buildings-list .wp-bnb-building-card,
|
|
|
|
|
.wp-bnb-rooms-list .wp-bnb-room-card {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-buildings-list .wp-bnb-building-image,
|
|
|
|
|
.wp-bnb-rooms-list .wp-bnb-room-image {
|
|
|
|
|
flex: 0 0 250px;
|
|
|
|
|
max-width: 250px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.wp-bnb-buildings-list .wp-bnb-building-card,
|
|
|
|
|
.wp-bnb-rooms-list .wp-bnb-room-card {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-buildings-list .wp-bnb-building-image,
|
|
|
|
|
.wp-bnb-rooms-list .wp-bnb-room-image {
|
|
|
|
|
flex: none;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Building Card
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-card {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-shadow: var(--wp-bnb-shadow);
|
|
|
|
|
transition: box-shadow 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-card:hover {
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-image {
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-image img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 200px;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
display: block;
|
|
|
|
|
transition: transform 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-card:hover .wp-bnb-building-image img {
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-content {
|
|
|
|
|
padding: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-title {
|
|
|
|
|
margin: 0 0 10px;
|
|
|
|
|
font-size: 1.25em;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-title a {
|
|
|
|
|
color: var(--wp-bnb-text);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-title a:hover {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-address,
|
|
|
|
|
.wp-bnb-building-rooms {
|
|
|
|
|
margin: 0 0 8px;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-address .dashicons,
|
|
|
|
|
.wp-bnb-building-rooms .dashicons {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-excerpt {
|
|
|
|
|
margin: 15px 0;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Room Card
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-card {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-shadow: var(--wp-bnb-shadow);
|
|
|
|
|
transition: box-shadow 0.2s ease;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-card:hover {
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-image {
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-image img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 200px;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
display: block;
|
|
|
|
|
transition: transform 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-card:hover .wp-bnb-room-image img {
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-type-badge {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
left: 10px;
|
|
|
|
|
background: var(--wp-bnb-primary);
|
|
|
|
|
color: #fff;
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
font-size: 0.75em;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-content {
|
|
|
|
|
padding: 20px;
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-title {
|
|
|
|
|
margin: 0 0 8px;
|
|
|
|
|
font-size: 1.15em;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-title a {
|
|
|
|
|
color: var(--wp-bnb-text);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-title a:hover {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-building {
|
|
|
|
|
margin: 0 0 10px;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-building a {
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-building a:hover {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-meta {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-capacity,
|
|
|
|
|
.wp-bnb-room-size,
|
|
|
|
|
.wp-bnb-room-beds {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-meta .dashicons {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
width: 14px;
|
|
|
|
|
height: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Room amenities */
|
|
|
|
|
.wp-bnb-room-amenities {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity .dashicons {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
width: 14px;
|
|
|
|
|
height: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity-name {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
.wp-bnb-amenity-name {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity-more {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-size: 0.75em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Room footer */
|
|
|
|
|
.wp-bnb-room-footer {
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
border-top: 1px solid var(--wp-bnb-border);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-price {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-price-amount {
|
|
|
|
|
font-size: 1.25em;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--wp-bnb-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-price-unit {
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Buttons
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-button {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-button-primary,
|
|
|
|
|
.wp-bnb-button {
|
|
|
|
|
background: var(--wp-bnb-primary);
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-button-primary:hover,
|
|
|
|
|
.wp-bnb-button:hover {
|
|
|
|
|
background: var(--wp-bnb-primary-hover);
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-button-secondary {
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
color: var(--wp-bnb-secondary);
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-button-secondary:hover {
|
|
|
|
|
background: #e0e0e0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-button .dashicons {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Search Form
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-search {
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-search-form {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
padding: 20px;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-search-fields {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field {
|
|
|
|
|
flex: 1 1 200px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field-dates {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field-group {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field label,
|
|
|
|
|
.wp-bnb-field-group label {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--wp-bnb-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field input,
|
|
|
|
|
.wp-bnb-field select,
|
|
|
|
|
.wp-bnb-field-group input,
|
|
|
|
|
.wp-bnb-field-group select {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
font-size: 0.95em;
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field input:focus,
|
|
|
|
|
.wp-bnb-field select:focus,
|
|
|
|
|
.wp-bnb-field-group input:focus,
|
|
|
|
|
.wp-bnb-field-group select:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: var(--wp-bnb-primary);
|
|
|
|
|
box-shadow: 0 0 0 1px var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Price range inputs */
|
|
|
|
|
.wp-bnb-price-range-inputs {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-price-range-inputs input {
|
|
|
|
|
width: 100px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-price-separator {
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-currency {
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Amenities checkboxes */
|
|
|
|
|
.wp-bnb-search-amenities {
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-search-amenities > label {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenities-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity-checkbox {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity-checkbox:hover {
|
|
|
|
|
border-color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity-checkbox input {
|
|
|
|
|
width: auto;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity-checkbox input:checked + .dashicons,
|
|
|
|
|
.wp-bnb-amenity-checkbox input:checked ~ span {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-amenity-checkbox .dashicons {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
width: 14px;
|
|
|
|
|
height: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search actions */
|
|
|
|
|
.wp-bnb-search-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search results status */
|
|
|
|
|
.wp-bnb-search-status {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
border-bottom: 1px solid var(--wp-bnb-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-results-count {
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-sort-options {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-sort-options label {
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-sort-options select {
|
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Loading state */
|
|
|
|
|
.wp-bnb-loading {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 40px;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-spinner {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
border: 3px solid var(--wp-bnb-border);
|
|
|
|
|
border-top-color: var(--wp-bnb-primary);
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
animation: wp-bnb-spin 0.8s linear infinite;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes wp-bnb-spin {
|
|
|
|
|
to { transform: rotate(360deg); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Load more */
|
|
|
|
|
.wp-bnb-search-pagination {
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-load-more {
|
|
|
|
|
min-width: 200px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Single Building
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-single {
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-featured-image {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-featured-image img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-header {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-header .wp-bnb-building-title {
|
|
|
|
|
margin: 0;
|
|
|
|
|
font-size: 2em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-details {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
|
|
|
gap: 20px;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-details h4 {
|
|
|
|
|
margin: 0 0 10px;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-address address {
|
|
|
|
|
font-style: normal;
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-contact p {
|
|
|
|
|
margin: 0 0 8px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-contact .dashicons {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-times p {
|
|
|
|
|
margin: 0 0 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-description {
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-rooms h3 {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Single Room
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-single {
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-gallery {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-featured-image img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-gallery-thumbnails {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-gallery-thumb {
|
|
|
|
|
flex: 0 0 80px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
transition: border-color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-gallery-thumb:hover {
|
|
|
|
|
border-color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-gallery-thumb img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
border-bottom: 1px solid var(--wp-bnb-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-header-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-header .wp-bnb-room-title {
|
|
|
|
|
margin: 0 0 8px;
|
|
|
|
|
font-size: 1.75em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-type {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-header-price {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-header-price .wp-bnb-price-label {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-header-price .wp-bnb-price-amount {
|
|
|
|
|
font-size: 1.75em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Room specs */
|
|
|
|
|
.wp-bnb-room-specs {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-spec {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-spec .dashicons {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-spec-label {
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-spec-value {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Room amenities full */
|
|
|
|
|
.wp-bnb-room-amenities-full {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-amenities-full h4 {
|
|
|
|
|
margin: 0 0 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-amenities-full .wp-bnb-amenities-list {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
|
|
|
gap: 10px;
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-amenities-full .wp-bnb-amenity {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-amenities-full .wp-bnb-amenity .dashicons {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Room description */
|
|
|
|
|
.wp-bnb-room-description {
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Room pricing details */
|
|
|
|
|
.wp-bnb-room-pricing-details {
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-pricing-details h4 {
|
|
|
|
|
margin: 0 0 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-pricing-table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 400px;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-pricing-table td {
|
|
|
|
|
padding: 12px 15px;
|
|
|
|
|
border-bottom: 1px solid var(--wp-bnb-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-tier-label {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-tier-price {
|
|
|
|
|
text-align: right;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-tier-unit {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Room availability form */
|
|
|
|
|
.wp-bnb-room-availability {
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-availability h4 {
|
|
|
|
|
margin: 0 0 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-fields {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
align-items: flex-end;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-fields .wp-bnb-field-group {
|
|
|
|
|
flex: 1 1 150px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-result {
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-result.wp-bnb-available {
|
|
|
|
|
background: rgba(0, 163, 42, 0.1);
|
|
|
|
|
border: 1px solid var(--wp-bnb-success);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-result.wp-bnb-unavailable {
|
|
|
|
|
background: rgba(214, 54, 56, 0.1);
|
|
|
|
|
border: 1px solid var(--wp-bnb-error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-result .wp-bnb-result-price {
|
|
|
|
|
font-size: 1.25em;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Calendar Widget
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-calendar-widget {
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-month {
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
background: var(--wp-bnb-primary);
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-radius: var(--wp-bnb-radius) var(--wp-bnb-radius) 0 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-month-name {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-nav {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 1.25em;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
transition: opacity 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-nav:hover {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-grid {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid var(--wp-bnb-border);
|
|
|
|
|
border-top: none;
|
|
|
|
|
border-radius: 0 0 var(--wp-bnb-radius) var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-grid th {
|
|
|
|
|
padding: 8px 4px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
border-bottom: 1px solid var(--wp-bnb-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-grid td {
|
|
|
|
|
padding: 8px 4px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-empty {
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-day {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-day.wp-bnb-available {
|
|
|
|
|
color: var(--wp-bnb-success);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-day.wp-bnb-booked {
|
|
|
|
|
color: #fff;
|
|
|
|
|
background: var(--wp-bnb-error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-day.wp-bnb-past {
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-calendar-day.wp-bnb-today {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
box-shadow: inset 0 0 0 2px var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Calendar legend */
|
|
|
|
|
.wp-bnb-calendar-legend {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-legend-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-legend-color {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-legend-available .wp-bnb-legend-color {
|
|
|
|
|
background: var(--wp-bnb-success);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-legend-booked .wp-bnb-legend-color {
|
|
|
|
|
background: var(--wp-bnb-error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Similar Rooms Widget
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-rooms-list {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
padding: 12px 0;
|
|
|
|
|
border-bottom: 1px solid var(--wp-bnb-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room:last-child {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room-image {
|
|
|
|
|
flex: 0 0 80px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room-image img {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room-title {
|
|
|
|
|
margin: 0 0 5px;
|
|
|
|
|
font-size: 0.95em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room-title a {
|
|
|
|
|
color: var(--wp-bnb-text);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room-title a:hover {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-similar-room-price {
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Building Rooms Widget
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-rooms-list,
|
|
|
|
|
.wp-bnb-building-rooms-compact {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room {
|
|
|
|
|
border-bottom: 1px solid var(--wp-bnb-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room:last-child {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room-link {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
color: var(--wp-bnb-text);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room-link:hover {
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room-title {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room-number {
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room-status {
|
|
|
|
|
font-size: 0.75em;
|
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-status-available { background: rgba(0, 163, 42, 0.1); color: var(--wp-bnb-success); }
|
|
|
|
|
.wp-bnb-status-occupied { background: rgba(114, 174, 230, 0.2); color: #135e96; }
|
|
|
|
|
.wp-bnb-status-maintenance { background: rgba(219, 166, 23, 0.1); color: var(--wp-bnb-warning); }
|
|
|
|
|
.wp-bnb-status-blocked { background: rgba(214, 54, 56, 0.1); color: var(--wp-bnb-error); }
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room-price {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-building-room-meta {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
padding: 0 0 10px;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-meta-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-view-all-rooms {
|
|
|
|
|
display: block;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
color: var(--wp-bnb-primary);
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Utility Classes
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-bnb-no-results,
|
|
|
|
|
.wp-bnb-error {
|
|
|
|
|
padding: 30px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: var(--wp-bnb-text-light);
|
|
|
|
|
background: var(--wp-bnb-bg-light);
|
|
|
|
|
border-radius: var(--wp-bnb-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-error {
|
|
|
|
|
color: var(--wp-bnb-error);
|
|
|
|
|
background: rgba(214, 54, 56, 0.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Responsive adjustments */
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.wp-bnb-room-header {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-room-header-price {
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-search-fields {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field {
|
|
|
|
|
flex: 1 1 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-field-dates {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-search-actions {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-search-actions .wp-bnb-button {
|
|
|
|
|
width: 100%;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-search-status {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wp-bnb-availability-fields {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Print styles */
|
|
|
|
|
@media print {
|
|
|
|
|
.wp-bnb-search-form,
|
|
|
|
|
.wp-bnb-availability-form,
|
|
|
|
|
.wp-bnb-button,
|
|
|
|
|
.wp-bnb-calendar-nav {
|
|
|
|
|
display: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|