/**
 * GeoVee Scheduler – Modern UI Skin (frontend)
 * Style-only overrides. No JS/logic changes.
 * Keeps existing availability overlay colors (Blue standard, Green offer/radius).
 */

.geovee-container, .geovee-booking-modal-content, .geovee-available-times {
  font-size: 14px;
  line-height: 1.35;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.geovee-container {
  max-width: 860px;
  padding: 6px 10px;
}

.geovee-search-form { margin-bottom: 14px; }

.geovee-address-input {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 10px 12px !important; font-size: 14px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.geovee-address-input:focus {
  outline: none !important;
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18) !important;
}

.geovee-search-button {
  border-radius: 12px !important;
  padding: 10px 14px !important; font-size: 14px !important;
  /* Match primary UI color */
  background: #6B7A8F !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.12);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.geovee-search-button:hover { filter: brightness(1.03); }
.geovee-search-button:active { transform: translateY(1px); }

/* Card shell */
.geovee-available-times {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

/* View toggle buttons */
.geovee-view-toggle {
  gap: 10px;
}

.geovee-view-button {
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 10px 14px !important;
  background: #fff !important;
  font-weight: 600;
}

.geovee-view-button.active {
  /* Match primary UI color */
  background: #6B7A8F !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #fff !important;
}

/* Ensure icons inside active view button are visible */
.geovee-view-button.active svg,
.geovee-view-button.active path {
  fill: #fff !important;
  color: #fff !important;
}

/* Legend */
.geovee-legend {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.8);
}

.geovee-legend-item {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.86);
}

.geovee-legend-color {
  border-radius: 6px !important;
  box-shadow: none !important;
  border: 1px solid rgba(2, 6, 23, 0.10);
}

/* Calendar */
.geovee-calendar-view { padding: 18px; }

.geovee-calendar-header { margin-bottom: 14px; }

.geovee-calendar-month {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

.geovee-calendar-prev,
.geovee-calendar-next {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: rgba(248, 250, 252, 0.9) !important;
  padding: 10px 12px !important;
}

.geovee-calendar-grid {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.geovee-calendar-days-header {
  background: rgba(248, 250, 252, 0.9) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.geovee-calendar-day-name {
  font-weight: 700 !important;
  color: rgba(15, 23, 42, 0.72) !important;
  letter-spacing: 0.16px;
  text-transform: none;
}

.geovee-calendar-days {
  gap: 8px !important;
  padding: 12px !important;
  background: #fff;
}

/* Day cells: modern, crisp, clickable */
.geovee-calendar-day {
  border-radius: 6px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: rgba(248, 250, 252, 0.65) !important;
  color: rgba(2, 6, 23, 0.92) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.geovee-calendar-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.10);
  border-color: rgba(59,130,246,0.25) !important;
}

/* Keep your overlays (blue/green) – inline CSS already sets backgrounds.
   These tweaks only refine shape/typography. */
.geovee-calendar-day.has-availability {
  border-radius: 6px !important;
}

/* List view time slots */
.geovee-time-slot {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: rgba(248, 250, 252, 0.75) !important;
}

.geovee-time-slot:hover {
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.10);
  transform: translateY(-1px);
}

/* Booking modal */
.geovee-booking-modal-overlay { backdrop-filter: blur(6px); }

.geovee-booking-modal-content {
  border-radius: 18px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.geovee-booking-modal-header {
  padding: 14px 16px !important;
  background: rgba(248, 250, 252, 0.85);
}

.geovee-booking-modal-header h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
}

.geovee-booking-modal-body { padding: 14px 16px !important; }

.geovee-form-group label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(2, 6, 23, 0.80) !important;
}

.geovee-booking-modal input[type="text"],
.geovee-booking-modal input[type="email"],
.geovee-booking-modal input[type="tel"],
.geovee-booking-modal input[type="number"],
.geovee-booking-modal select,
.geovee-booking-modal textarea {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 9px 11px !important;
  font-size: 13px !important;
}

.geovee-booking-modal input:focus,
.geovee-booking-modal select:focus,
.geovee-booking-modal textarea:focus {
  outline: none !important;
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18) !important;
}

/* Service selection panels */
.geovee-service-categories-list,
.geovee-selected-services-panel {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.06);
}

.geovee-selected-services-panel h4,
.geovee-service-categories-list h4 {
  font-weight: 800 !important;
}

