/*
Theme Name: Bestay 2025 Child
Template: twentytwentyfive
*/

/* ==========================================================================
   BESTAY THEME INTEGRATION WITH WORDPRESS COLORS - GREEN & WHITE THEME
   ========================================================================== */

:root {
  --wp--preset--color--bestay-bg: #F8F9F8 !important;
  --wp--preset--color--bestay-surface: #F2F4F2 !important;
  --wp--preset--color--bestay-card: #FFFFFF !important;
  --wp--preset--color--bestay-text: #1F2937 !important;
  --wp--preset--color--bestay-heading: #1F4A3C !important;
  --wp--preset--color--bestay-muted: #6B7280 !important;
  --wp--preset--color--bestay-accent: #1F4A3C !important;
  --wp--preset--color--bestay-accent-hover: #16453A !important;

  /* Legacy variables for compatibility */
  --bg: #F8F9F8;
  --surface: #F2F4F2;
  --card: #FFFFFF;
  --text: #1F2937;
  --heading: #1F4A3C;
  --muted: #6B7280;
  --accent: #1F4A3C;
  --accent-hover: #16453A;
  --border: rgba(31, 74, 60, .12);
  --shadow: 0 8px 24px rgba(31, 74, 60, .15);
  --shadow-light: 0 2px 16px rgba(31, 74, 60, .08);
  --radius: 16px;
  --radius-sm: 12px;
}

/* Force light palette even if device prefers dark */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light !important; }
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html, body {
  background: #F8F9F8 !important;
  color: #1F2937 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
  color: #1F4A3C !important;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: #1F4A3C !important;
  transition: color 0.2s ease;
}
a:hover { color: #16453A !important; }

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: #1F4A3C; color: #fff; padding: 8px 16px;
  z-index: 100; text-decoration: none; transition: top .3s;
}
.skip-link:focus { top: 10px; }

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* ==========================================================================
   BUTTON SYSTEM (SITE-WIDE)
   ========================================================================== */

