/* ---- Guesthouse Booking front-end ----
   Deliberately neutral: inherits your theme/Elementor typography.
   Colors can be overridden via the widget Style tabs. */

/* Horizontal hero search bar */
.ghb-search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	background: rgba(255, 255, 255, .96);
	border-radius: 10px;
	padding: 16px 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
.ghb-search-field { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 140px; }
.ghb-search-field label { font-size: .78em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.ghb-search input, .ghb-search select {
	padding: 10px 12px; border: 1px solid #d5d5d5; border-radius: 6px; background: #fff; font: inherit; width: 100%;
}
.ghb-search button {
	flex: 0 0 auto; padding: 12px 26px; border: 0; border-radius: 6px; cursor: pointer;
	background: #1c1c1c; color: #fff; font: inherit; font-weight: 600;
}
.ghb-search button:hover { opacity: .9; }
@media (max-width: 640px) {
	.ghb-search { flex-direction: column; align-items: stretch; }
	.ghb-search button { width: 100%; }
}

/* Results grid */
.ghb-results-summary { opacity: .8; margin-bottom: 1em; }
.ghb-results { display: grid; gap: 24px; }
.ghb-cols-1 { grid-template-columns: 1fr; }
.ghb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ghb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ghb-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .ghb-cols-3, .ghb-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ghb-results { grid-template-columns: 1fr !important; } }