.geovee-service-remove-btn,
.geovee-add-service-btn,
button.geovee-add-button,
button.geovee-submit-booking {
  border-radius: 12px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}


button.geovee-submit-booking {
  background: #6B7A8F !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}

button.geovee-submit-booking:hover { filter: brightness(1.03); }


/* Booking modal footer buttons */
.geovee-booking-modal-footer button{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.geovee-booking-cancel{ background: rgba(248,250,252,0.9) !important; border: 1px solid rgba(15,23,42,0.14) !important; }
.geovee-booking-submit{ background: #0b5fff !important; border: 1px solid rgba(0,0,0,0.08) !important; }

/* Service selector tighten */
.geovee-service-selection h4{ font-size: 13px !important; margin-bottom: 10px !important; }
.geovee-service-item-row{
  padding: 10px 12px !important;
  font-size: 13px !important;
}
.geovee-service-item-row input,
.geovee-service-item-row select{
  height: 34px !important;
  font-size: 13px !important;
}
.geovee-service-add-btn{
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}

/* Remove old schedule button if theme still prints it somewhere */
.geovee-schedule-button{ display:none !important; }

/* ==============================
   Availability styling (outline-only) + legend swatches
   - Prevent mobile media queries in public CSS from overriding text colors
   - No filled day blocks; use border outline only
   ============================== */

/* =========================================================
   OUTLINE calendar days across ALL breakpoints (desktop + mobile)
   - Standard availability: 3px outline #6B7A8F
   - Radius/Offer dates:    3px outline #F7882F
   IMPORTANT: Styling only. No logic changes.
========================================================= */

/* Reset any legacy fills */
.geovee-calendar-day.has-availability,
.geovee-calendar-day.has-offers,
.geovee-calendar-day.has-availability.has-offers{
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Standard availability days (outline) */
.geovee-calendar-day.has-availability{
  border: 3px solid #6B7A8F !important;
}

/* Offer/radius days (outline) */
.geovee-calendar-day.has-offers,
.geovee-calendar-day.has-availability.has-offers{
  border: 3px solid #F7882F !important;
}

/* Subtle hover tint (still no fill) */
.geovee-calendar-day.has-availability:hover{
  background: rgba(107, 122, 143, 0.06) !important;
}
.geovee-calendar-day.has-offers:hover,
.geovee-calendar-day.has-availability.has-offers:hover{
  background: rgba(247, 136, 47, 0.06) !important;
}

/* Calendar day text: crisp + readable for OUTLINE days (all viewports) */
.geovee-calendar-day.has-availability .geovee-calendar-day-number,
.geovee-calendar-day.has-availability .geovee-calendar-day-slots,
.geovee-calendar-day.has-availability .geovee-calendar-day-offers,
.geovee-calendar-day.has-offers .geovee-calendar-day-number,
.geovee-calendar-day.has-offers .geovee-calendar-day-slots,
.geovee-calendar-day.has-offers .geovee-calendar-day-offers{
  color: #0f172a !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
}

/* Offer label inside days: keep it clean for outline-style calendar */
.geovee-calendar-day .geovee-calendar-day-offers{
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  /* Make offer text readable (wider + slightly larger) */
  display: block !important;
  width: calc(100% - 10px) !important;
  max-width: 100% !important;
  margin: 2px auto 0 !important;
  padding: 2px 4px !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.15 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Offer label color */
.geovee-calendar-day.has-offers .geovee-calendar-day-offers,
.geovee-calendar-day.has-availability.has-offers .geovee-calendar-day-offers{
  color: #F7882F !important;
}

/* Legend swatches: OUTLINE to match calendar */
.geovee-availability-legend .geovee-legend-swatch{
  background: transparent !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  width: 14px;
  height: 14px;
}
.geovee-availability-legend .geovee-swatch-standard{ border: 3px solid #6B7A8F !important; }
.geovee-availability-legend .geovee-swatch-offer{ border: 3px solid #F7882F !important; }

/* List view offer labels: match palette */
.geovee-time-slot-offer.is-standard{ color: #6B7A8F !important; }
.geovee-time-slot-offer.is-offer{ color: #F7882F !important; font-weight: 700 !important; }



/* === Unified Button Color (Slate) === */
.geovee-add-service-btn,
button.geovee-add-button,
.geovee-add-button,
.geovee-service-remove-btn,
.geovee-booking-modal-footer button.geovee-booking-cancel,
.geovee-booking-modal-footer button,
button.geovee-submit-booking,
button.geovee-add,
button.geovee-add-btn,
.geovee-view-button,
.geovee-search-button {
  background: #6B7A8F !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #fff !important;
}

.geovee-add-service-btn:hover,
button.geovee-add-button:hover,
.geovee-service-remove-btn:hover,
.geovee-booking-modal-footer button:hover,
button.geovee-submit-booking:hover,
.geovee-view-button:hover,
.geovee-search-button:hover {
  filter: brightness(1.05);
}

.geovee-add-service-btn:active,
button.geovee-add-button:active,
.geovee-service-remove-btn:active,
.geovee-booking-modal-footer button:active,
button.geovee-submit-booking:active,
.geovee-view-button:active,
.geovee-search-button:active {
  transform: translateY(1px);
}

/* Keep inactive view buttons neutral */
.geovee-view-button:not(.active) {
  background: #fff !important;
  color: rgba(2,6,23,0.82) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
}

.geovee-calendar-day * { border-radius: 6px !important; }

/* =========================
   Fix13: Force ALL buttons to use primary UI color (#6B7A8F)
   (Some markup uses .geovee-view-btn / .geovee-service-add-btn, not the older class names)
   ========================= */
:root{
  --geovee-primary: #6B7A8F;
  --geovee-offer: #F7882F;
}

/* Search button already uses .geovee-search-button – keep it but ensure no theme overrides */
.geovee-search-button,
.geovee-search-button:visited{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}

/* View toggle buttons (actual markup uses .geovee-view-btn) */
.geovee-view-btn{
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 10px 14px !important;
  background: #fff !important;
  color: #111827 !important;
  font-weight: 600 !important;
}
.geovee-view-btn.active,
.geovee-view-btn[aria-pressed="true"]{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}
.geovee-view-btn.active .dashicons,
.geovee-view-btn.active svg,
.geovee-view-btn.active path{
  color: #fff !important;
  fill: #fff !important;
}

/* "Add" buttons inside services panel */
.geovee-service-add-btn{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}
.geovee-service-add-btn:hover{ filter: brightness(1.03); }
.geovee-service-add-btn:active{ transform: translateY(1px); }

/* Modal footer + primary action buttons */
button.geovee-submit-booking,
.geovee-booking-modal-footer button,
.geovee-booking-modal-footer .button,
.geovee-booking-modal-footer input[type="button"],
.geovee-booking-modal-footer input[type="submit"]{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}
.geovee-booking-modal-footer button:hover,
button.geovee-submit-booking:hover{ filter: brightness(1.03); }

/* "Back" button should be same color too (no secondary gray) */
.geovee-booking-modal-footer button.geovee-booking-cancel{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}

/* Ensure WP/Theme button classes can't force old blue */
.geovee-container .button.button-primary,
.geovee-container .button-primary,
.geovee-container .btn-primary{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}

/* ===== NearbyBooker Branding (hardwired) =====
   Goal: professional, unobtrusive placement in the LOWER-RIGHT corner
   of the [geovee_customer] shortcode — never overlapping error/results UI.
   NOTE: Uses !important to defeat theme/Elementor overrides.
*/

/* Anchor absolute positioning to the shortcode wrapper */
/* =============================
   NearbyBooker Branding (SVG)
   - Lower-right
   - Clickable
   - NEVER clipped
   ============================= */

.geovee-container{
  position: relative !important;
  overflow: visible !important;
  /* Dedicated “safe zone” so the logo never touches UI lines/boxes */
  padding-bottom: 76px !important;
}

.geovee-container .geovee-branding{
  position: absolute !important;
  right: 14px !important;
  bottom: 12px !important;
  z-index: 10 !important;
  opacity: 0.92 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.geovee-container .geovee-branding a{
  display: inline-block !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  overflow: visible !important;
  max-width: none !important;
}

.geovee-container .geovee-branding img,
.geovee-container .geovee-branding svg{
  width: 150px !important;
  height: auto !important;
  display: block !important;
  max-width: none !important; /* prevents right-side clipping */
}

@media (max-width: 768px){
  .geovee-container{ padding-bottom: 68px !important; }
  .geovee-container .geovee-branding{ right: 12px !important; bottom: 10px !important; }
  .geovee-container .geovee-branding img,
  .geovee-container .geovee-branding svg{ width: 120px !important; }
}

/* Google Places dropdown always above the logo */
.pac-container{ z-index: 999999 !important; }