.bestay-btn-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.9rem 1.4rem; border-radius:.75rem;
  background:var(--accent); color:#fff; border:2px solid var(--accent);
  font-weight:600; text-decoration:none; line-height:1.1;
}
.bestay-btn-primary:hover{ background:var(--accent-hover); border-color:var(--accent-hover); color:#fff; }

.bestay-btn-ghost,
.bestay-btn-outline{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.85rem 1.2rem; border-radius:.75rem;
  background:transparent; color:var(--accent); border:2px solid rgba(31,74,60,.30);
  font-weight:600; text-decoration:none; line-height:1.1;
}
.bestay-btn-ghost:hover,
.bestay-btn-outline:hover{ border-color:rgba(31,74,60,.5); color:var(--accent); }

/* Existing listing sidebar btn (kept) */
.bestay-btn {
  display:inline-block; text-align:center;
  padding:14px 20px; border-radius:12px;
  background:#1F4A3C !important; color:#FFFFFF !important;
  text-decoration:none; font-weight:600;
  transition:background-color .2s ease, transform .2s ease;
  border:none; cursor:pointer;
}
.bestay-btn:hover { background:#16453A !important; color:#FFFFFF !important; transform:translateY(-1px); }

/* ==========================================================================
   TYPOGRAPHY HELPERS
   ========================================================================== */

.bestay-title {
  margin:0 0 8px 0; font-weight:700;
  font-size: clamp(28px, 3vw, 42px); color:#1F4A3C !important; line-height:1.2;
}

.bestay-sub { margin:0 0 20px 0; color:#6B7280 !important; font-size:16px; font-weight:400; }
.bestay-h2 { color:#1F4A3C !important; font-size:24px; font-weight:600; margin:32px 0 16px; }
.bestay-h3 { color:#1F4A3C !important; font-size:20px; font-weight:600; margin:24px 0 12px; }

.bestay-content { line-height:1.6; color:#1F2937 !important; }
.bestay-content p { margin-bottom:16px; }

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.bestay-wrap { padding:32px 20px; max-width:1200px; margin:0 auto; }
.bestay-single { display:grid; grid-template-columns:1fr; gap:40px; align-items:start; }
.bestay-aside { display:none; }
.alignwide { max-width:1160px; margin-inline:auto; }

/* ==========================================================================
   HERO GALLERY
   ========================================================================== */

/* Image Gallery / Slider Container */
.bestay-image-gallery {
  margin: 30px 0 40px 0;
  padding: 0;
}

.bestay-gallery-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(31, 74, 60, 0.1);
}

.bestay-gallery-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
}

.bestay-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.bestay-gallery-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.bestay-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bestay-gallery-image.bestay-no-image {
  background: #eeebe5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b7355;
  font-size: 16px;
  font-weight: 500;
}

/* Gallery controls - Navigation arrows and dots */
.bestay-gallery-controls {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

/* Navigation buttons (previous/next arrows) */
.bestay-gallery-nav {
  background: #ffffff;
  border: 2px solid #1F4A3C;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F4A3C;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: all;
}

.bestay-gallery-nav:hover {
  background: #1F4A3C;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 74, 60, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.bestay-gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.bestay-gallery-nav svg {
  width: 28px;
  height: 28px;
  display: block;
  stroke: #1F4A3C !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none;
}

.bestay-gallery-nav:hover svg {
  stroke: #ffffff !important;
}

.bestay-gallery-nav svg polyline {
  stroke: #1F4A3C !important;
  stroke-width: 2 !important;
}

.bestay-gallery-nav:hover svg polyline {
  stroke: #ffffff !important;
}

.bestay-gallery-prev {
  left: 12px;
}

.bestay-gallery-next {
  right: 12px;
}

/* Dots indicator */
.bestay-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 11;
}

.bestay-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.bestay-gallery-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.bestay-gallery-dot.active {
  background: #1F4A3C;
  width: 28px;
  border-radius: 5px;
}

/* Legacy bestay-hero-gallery styles for compatibility */
.bestay-hero-gallery { display:none; }
.bestay-hero-main { display:none; }
.bestay-hero-right { display:none; grid-template-columns:1fr; grid-auto-rows:calc((420px - 48px) / 4); gap:12px; }
.bestay-hero-right img {
  width:100%; height:100%; object-fit:cover; border-radius:12px;
  border:1px solid rgba(31,74,60,.12) !important; transition:transform .2s ease;
}
.bestay-hero-right img:hover { transform:scale(1.02); }

/* ==========================================================================
   TABS NAVIGATION - FIXED: NOT STICKY
   ========================================================================== */

.bestay-tabs{
  display:flex; gap:24px; border-bottom:2px solid rgba(31,74,60,.12) !important;
  margin:24px 0; background:#F2F4F2 !important; padding:16px 20px 0;
  border-radius:16px 16px 0 0; position:relative; z-index:10;
  box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}
.bestay-tabs a{
  padding:12px 4px; text-decoration:none; color:#6B7280 !important;
  position:relative; font-weight:500; transition:color .2s ease; white-space:nowrap;
}
.bestay-tabs a:hover{ color:#1F4A3C !important; }
.bestay-tabs a.active{ color:#1F4A3C !important; font-weight:600; }
.bestay-tabs a.active:after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:3px;
  background:#1F4A3C !important; border-radius:2px;
}
.bestay-tab{ display:none; padding:24px 0; }
.bestay-tab.active{ display:block; }

/* ==========================================================================
   FACTS GRID
   ========================================================================== */

.bestay-facts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin:24px 0 32px; }
.bestay-fact{
  background:#FFFFFF !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:12px;
  padding:16px; text-align:center; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
  transition:transform .2s ease, box-shadow .2s ease;
}
.bestay-fact:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(31,74,60,.15) !important; }
.bestay-fact span{ display:block; font-size:14px; color:#6B7280 !important; margin-bottom:8px; font-weight:500; }
.bestay-fact strong{ color:#1F4A3C !important; font-size:18px; font-weight:600; }

/* ==========================================================================
   CONTENT BLOCKS - DESCRIPTION / FLOORPLAN / MAP / ADDRESS / LOCATION NOTES
   ========================================================================== */

.bestay-description-block{
  background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  padding:24px; margin:32px 0; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}
.bestay-description-content{ line-height:1.7; color:#1F2937 !important; font-size:16px; }
.bestay-description-content p{ margin-bottom:16px; }
.bestay-description-content p:last-child{ margin-bottom:0; }

.bestay-floorplan-block{ margin:32px 0; }
.bestay-floorplan-wrapper{
  background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  padding:20px; text-align:center; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}

.bestay-map-block{ margin-bottom:32px; }
.bestay-map-wrapper{
  background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  padding:12px; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}
.bestay-map-wrapper iframe{ width:100%; height:400px; border:none; border-radius:12px; }

.bestay-address-block{
  background:#FFFFFF !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  padding:24px; margin-bottom:32px; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}
.bestay-address-info p{ display:flex; align-items:center; margin-bottom:12px; font-size:16px; color:#1F2937 !important; }
.bestay-address-info p:last-child{ margin-bottom:0; }
.bestay-address-icon{ margin-right:12px; font-size:20px; width:28px; text-align:center; }
.bestay-street-address{ font-weight:600; color:#1F4A3C !important; }

.bestay-location-notes{
  background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  padding:24px; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}
.bestay-location-content{ line-height:1.6; color:#1F2937 !important; }
.bestay-location-content p{ margin-bottom:16px; }
.bestay-location-content p:last-child{ margin-bottom:0; }

/* ==========================================================================
   AMENITIES DISPLAY
   ========================================================================== */

.bestay-amenities{ list-style:none; padding:0; margin:0; }
.bestay-amenity-group{ margin-bottom:32px; }
.bestay-amenity-group h4{
  color:#1F4A3C !important; font-size:18px; font-weight:600; margin:0 0 16px;
  padding-bottom:8px; border-bottom:1px solid rgba(31,74,60,.12) !important;
}
.bestay-amenity-items{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; }
.bestay-amenity-items li{
  background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:12px;
  padding:12px 16px; display:flex; align-items:center; transition:background-color .2s ease; color:#1F2937 !important;
}
.bestay-amenity-items li:hover{ background:#FFFFFF !important; }
.bestay-amenity-items .am-ico{ margin-right:12px; font-size:18px; width:24px; text-align:center; }

/* Legacy amenities */
.bestay-amenities.legacy{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; }
.bestay-amenities.legacy li{
  background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:12px;
  padding:12px 16px; display:flex; align-items:center; color:#1F2937 !important;
}
.bestay-amenities.legacy .am-ico{ margin-right:12px; font-size:18px; width:24px; text-align:center; }

/* ==========================================================================
   SIDEBAR (Single Listing)
   ========================================================================== */

.bestay-aside .bestay-card{
  background:#FFFFFF !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  padding:24px; box-shadow:0 8px 24px rgba(31,74,60,.15) !important;
  position:sticky; top:100px;
}
.bestay-price{ font-size:28px; font-weight:700; color:#1F4A3C !important; margin-bottom:8px; }
.bestay-addr{ color:#6B7280 !important; margin-bottom:24px; line-height:1.4; }
.bestay-cta{ display:grid; gap:12px; margin-bottom:32px; }

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

input, select, textarea{
  background:#FFFFFF !important; color:#1F2937 !important;
  border:1px solid rgba(31,74,60,.12) !important; border-radius:12px;
  padding:12px 16px; font-family:inherit; transition:border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus{
  outline:none; border-color:#1F4A3C !important; box-shadow:0 0 0 3px rgba(31,74,60,.1) !important;
}
input::placeholder, textarea::placeholder{ color:#6B7280 !important; }
label, .muted{ color:#6B7280 !important; font-weight:500; }

/* ==========================================================================
   FLOORPLAN
   ========================================================================== */

.bestay-floorplan{
  width:100%; max-width:600px; height:auto; border-radius:16px;
  border:1px solid rgba(31,74,60,.12) !important; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (GENERAL)
   ========================================================================== */

@media (max-width:1024px){
  .bestay-single{ grid-template-columns:1fr; gap:32px; }
  .bestay-aside .bestay-card{ position:static; }
}

/* ==========================================================================
   MOBILE-OPTIMIZED RESPONSIVE DESIGN (ARCHIVE & SINGLE)
   ========================================================================== */

/* Tablet and smaller desktop */
@media (max-width:1024px){
  .bestay-properties-grid{ grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
  .bestay-filter-controls{ grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
}

/* Mobile landscape and portrait */
@media (max-width:768px){
  .bestay-archive{ padding:20px 0 40px; }
  .bestay-wrap{ padding:0 16px; }
  .bestay-archive-header{ margin-bottom:32px; padding:0 4px; }
  .bestay-title{ font-size:clamp(24px,6vw,32px) !important; margin-bottom:12px; }
  .bestay-sub{ font-size:15px; line-height:1.5; }
  .bestay-breadcrumbs{ font-size:13px; margin-bottom:20px; }

  /* Hero section tablet fixes */
  .bestay-hero-inner{ padding:0 16px; }
  .bestay-hero-actions{ padding:0 16px; }
  .bestay-hero-stats{
    padding:0 16px;
    width: calc(100% - 32px) !important;
    margin: 0 16px !important;
    overflow-x: visible !important;
  }
  .bestay-stat { min-width: auto; }

  /* Gallery responsive styles */
  .bestay-image-gallery{ margin: 20px 0 30px 0; }
  .bestay-gallery-container{ max-width:100%; border-radius:8px; }
  .bestay-gallery-wrapper{ aspect-ratio: 16 / 9; }

  .bestay-filters-section{
    background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.15) !important;
    border-radius:16px; padding:20px 16px; margin:0 0 32px; box-shadow:0 2px 12px rgba(31,74,60,.08) !important;
  }

  .bestay-search-section{ margin-bottom:20px; }
  .bestay-search-wrapper{ max-width:none; }
  .bestay-search-wrapper input{
    width:100%; padding:14px 52px 14px 16px; font-size:16px; border-radius:12px;
    background:#FFFFFF !important; border:1px solid rgba(31,74,60,.2) !important;
  }
  .bestay-search-btn{ right:6px; width:36px; height:36px; }

  .bestay-filter-controls{ grid-template-columns:1fr; gap:16px; }
  .bestay-filter-group label{ font-size:14px; margin-bottom:6px; font-weight:600; }
  .bestay-filter-group select{
    width:100%; padding:12px 14px; font-size:16px; border-radius:10px;
    background:#FFFFFF !important; border:1px solid rgba(31,74,60,.2) !important;
  }

  .bestay-price-inputs{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; }
  .bestay-price-inputs input{ padding:12px 14px; font-size:16px; border-radius:10px; }
  .bestay-price-separator{ font-size:13px; font-weight:600; color:#6B7280 !important; text-align:center; }

  .bestay-filter-actions{ margin-top:20px; display:flex; flex-direction:column; gap:12px; align-items:stretch; }
  .bestay-filter-btn{ width:100%; padding:14px 20px; font-size:15px; font-weight:600; border-radius:12px; }
  .bestay-clear-filters{ text-align:center; font-size:14px; padding:8px 0; }

  .bestay-results-section{ margin-top:0; }
  .bestay-results-header{ margin-bottom:24px; padding:0 4px; }
  .bestay-results-title{ font-size:22px; margin-bottom:6px; }
  .bestay-results-count{ font-size:15px; }

  .bestay-properties-grid{ display:grid; grid-template-columns:1fr; gap:20px; margin-bottom:40px; }
  .bestay-property-card{
    background:#FFFFFF !important; border:1px solid rgba(31,74,60,.15) !important; border-radius:16px;
    overflow:hidden; box-shadow:0 2px 12px rgba(31,74,60,.08) !important;
  }
  .bestay-property-image{ height:200px; position:relative; }
  .bestay-property-thumb{ width:100%; height:100%; object-fit:cover; }
  .bestay-property-placeholder{ background:#F2F4F2 !important; }

  .bestay-property-status{ top:10px; right:10px; padding:4px 8px; font-size:10px; border-radius:6px; }
  .bestay-property-type{ top:10px; left:10px; padding:3px 6px; font-size:10px; border-radius:4px; }

  .bestay-property-content{ padding:16px; }
  .bestay-property-title{ font-size:18px; margin-bottom:8px; line-height:1.3; }
  .bestay-property-location{ font-size:13px; margin-bottom:12px; gap:4px; }
  .bestay-property-location svg{ width:14px; height:14px; }
  .bestay-property-price{ font-size:20px; margin-bottom:12px; }
  .bestay-property-price span{ font-size:13px; }

  .bestay-features-list{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .bestay-features-list span{ font-size:12px; gap:4px; }
  .bestay-features-list svg{ width:12px; height:12px; }

  .bestay-pagination{ margin-top:24px; padding:0 4px; }
  .bestay-pagination .page-numbers{ padding:8px 12px; margin:0 2px; font-size:14px; border-radius:6px; }

  .bestay-no-results{ padding:60px 20px; }
  .bestay-no-results h2{ font-size:22px; }
  .bestay-no-results p{ font-size:15px; }

  /* Single page extras for mobile */
  html, body{ -webkit-text-size-adjust:100% !important; text-size-adjust:100% !important; width:100% !important; overflow-x:hidden !important; }
  .bestay-wrap{ width:100% !important; max-width:100vw !important; padding:16px 12px !important; margin:0 !important; overflow-x:hidden !important; }
  .bestay-single{ grid-template-columns:1fr !important; gap:24px !important; width:100% !important; max-width:100% !important; }
  .bestay-header{ padding:0 !important; }
  .bestay-title{ font-size:clamp(20px,5vw,24px) !important; line-height:1.2 !important; margin-bottom:8px !important; word-wrap:break-word !important; }
  .bestay-sub{ font-size:14px !important; line-height:1.4 !important; margin-bottom:16px !important; }

  .bestay-hero-gallery{ grid-template-columns:1fr !important; gap:12px !important; margin:16px 0 20px !important; width:100% !important; }
  .bestay-hero-main{ height:200px !important; border-radius:12px !important; }
  .bestay-hero-right{ display:grid !important; grid-template-columns:repeat(4,1fr) !important; grid-auto-rows:60px !important; gap:8px !important; }
  .bestay-hero-right img{ border-radius:6px !important; }

  .bestay-tabs{
    background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.15) !important; border-radius:12px 12px 0 0 !important;
    padding:8px 12px 0 !important; margin:16px 0 0 !important; gap:16px !important;
    box-shadow:0 2px 8px rgba(31,74,60,.08) !important;
    position:relative !important; z-index:100 !important; width:100% !important;
    overflow-x:visible !important; flex-wrap:wrap !important;
  }
  .bestay-tabs a{
    color:#6B7280 !important; font-size:14px !important; font-weight:600 !important;
    white-space:normal !important; padding:10px 8px !important;
  }
  .bestay-tabs a.active{ color:#1F4A3C !important; }
  .bestay-tabs a.active:after{ background:#1F4A3C !important; height:2px !important; }

  .bestay-facts{ grid-template-columns:1fr 1fr !important; gap:10px !important; margin:16px 0 20px !important; }
  .bestay-fact{ border-radius:8px !important; padding:12px 8px !important; min-height:70px !important; display:flex !important; flex-direction:column !important; justify-content:center !important; }
  .bestay-fact span{ font-size:11px !important; margin-bottom:4px !important; }
  .bestay-fact strong{ font-size:14px !important; line-height:1.2 !important; }

  .bestay-description-block, .bestay-address-block, .bestay-location-notes{
    margin:16px 0 !important; border-radius:12px !important; padding:16px !important; width:100% !important; box-sizing:border-box !important;
  }

  .bestay-amenity-items{ grid-template-columns:1fr !important; gap:8px !important; }
  .bestay-amenity-items li{ padding:10px 12px !important; font-size:14px !important; border-radius:8px !important; }

  .bestay-aside .bestay-card{
    background:#FFFFFF !important; border:1px solid rgba(31,74,60,.15) !important; border-radius:12px !important;
    padding:16px !important; box-shadow:0 2px 12px rgba(31,74,60,.08) !important; position:static !important; margin-top:20px !important;
    width:100% !important; box-sizing:border-box !important;
  }
  .bestay-price{ font-size:24px !important; margin-bottom:8px !important; }
  .bestay-addr{ font-size:14px !important; margin-bottom:16px !important; }

  .bestay-map-wrapper{ padding:8px !important; border-radius:12px !important; margin:0 !important; width:100% !important; }
  .bestay-map-wrapper iframe{ width:100% !important; height:250px !important; border-radius:8px !important; }

  .bestay-tab{ padding:16px 0 !important; width:100% !important; }

  *{ max-width:100% !important; box-sizing:border-box !important; }
  img{ max-width:100% !important; height:auto !important; }
  table{ width:100% !important; table-layout:fixed !important; }
}

/* Small mobile */
@media (max-width:480px){
  .bestay-archive{ padding:16px 0 32px; }
  .bestay-wrap{ padding:0 12px; }
  .bestay-title{ font-size:clamp(22px,7vw,28px) !important; }
  .bestay-sub{ font-size:14px; }

  /* Hero section mobile fixes */
  .bestay-hero-inner{ padding:0 12px; }
  .bestay-hero-actions{ padding:0 12px; }
  .bestay-hero-stats{
    padding:0 12px;
    overflow-x: visible !important;
    width: calc(100% - 24px) !important;
    margin: 0 12px !important;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
  }
  .bestay-stat{
    flex-shrink: 1;
    min-width: 0;
    font-size: 10px;
    flex: 1 1 auto;
    text-align: center;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .bestay-stat strong { font-size: 12px; }
  .bestay-stat span { font-size: 9px; display: block; }

  /* Gallery styles for small mobile */
  .bestay-image-gallery{ margin: 16px 0 24px 0; }
  .bestay-gallery-container{ max-width:100%; border-radius:6px; }
  .bestay-gallery-wrapper{ aspect-ratio: 16 / 9; }

  .bestay-filters-section{ padding:16px 12px; margin-bottom:24px; border-radius:12px; }
  .bestay-search-wrapper input{ padding:12px 48px 12px 14px; font-size:16px; }
  .bestay-search-btn{ width:32px; height:32px; right:6px; }
  .bestay-filter-controls{ gap:12px; }
  .bestay-filter-group select, .bestay-price-inputs input{ padding:10px 12px; font-size:16px; }
  .bestay-price-inputs{ grid-template-columns:1fr; gap:8px; }
  .bestay-price-separator{ display:none; }
  .bestay-filter-actions{ margin-top:16px; }
  .bestay-filter-btn{ padding:12px 16px; font-size:14px; }

  .bestay-properties-grid{ gap:16px; margin-bottom:32px; }
  .bestay-property-card{ border-radius:12px; }
  .bestay-property-image{ height:180px; }
  .bestay-property-content{ padding:14px; }
  .bestay-property-title{ font-size:16px; margin-bottom:6px; }
  .bestay-property-location{ font-size:12px; margin-bottom:10px; }
  .bestay-property-price{ font-size:18px; margin-bottom:10px; }
  .bestay-features-list{ grid-template-columns:1fr; gap:6px; }
  .bestay-features-list span{ font-size:11px; }
  .bestay-pagination .page-numbers{ padding:6px 10px; margin:0 1px; font-size:13px; }

  .bestay-hero-gallery{ margin:12px 0 16px !important; }
  .bestay-hero-main{ height:160px !important; }
  .bestay-hero-right{ grid-template-columns:repeat(3,1fr) !important; grid-auto-rows:50px !important; gap:6px !important; }
  .bestay-tabs{ padding:6px 8px 0 !important; gap:12px !important; }
  .bestay-tabs a{ font-size:13px !important; padding:8px 6px !important; }
}

/* iPhone X safe areas */
@media (max-width:480px) and (orientation: portrait){
  .bestay-wrap{ padding-left:max(12px, env(safe-area-inset-left)); padding-right:max(12px, env(safe-area-inset-right)); }
}

/* High DPI images */
@media (-webkit-min-device-pixel-ratio:2), (min-resolution:192dpi){
  .bestay-property-thumb, .bestay-showcase-thumb{ image-rendering:-webkit-optimize-contrast; image-rendering:crisp-edges; }
}

/* Samsung Internet tweaks */
@supports (-webkit-appearance: none){
  @media (max-width:768px){
    body{ -webkit-font-smoothing:antialiased !important; -moz-osx-font-smoothing:grayscale !important; }
    .bestay-wrap{ min-height:100vh !important; transform:scale(1) !important; transform-origin:0 0 !important; }
  }
}

/* Landscape mobile */
@media (max-height:500px) and (orientation:landscape){
  .bestay-archive{ padding:12px 0 24px; }
  .bestay-archive-header{ margin-bottom:20px; }
  .bestay-filters-section{ padding:12px; margin-bottom:20px; }
  .bestay-properties-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .bestay-property-image{ height:120px; }
  .bestay-property-content{ padding:10px; }

  .bestay-hero-gallery{ margin:8px 0 12px !important; }
  .bestay-hero-main{ height:120px !important; }
  .bestay-facts{ grid-template-columns:repeat(4,1fr) !important; gap:6px !important; }
  .bestay-fact{ min-height:50px !important; padding:6px 4px !important; }
  .bestay-fact span{ font-size:10px !important; }
  .bestay-fact strong{ font-size:12px !important; }
}

/* ==========================================================================
   PROFESSIONAL ARCHIVE STYLES
   ========================================================================== */

.bestay-archive{ padding:32px 0 60px; }
.bestay-archive-header{ text-align:center; margin-bottom:48px; }

.bestay-filters-section{
  background:#F2F4F2 !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  padding:32px; margin-bottom:48px; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
}
.bestay-search-section{ margin-bottom:28px; }
.bestay-search-wrapper{ position:relative; max-width:500px; margin:0 auto; }
.bestay-search-wrapper input{
  width:100%; padding:16px 56px 16px 20px; border:1px solid rgba(31,74,60,.15) !important;
  border-radius:12px; background:#FFFFFF !important; color:#1F2937 !important; font-size:16px; transition:.2s;
}
.bestay-search-wrapper input:focus{ outline:none; border-color:#1F4A3C !important; box-shadow:0 0 0 3px rgba(31,74,60,.1) !important; }
.bestay-search-btn{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  background:#1F4A3C !important; color:#FFFFFF !important; border:none; border-radius:8px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s;
}
.bestay-search-btn:hover{ background:#16453A !important; }

.bestay-filter-controls{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; align-items:end; }
.bestay-filter-group label{ display:block; margin-bottom:8px; font-weight:600; color:#1F4A3C !important; font-size:14px; }
.bestay-filter-group select, .bestay-price-inputs input{
  width:100%; padding:12px 14px; border:1px solid rgba(31,74,60,.15) !important; border-radius:10px;
  background:#FFFFFF !important; color:#1F2937 !important; font-size:14px; transition:.2s;
}
.bestay-filter-group select:focus, .bestay-price-inputs input:focus{ outline:none; border-color:#1F4A3C !important; box-shadow:0 0 0 3px rgba(31,74,60,.1) !important; }
.bestay-price-inputs{ display:flex; align-items:center; gap:12px; }
.bestay-price-inputs input{ flex:1; min-width:80px; }
.bestay-price-separator{ color:#6B7280 !important; font-size:14px; font-weight:500; }
.bestay-filter-actions{ display:flex; flex-direction:column; gap:8px; align-items:center; }
.bestay-filter-btn{
  background:#1F4A3C !important; color:#FFFFFF !important; border:none; padding:12px 24px; border-radius:10px;
  font-weight:600; font-size:14px; cursor:pointer; transition:.2s; width:100%;
}
.bestay-filter-btn:hover{ background:#16453A !important; transform:translateY(-1px); }
.bestay-clear-filters{
  color:#1F4A3C !important; text-decoration:none; font-size:13px; font-weight:500; padding:4px 0;
  border-bottom:1px solid transparent; transition:border-color .2s ease;
}
.bestay-clear-filters:hover{ border-color:#1F4A3C !important; }

.bestay-results-section{ margin-top:24px; }
.bestay-results-header{ margin-bottom:32px; }
.bestay-results-title{ color:#1F4A3C !important; font-size:28px; font-weight:600; margin:0 0 8px; }
.bestay-results-count{ color:#6B7280 !important; font-size:16px; margin:0; }

.bestay-properties-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(350px,1fr)); gap:28px; margin-bottom:48px; }
.bestay-property-card{
  background:#FFFFFF !important; border:1px solid rgba(31,74,60,.12) !important; border-radius:16px;
  overflow:hidden; box-shadow:0 2px 16px rgba(31,74,60,.08) !important;
  transition:transform .3s ease, box-shadow .3s ease;
}
.bestay-property-card:hover{ transform:translateY(-4px); box-shadow:0 8px 24px rgba(31,74,60,.15) !important; }
.bestay-property-link{ text-decoration:none; color:inherit; display:block; }

.bestay-property-image{ position:relative; height:240px; overflow:hidden; }
.bestay-property-thumb{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.bestay-property-card:hover .bestay-property-thumb{ transform:scale(1.05); }
.bestay-property-placeholder{ width:100%; height:100%; background:#F2F4F2 !important; display:flex; align-items:center; justify-content:center; color:#6B7280 !important; }

.bestay-property-status{ position:absolute; top:12px; right:12px; padding:6px 10px; border-radius:8px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
.bestay-status-available{ background:#10B981; color:#fff; }
.bestay-status-rented{ background:#EF4444; color:#fff; }
.bestay-status-pending{ background:#F59E0B; color:#fff; }

.bestay-property-type{ position:absolute; top:12px; left:12px; background:rgba(31,74,60,.9); color:#fff; padding:4px 8px; border-radius:6px; font-size:11px; font-weight:600; backdrop-filter:blur(4px); }

.bestay-property-content{ padding:24px; }
.bestay-property-title{ margin:0 0 12px; font-size:20px; font-weight:600; color:#1F4A3C !important; line-height:1.3; }
.bestay-property-location{ margin:0 0 16px; color:#6B7280 !important; font-size:14px; display:flex; align-items:center; gap:6px; }
.bestay-property-price{ font-size:24px; font-weight:700; color:#1F4A3C !important; margin:0 0 16px; }
.bestay-property-price span{ font-size:14px; font-weight:400; color:#6B7280 !important; }
.bestay-features-list{ display:flex; flex-wrap:wrap; gap:12px; }
.bestay-features-list span{ display:flex; align-items:center; gap:4px; color:#6B7280 !important; font-size:13px; font-weight:500; }

.bestay-pagination{ text-align:center; margin-top:32px; }
.bestay-pagination .page-numbers{
  display:inline-block; padding:10px 16px; margin:0 4px; border:1px solid rgba(31,74,60,.15) !important; border-radius:8px;
  text-decoration:none; color:#1F4A3C !important; font-weight:500; transition:.2s; background:#FFFFFF !important;
}
.bestay-pagination .page-numbers:hover, .bestay-pagination .page-numbers.current{
  background:#1F4A3C !important; color:#FFFFFF !important; border-color:#1F4A3C !important; transform:translateY(-1px);
}

.bestay-no-results{ text-align:center; padding:80px 20px; }
.bestay-no-results-icon{ color:#6B7280 !important; margin-bottom:24px; }
.bestay-no-results h2{ color:#1F4A3C !important; margin-bottom:16px; font-size:28px; }
.bestay-no-results p{ color:#6B7280 !important; margin-bottom:32px; font-size:16px; }

/* ==========================================================================
   HEADER / NAV - WITH LOGO FIX
   ========================================================================== */

.bestay-header{ 
  position:sticky; 
  top:0; 
  z-index:50; 
  background:#1F4A3C !important;  /* Changed from #16453A and added !important */
  color:#fff; 
  border-bottom:1px solid rgba(255,255,255,.08); 
}
.bestay-header-inner{ max-width:1200px; margin:0 auto; padding:12px 20px; display:flex; align-items:center; justify-content:space-between; }
.bestay-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}

.bestay-logo-mark {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.bestay-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFFFFF !important;
}


/* Active menu item styles */
.bestay-menu a.active,
.bestay-menu .current-menu-item > a,
.bestay-menu .current_page_item > a {
  color: #16453A; /* Your brand color */
  font-weight: 600;
  position: relative;
}

/* Optional: Add an underline or border to active items */
.bestay-menu a.active::after,
.bestay-menu .current-menu-item > a::after,
.bestay-menu .current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #16453A; /* Your brand color */
}

/* For mobile menu active states */
@media (max-width: 768px) {
  .bestay-menu a.active,
  .bestay-menu .current-menu-item > a,
  .bestay-menu .current_page_item > a {
    background-color: rgba(22, 69, 58, 0.1); /* Light background on mobile */
    border-radius: 4px;
  }
  
  .bestay-menu a.active::after,
  .bestay-menu .current-menu-item > a::after,
  .bestay-menu .current_page_item > a::after {
    display: none; /* Remove underline on mobile */
  }
}

/* Hover states should be different from active states */
.bestay-menu a:hover:not(.active) {
  opacity: 0.7;
}




.bestay-nav{ display:flex; }
/* Desktop navigation - always visible */
.bestay-nav {
  display: flex !important;
}

.bestay-menu { 
  display: flex; 
  gap: 22px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

/* Desktop navigation - always visible */
.bestay-nav {
  display: flex !important;
}

.bestay-menu { 
  display: flex; 
  gap: 22px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

.bestay-menu a { 
  color: #FFFFFF !important;
  text-decoration: none; 
  font-weight: 600; 
  opacity: .95; 
}

.bestay-menu a:hover { 
  color: #FFFFFF !important;
  opacity: 1; 
  text-decoration: underline; 
}

/* Mobile nav toggle - hidden on desktop */
.bestay-nav-toggle { 
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
}

.bestay-nav-toggle:hover { 
  background: rgba(255,255,255,.1); 
  border-color: rgba(255,255,255,.5); 
}

/* Mobile only styles */
@media (max-width: 900px) {
  .bestay-nav-toggle { 
    display: block; 
  }
  
  .bestay-nav { 
    position: absolute; 
    top: 56px; 
    right: 0; 
    left: 0; 
    background: #1F4A3C; 
    border-bottom: 1px solid rgba(255,255,255,.1); 
    display: none !important; 
  }
  
  .bestay-nav.open { 
    display: block !important; 
  }
  
  .bestay-menu { 
    flex-direction: column; 
    padding: 12px 20px; 
    gap: 12px; 
  }
}

/* Mobile nav toggle */
.bestay-nav-toggle{ 
  display:none; background:transparent; border:2px solid rgba(255,255,255,.3); 
  color:#fff; font-size:20px; line-height:1; padding:8px 12px; border-radius:6px;
  cursor:pointer; transition:all .2s ease;
}
.bestay-nav-toggle:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.5); }

@media (max-width:900px){
  .bestay-nav-toggle{ display:block; }
  .bestay-nav{ position:absolute; top:56px; right:0; left:0; background:#16453A; border-bottom:1px solid rgba(255,255,255,.1); display:none; }
  .bestay-nav.open{ display:block; }
  .bestay-menu{ flex-direction:column; padding:12px 20px; gap:12px; }
}

/* offset so section anchors aren't hidden by sticky header */
:target{ scroll-margin-top:80px; }

/* ==========================================================================
   BECOME A HOST - HERO POLISH
   ========================================================================== */

.page-template-page-list-with-us .bestay-host-hero {
  background: 
    radial-gradient(1200px 500px at 20% 15%, rgba(16, 185, 129, 0.12), transparent 65%),
    linear-gradient(135deg, #0B5B47 0%, #16453A 35%, #1F4A3C 70%, #2A5F4F 100%);
  position: relative;
  overflow: hidden;
}

.page-template-page-list-with-us .bestay-host-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    );
  pointer-events: none;
  z-index: 1;
}

.page-template-page-list-with-us .bestay-host-hero-inner {
  position: relative;
  z-index: 2;
}

.page-template-page-list-with-us .bestay-host-hero-media img {
  opacity: 0.18 !important;
  filter: brightness(0.8) contrast(1.1);
  mix-blend-mode: multiply;
}

.page-template-page-list-with-us .bestay-host-hero-gradient {
  opacity: 0;
  background: transparent;
}

.page-template-page-list-with-us .bestay-host-hero-inner h1 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-template-page-list-with-us .bestay-host-hero-inner p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.page-template-page-list-with-us .bestay-section-label {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   CONTACT PAGE - FIXED
   ========================================================================== */

.page-template-page-contact .bestay-contact-section {
  background: #FFFFFF !important;
  padding: 88px 0 72px;
}

.page-template-page-contact .bestay-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.page-template-page-contact .bestay-contact-title,
.page-template-page-contact h1,
.page-template-page-contact h2,
.page-template-page-contact h3 {
  color: #1F4A3C !important;
  background: transparent !important;
}

.page-template-page-contact .bestay-contact-subtitle,
.page-template-page-contact p {
  color: #6B7280 !important;
}

.page-template-page-contact .bestay-contact-item {
  background: #F9FAF9 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(31, 74, 60, 0.06);
  transition: all 0.2s ease;
}

.page-template-page-contact .bestay-contact-item:hover {
  background: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(31, 74, 60, 0.12);
  transform: translateY(-2px);
}

.page-template-page-contact .bestay-contact-form {
  background: #F8F9F8 !important;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(31, 74, 60, 0.08);
}

@media (max-width: 960px) {
  .page-template-page-contact .bestay-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SINGLE LISTING - FIXED (NO WHITE BOX, NO STICKY TABS)
   ========================================================================== */

/* Kill underline in ALL states with high specificity */
.bestay-listing-header .bestay-backlink,
.bestay-listing-header .bestay-backlink:link,
.bestay-listing-header .bestay-backlink:visited,
.bestay-listing-header .bestay-backlink:hover,
.bestay-listing-header .bestay-backlink:focus,
.bestay-listing-header .bestay-backlink:active {
  text-decoration: none !important;
}

.bestay-backlink {
  --green: #1F4A3C;
  --hover-green: #16392D;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--green);
  background: transparent !important;   /* force no fill */
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

/* IMPORTANT: draw arrow with stroke only (no fill) */
.bestay-backlink .icon {
  width: 22px; height: 22px;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;                      /* prevents weird black blob */
  transition: transform .25s ease;
}

.bestay-backlink:hover {
  border-color: var(--hover-green);
  color: var(--hover-green);
  transform: translateX(-2px);
}

.bestay-backlink:hover .icon { transform: translateX(-4px); }

.bestay-backlink:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,74,60,.25);
}





/* Site header on single listing pages - solid background, sticky */
.single-listing .bestay-header {
  background: #1F4A3C !important;
  position: sticky !important;
  top: 0 !important;
}

/* Listing title section - transparent background */
.bestay-listing-header {
  background: transparent !important;
  padding: 24px 0;
  margin-bottom: 20px;
}

.single-listing .bestay-title {
  color: #1F4A3C !important;
  background: transparent !important;
  text-shadow: none !important;
}

.single-listing .bestay-sub {
  color: #6B7280 !important;
  background: transparent !important;
}

/* ==========================================================================
   CONTACT PAGE HERO - LIGHT VERSION
   ========================================================================== */

.bestay-contact-hero {
  background: #F8F9F8;
  padding: 80px 20px 60px;
  text-align: center;
}

.bestay-contact-hero-content h1 {
  color: #1F4A3C !important;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 12px;
  text-shadow: none !important;
}

.bestay-contact-hero-content p {
  color: #6B7280 !important;
  font-size: 18px;
  margin: 0;
  text-shadow: none !important;
}

/* Listing page title header (not the site header) */
.bestay-listing-header {
  background: transparent !important;
  padding: 24px 0;
  margin-bottom: 20px;
}

.bestay-listing-header .bestay-title {
  color: #1F4A3C !important;
  background: transparent !important;
}

.bestay-listing-header .bestay-sub {
  color: #6B7280 !important;
}


/* ==========================================================================
   FOOTER - IMPROVED
   ========================================================================== */

.bestay-footer {
  background: #1F4A3C !important;
  color: #FFFFFF !important;
  padding: 60px 20px 40px;
  margin-top: 80px;
  width: 100%;
}

.bestay-footer * {
  color: #FFFFFF !important;
}

.bestay-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bestay-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.bestay-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.bestay-footer-logo {
  width: 32px;
  height: 32px;
  color: #FFFFFF !important;
}

.bestay-footer-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFFFFF !important;
}

.bestay-footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.bestay-footer-social {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}

.bestay-social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #FFFFFF !important;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.bestay-social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.bestay-social-link svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

.bestay-footer-bottom {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  text-align: center;
}

.bestay-footer-bottom p {
  margin: 0 !important;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 768px) {
  .bestay-footer {
    padding: 40px 20px 32px;
    margin-top: 60px;
  }
  
  .bestay-footer-name {
    font-size: 20px;
  }
  
  .bestay-social-link {
    width: 44px;
    height: 44px;
  }
}

/* Beslock calendar price tag */
.bestay-cal-day .bestay-day-price {
  display:block;
  font-size:11px;
  line-height:1;
  opacity:.8;
  margin-top:4px;
}
.bestay-cal-day.disabled .bestay-day-price { opacity:.4; }

/* ==========================================================================
   ADMIN & ACF FIELD WIDTH IMPROVEMENTS
   ========================================================================== */

/* Make all ACF field containers full width */
.acf-field {
  max-width: none !important;
}

/* Expand ACF input wrapper containers */
.acf-input-wrap {
  width: 100% !important;
  max-width: none !important;
}

/* Direct input field styling - all types */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* ACF specific input styling */
.acf-input > input,
.acf-input > textarea,
.acf-input > select {
  width: 100% !important;
  max-width: none !important;
}

/* Force all inputs to be full width inside ACF fields */
.acf-field input,
.acf-field textarea,
.acf-field select {
  width: 100% !important;
  max-width: none !important;
}

/* ACF text field input container */
.acf-field-text input,
.acf-field-email input,
.acf-field-url input,
.acf-field-number input,
.acf-field-tel input,
.acf-field-password input {
  width: 100% !important;
}

/* ACF textarea */
.acf-field-textarea textarea {
  width: 100% !important;
  min-height: 120px !important;
  resize: vertical !important;
}

/* ACF select fields */
.acf-field-select select {
  width: 100% !important;
}

/* ACF wysiwyg (rich text editor) */
.acf-field-wysiwyg {
  width: 100% !important;
}

/* Post edit page fields */
#post-body input,
#post-body textarea,
#post-body select {
  width: 100% !important;
  max-width: none !important;
}

/* Listing post type fields */
.post-type-listing input,
.post-type-listing textarea,
.post-type-listing select {
  width: 100% !important;
  max-width: none !important;
}

/* ==========================================================================
   BESTAY GALLERY UPLOADER STYLES
   ========================================================================== */

/* Main gallery uploader container */
.bestay-gallery-uploader {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Gallery grid display */
.bestay-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  min-height: 80px;
  padding: 12px;
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
  align-content: start;
  max-width: 600px;
}

.bestay-gallery-grid:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  min-height: 140px;
  padding: 20px;
}

.bestay-gallery-grid:empty::after {
  content: 'No images selected yet. Click "Add Images" to get started.';
}

/* Individual gallery thumbnail */
.bestay-gallery-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  cursor: grab;
  transition: all 0.2s ease;
}

.bestay-gallery-thumb:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-color: #1F4A3C;
}

.bestay-gallery-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery remove button */
.bestay-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  font-weight: bold;
}

.bestay-gallery-thumb:hover .bestay-gallery-remove {
  opacity: 1;
}

.bestay-gallery-remove:hover {
  background: #cc0000;
  transform: scale(1.1);
}

/* Gallery actions */
.bestay-gallery-actions {
  display: flex;
  gap: 12px;
}

.bestay-gallery-upload {
  background: #1F4A3C !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bestay-gallery-upload:hover {
  background: #16453A !important;
}

.bestay-gallery-upload:active {
  transform: scale(0.98);
}

/* Hide ACF gallery field from the Property data section since we have custom UI */
.acf-field-gallery {
  display: none !important;
}