.ghb-card { border: 1px solid #e6e6e6; border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ghb-card-img { display: block; padding-top: 62%; background-size: cover; background-position: center; }
.ghb-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ghb-card-title { margin: 0; font-size: 1.15em; }
.ghb-card-title a { text-decoration: none; color: inherit; }
.ghb-card-meta { display: flex; gap: 10px; font-size: .85em; opacity: .75; }
.ghb-card-free { color: #187a33; font-weight: 600; opacity: 1; }
.ghb-card-excerpt { margin: 0; font-size: .92em; opacity: .85; }
.ghb-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.ghb-card-price { font-weight: 700; font-size: 1.1em; }
.ghb-card-price small { font-weight: 400; opacity: .7; }
.ghb-btn { display: inline-block; padding: 9px 18px; border-radius: 6px; background: #1c1c1c; color: #fff !important; text-decoration: none; font-weight: 600; }
.ghb-btn:hover { opacity: .9; }
.ghb-no-results { padding: 20px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; }

/* Booking form */
.ghb-booking-form { border: 1px solid #e6e6e6; border-radius: 10px; padding: 22px; background: #fff; max-width: 720px; }
.ghb-bf-title { margin: 0 0 4px; }
.ghb-bf-price { margin: 0 0 14px; opacity: .85; }
.ghb-bf-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ghb-bf-row label { flex: 1 1 160px; display: flex; flex-direction: column; font-size: .85em; font-weight: 600; gap: 4px; }
.ghb-booking-form input, .ghb-booking-form select { padding: 10px 12px; border: 1px solid #d5d5d5; border-radius: 6px; font: inherit; }
.ghb-booking-form button[type="submit"] { padding: 12px 26px; border: 0; border-radius: 6px; background: #1c1c1c; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ghb-booking-form button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.ghb-bf-availability { min-height: 1.4em; margin: 4px 0 12px; font-size: .95em; }
.ghb-bf-availability.ghb-ok, .ghb-bf-message.ghb-ok { color: #187a33; }
.ghb-bf-availability.ghb-bad, .ghb-bf-message.ghb-bad { color: #b32d2e; }
.ghb-bf-message { margin-top: 12px; font-weight: 600; }

/* Room gallery */
.ghb-gallery { display: grid; gap: 10px; }
.ghb-gallery.ghb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ghb-gallery.ghb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ghb-gallery.ghb-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .ghb-gallery { grid-template-columns: repeat(2, 1fr) !important; } }
.ghb-gal-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; aspect-ratio: 4 / 3; }

/* Facts strip (Airbnb-style) */
.ghb-facts-tagline { font-size: 1.05em; margin: 0 0 8px; opacity: .9; }
.ghb-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.ghb-fact { display: inline-flex; align-items: center; gap: 7px; }
.ghb-fact-icon { font-size: 1.1em; line-height: 1; }

/* Amenities grid */
.ghb-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
@media (max-width: 640px) { .ghb-amenities { grid-template-columns: repeat(2, 1fr) !important; } }
.ghb-amenity { display: inline-flex; align-items: center; gap: 9px; }
.ghb-amenity-icon { line-height: 1; }

/* Policies list */
.ghb-policies { list-style: none; margin: 0; padding: 0; }
.ghb-policies li { display: flex; align-items: baseline; gap: 9px; padding: 6px 0; border-bottom: 1px solid #eee; }
.ghb-policies li:last-child { border-bottom: 0; }
.ghb-policy-icon { line-height: 1; }
.ghb-policies-heading { margin: 0 0 10px; }

/* Price box */
.ghb-price-box { line-height: 1.2; }
.ghb-price-amount { font-size: 1.7em; font-weight: 700; }
.ghb-price-suffix { opacity: .7; margin-left: 4px; }
.ghb-price-note { font-size: .85em; opacity: .75; margin-top: 4px; }

/* Result card extras */
.ghb-card-tagline { margin: 0; font-size: .9em; opacity: .8; }
.ghb-card-facts { font-size: .85em; opacity: .75; }

/* ---- Results v1.2: list layout & pricing blocks ---- */
.ghb-layout-list { grid-template-columns: 1fr !important; }
.ghb-card-list { flex-direction: row; align-items: stretch; }
.ghb-card-list .ghb-card-img { width: 280px; flex: 0 0 280px; padding-top: 0; min-height: 230px; }
.ghb-card-list .ghb-card-body { flex: 1 1 auto; gap: 6px; }
.ghb-card-side {
	flex: 0 0 auto; min-width: 190px; padding: 18px;
	display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end;
	gap: 10px; text-align: right; border-left: 1px solid #e6e6e6;
}
.ghb-card-pricing { display: flex; flex-direction: column; gap: 2px; }
.ghb-card-list .ghb-card-pricing { align-items: flex-end; }
.ghb-card-total { font-size: .85em; opacity: .75; }
.ghb-card-amenities { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: .87em; }
.ghb-pay-note { color: #187a33; font-size: .9em; font-weight: 600; }

@media (max-width: 720px) {
	.ghb-card-list { flex-direction: column; }
	.ghb-card-list .ghb-card-img { width: 100%; flex-basis: auto; padding-top: 56%; min-height: 0; }
	.ghb-card-side { border-left: 0; border-top: 1px solid #e6e6e6; width: 100%;
		flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
	.ghb-card-list .ghb-card-pricing { align-items: flex-start; }
}

/* ---- Booking form v1.3 (stacked sidebar style) ---- */
.ghb-bform { background: #f2f3f2; border-radius: 18px; padding: 28px 26px; max-width: 560px; }
.ghb-bform-price { margin-bottom: 16px; }
.ghb-bform-price-amount { font-size: 2em; font-weight: 800; }
.ghb-bform-price-suffix { opacity: .65; margin-left: 4px; }

.ghb-bform-tabs { display: flex; border: 1px solid #b08a52; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.ghb-tab { flex: 1; padding: 12px; border: 0; background: #f2f3f2; color: #b08a52; font: inherit; font-weight: 600; cursor: pointer; }
.ghb-tab.is-active { background: #b08a52; color: #fff; }

.ghb-bform-heading { margin: 0 0 16px; font-size: 1.4em; }

.ghb-bform form { display: flex; flex-direction: column; }
.ghb-bform label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.ghb-bform label > span { font-weight: 600; }
.ghb-max-note { position: static; opacity: .7; margin-top: -2px; }
.ghb-bform input, .ghb-bform select, .ghb-bform textarea {
	padding: 13px 14px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; font: inherit; width: 100%;
}

/* Extras */
.ghb-extras { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ghb-extra { display: flex; align-items: center; gap: 10px; }
.ghb-extra-main { flex: 1; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; }
.ghb-extra-main input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; }
.ghb-extra-info { display: flex; flex-direction: column; }
.ghb-extra-price { font-weight: 600; }
.ghb-extra-price small { font-weight: 400; opacity: .7; }
.ghb-extra-qty { width: 64px !important; text-align: center; }

/* Total & breakdown */
.ghb-total-row { display: flex; justify-content: space-between; align-items: flex-start; margin: 6px 0 14px; }
.ghb-total-label { font-weight: 700; }
.ghb-total-left { display: flex; flex-direction: column; gap: 2px; }
.ghb-view-details { font-size: .9em; color: #b08a52; text-decoration: none; }
.ghb-view-details:hover { text-decoration: underline; }
.ghb-total-amount { font-size: 1.2em; }
.ghb-breakdown { background: #fff; border-radius: 10px; padding: 10px 14px; margin: -6px 0 14px; font-size: .92em; }
.ghb-bd-line { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #eee; }
.ghb-bd-line:last-child { border-bottom: 0; }

.ghb-bform button[type="submit"] {
	padding: 15px; border: 0; border-radius: 28px; background: #b08a52; color: #fff;
	font: inherit; font-weight: 700; font-size: 1.05em; cursor: pointer; margin-top: 4px;
}
.ghb-bform button[type="submit"]:hover { opacity: .92; }
.ghb-bform button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
