:root {
  --color-primary:    #3b82f6;
  --color-primary-dk: #2563eb;
  --color-primary-lt: #eff6ff;
  --color-secondary:  #f59e0b;
  --color-success:    #10b981;
  --color-danger:     #ef4444;
  --color-warning:    #f59e0b;
  --color-dark:       #1e293b;
  --color-mid:        #64748b;
  --color-light:      #f1f5f9;
  --color-white:      #ffffff;
  --color-bg:         #f8fafc;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 16px;
  --line-height: 1.6;
  
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.06);
  --shadow-soft: 0 8px 30px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.08);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dk);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.page-padding {
  padding-top: 40px;
  padding-bottom: 60px;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-mid); }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn--primary:hover {
  background-color: var(--color-primary-dk);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary-lt);
  transform: translateY(-2px);
}

/* Header Premium */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px; /* A bit thinner and more elegant */
  display: flex;
  align-items: center;
}

.header__inner {
  width: 100%;
  max-width: 1400px; /* Wider container for premium feel */
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Exact centering of the middle part */
  align-items: center;
}

.header__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.logo {
  font-size: 1.5rem; /* slightly more refined */
  font-weight: 800;
  color: #3B82F6; /* Premium Blue */
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0F172A;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 20px; /* Pill shape for premium feel */
}

/* Hero */
.hero {
  padding: 120px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: var(--color-white);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--color-white);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 48px;
  opacity: 0.9;
  font-weight: 400;
}

.search-bar {
  display: flex;
  max-width: 650px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 1.1rem;
  outline: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-dark);
}

.search-bar .btn {
  padding: 16px 40px;
  border-radius: calc(var(--radius-md) - 4px);
  font-size: 1.1rem;
}

/* Grid & Cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card__img {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.card__img img, .card__img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__img img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

.card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card__content h3 a {
  color: var(--color-dark);
}

.card__content h3 a:hover {
  color: var(--color-primary);
}

.card__city {
  color: var(--color-mid);
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-light);
}

.stars {
  color: var(--color-warning);
  font-weight: 600;
}

.distance {
  color: var(--color-mid);
  font-size: 0.9rem;
}

/* Place Show Page */
.place-hero {
  height: 400px;
  position: relative;
  background: var(--color-dark);
}

.place-hero__img, .place-hero__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.place-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 0 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--color-white);
}

.place-hero__overlay h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin: 16px 0 8px;
}

.place-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.place-main {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.place-sidebar .sidebar-box {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 100px;
}

.pet-policy-box {
  background: var(--color-primary-lt);
  padding: 24px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-primary);
}

.pet-policy-box ul {
  list-style: none;
}

.pet-policy-box li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

/* Map Layout */
.map-container-full {
  display: flex;
  height: calc(100vh - 80px); /* Minus header */
  width: 100%;
}

.map-sidebar {
  width: 400px;
  background: var(--color-white);
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.map-results {
  flex: 1;
  overflow-y: auto;
  margin-top: 16px;
  padding-right: 8px;
}

.map-wrapper {
  flex: 1;
  background: #e5e5e5;
  z-index: 1;
}

/* Map Popup */
.map-popup {
  display: flex;
  flex-direction: column;
  width: 200px;
}

.map-popup img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.map-popup__body {
  padding: 12px;
}

.map-popup h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

/* ── FOOTER PREMIUM ── */
.footer { 
  position: relative;
  background: #f8fafc;
  padding: 80px 40px 32px;
  color: var(--color-text-secondary, #64748b);
  margin-top: 60px;
  overflow: hidden;
  border-top: none;
}
.footer::before, .footer::after {
  content: '';
  position: absolute;
  background: #eff6ff;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.footer::before {
  width: 250px;
  height: 250px;
  top: -120px;
  left: -80px;
}
.footer::after {
  width: 350px;
  height: 350px;
  bottom: -150px;
  right: -100px;
}
.footer .section__inner { 
  max-width: 1080px; 
  margin: 0 auto; 
  width: 100%; 
  position: relative;
  z-index: 1;
}
.footer__top { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  margin-bottom: 64px; 
  gap: 64px; 
}
.footer__brand { max-width: 300px; text-align: left; }
.footer__logo { 
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px; 
  font-weight: 700; 
  color: var(--color-text-primary, #0f172a); 
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.footer__logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.footer__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary, #0f172a);
  margin: 16px 0 8px 0;
  line-height: 1.3;
}
.footer__tagline { 
  font-size: 15px; 
  color: var(--color-text-secondary, #64748b); 
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer__socials {
  display: flex;
  gap: 16px;
}
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--color-text-primary, #0f172a);
  transition: all 0.2s ease;
}
.footer__socials a:hover {
  background: var(--color-primary-lt, #eff6ff);
  color: var(--color-primary, #3b82f6);
  border-color: var(--color-primary, #3b82f6);
  transform: translateY(-2px);
}
.footer__nav { 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  flex: 1;
  text-align: left;
}
.footer__col-title { 
  font-size: 13px; 
  font-weight: 600; 
  color: var(--color-text-primary, #0f172a); 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  margin-bottom: 20px; 
}
.footer__links { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}
.footer__link { 
  font-size: 15px; 
  color: var(--color-text-secondary, #64748b); 
  text-decoration: none; 
  transition: color 0.15s; 
}
.footer__link:hover { color: var(--color-primary, #3b82f6); }
.footer__bottom { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-top: 1px solid var(--color-border-tertiary, #e2e8f0); 
  padding-top: 32px; 
  flex-wrap: wrap;
  gap: 24px;
}
.footer__copy { font-size: 14px; color: var(--color-text-secondary, #64748b); }
.footer__legal-links { display: flex; gap: 24px; }
.footer__legal-links a { font-size: 14px; color: var(--color-text-secondary, #64748b); text-decoration: none; transition: color 0.15s; }
.footer__legal-links a:hover { color: var(--color-primary, #3b82f6); }
.footer__selectors {
  display: flex;
  gap: 16px;
}
.footer__select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary, #64748b);
}
.footer__select-wrapper svg { color: var(--color-text-secondary, #64748b); }
.footer__select {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--color-text-secondary, #64748b);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}
.footer__select:hover { color: var(--color-text-primary, #0f172a); }

/* Responsive Footer */
@media (max-width: 900px) {
  .footer__nav { gap: 24px; }
}

@media (max-width: 768px) {
  .footer { padding: 48px 20px 80px; text-align: center; }
  .footer__top { flex-direction: column; gap: 40px; align-items: center; }
  .footer__brand { max-width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .footer__logo { justify-content: center; }
  .footer__socials { justify-content: center; }
  .footer__nav { grid-template-columns: 1fr; gap: 32px; width: 100%; text-align: center; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .footer__legal-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .footer__selectors { align-items: center; justify-content: center; width: 100%; flex-direction: column; gap: 12px; }
  .footer__select-wrapper { justify-content: center; width: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .place-layout { grid-template-columns: 1fr; }
  .map-container-full { flex-direction: column-reverse; }
  .map-sidebar { width: 100%; height: 50vh; }
  .map-wrapper { height: 50vh; }
  
  .header__inner {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }
  .header__center {
    display: none; /* Hide nav on mobile for now */
  }
}

/* ── LOPD COOKIES ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  z-index: 9999;
  padding: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner__content {
  flex: 1;
}

.cookie-banner__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__text {
  font-size: 14px;
  color: var(--color-mid);
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 10px 20px;
  font-size: 14px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal__box {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.cookie-modal__header {
  padding: 24px;
  border-bottom: 1px solid var(--color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  color: var(--color-mid);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal__close:hover {
  background: var(--color-light);
  color: var(--color-dark);
}

.cookie-modal__body {
  padding: 24px;
  overflow-y: auto;
}

.cookie-modal__desc {
  font-size: 14px;
  color: var(--color-mid);
  margin-bottom: 24px;
  line-height: 1.6;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-light);
}

.cookie-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-option__info {
  flex: 1;
}

.cookie-option__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.cookie-option__desc {
  font-size: 13px;
  color: var(--color-mid);
  line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-slider.disabled {
  cursor: not-allowed;
  background-color: var(--color-primary);
  opacity: 0.6;
}

.cookie-modal__footer {
  padding: 24px;
  border-top: 1px solid var(--color-light);
  display: flex;
  justify-content: flex-end;
}

.cookie-modal__btn-save {
  width: 100%;
}
@media (min-width: 640px) {
  .cookie-modal__btn-save { width: auto; }
}


/* Modals Premium Compact */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content--premium {
  max-width: 720px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1), 0 0 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.modal-handle {
  display: none;
}

@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-content--premium {
    border-radius: 28px 28px 0 0;
    max-height: 90vh;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    border: none;
  }
  .modal-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin: -8px auto 16px;
  }
  .modal-header {
    padding: 20px 24px 24px !important;
  }
  .modal-body--premium {
    padding: 32px 24px 24px !important;
  }
  .modal-close-premium {
    top: 20px !important;
    right: 20px !important;
  }
}

.modal-header {
  padding: 32px 40px 24px;
  border-bottom: none;
  display: block;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  background-color: #1D4ED8; /* Premium blue */
  border-radius: 24px 24px 0 0;
}

@media (max-width: 640px) {
  .modal-header {
    border-radius: 28px 28px 0 0;
  }
}

.modal-header > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-title-premium {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 50%;
  flex-shrink: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  line-height: 1.5;
  max-width: 90%;
}

.modal-close-premium {
  position: absolute;
  top: 32px;
  right: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close-premium:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.modal-body--premium {
  padding: 40px 40px 32px; /* Added 40px top padding for the requested white space */
  flex: 1;
  overflow-y: auto;
}

.form-group--premium {
  margin-bottom: 32px;
}

.form-group--premium > label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Huge Stars */
.star-rating-input--huge {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 16px;
  margin: 16px 0;
}

.star-rating-input--huge svg {
  width: 56px;
  height: 56px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 640px) {
  .star-rating-input--huge svg {
    width: 48px;
    height: 48px;
  }
}

.star-rating-input--huge input {
  display: none;
}

.star-rating-input--huge label {
  color: #CBD5E1;
  fill: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s;
}

.star-rating-input--huge label:hover svg,
.star-rating-input--huge label:hover ~ label svg {
  transform: scale(1.15);
}

.star-rating-input--huge label:hover,
.star-rating-input--huge label:hover ~ label,
.star-rating-input--huge input:checked ~ label {
  color: #2563EB; /* Eypet corporate blue stroke */
  fill: #3B82F6;  /* Bright blue fill */
}

.star-rating-hint {
  font-size: 14px;
  color: #64748B;
  margin-top: 12px;
  text-align: center;
  display: block;
  font-weight: 500;
}

/* Segmented Control (Interactive Cards) */
.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
}

.segmented-option input { display: none; }
.segmented-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  background: #F8FAFC;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  cursor: pointer;
}

.segmented-inner svg {
  width: 24px;
  height: 24px;
}

.segmented-option:hover .segmented-inner {
  border-color: #CBD5E1;
  background: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.segmented-option input:checked + .segmented-inner--ok {
  border-color: #10B981;
  background: #F0FDF4;
  color: #065F46;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  transform: translateY(0);
}
.segmented-inner--ok svg { color: #10B981; }

.segmented-option input:checked + .segmented-inner--no {
  border-color: #EF4444;
  background: #FEF2F2;
  color: #991B1B;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  transform: translateY(0);
}
.segmented-inner--no svg { color: #EF4444; }

.segmented-option input:checked + .segmented-inner--neutral {
  border-color: #64748B;
  background: #F8FAFC;
  color: #1E293B;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.1);
  transform: translateY(0);
}
.segmented-inner--neutral svg { color: #64748B; }

/* Hybrid Step Logic -> Universal 2-Step Wizard */
.w-100 { width: 100%; }

.review-step { display: none; }
.review-step.active { display: block; }

.mobile-only-footer {
  margin-top: 32px;
  margin-bottom: 8px;
}

.desktop-only-btn { display: none !important; }
.mobile-only-btn { display: inline-flex !important; }

/* Hide main footer on step 1 */
.modal-overlay[data-step="1"] #review-footer-desktop { 
  display: none; 
}

/* Custom Select Premium */
.form-row--premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .form-row--premium { 
    grid-template-columns: 1fr; 
  }
}

.form-row--premium .form-group--premium {
  margin-bottom: 0;
}
.custom-select-wrapper { 
  position: relative; 
  width: 100%;
}

.custom-select--premium {
  width: 100%;
  appearance: none;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 16px 16px 44px; /* more padding for a premium feel */
  font-size: 15px;
  color: #1E293B;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.custom-select--premium:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.custom-select-leading-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

.custom-select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748B;
}

/* Textarea */
.custom-textarea--premium {
  width: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  font-size: 15px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: all 0.2s;
  background: #F8FAFC;
  color: #1E293B;
}
.custom-textarea--premium:focus {
  border-color: #3B82F6;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.textarea-counter {
  text-align: right;
  font-size: 12px;
  color: #94A3B8;
  margin-top: 8px;
}

/* Footer Wrapper */
.modal-footer-wrapper {
  border-top: 1px solid #F1F5F9;
  flex-shrink: 0;
}

.modal-secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 12px;
  color: #64748B;
  background: #F8FAFC;
}
.modal-secure-notice svg {
  color: #94A3B8;
}

.modal-footer--premium {
  padding: 20px 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
}
@media (max-width: 640px) {
  .modal-footer--premium {
    padding: 16px 24px 24px;
  }
}

.btn-modal-cancel {
  background: transparent;
  border: none;
  color: #475569;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  flex: 1;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-modal-cancel:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-modal-submit {
  background: #2563EB;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}
.btn-modal-submit:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}




@media (max-width: 768px) {
  .place-detail { padding-bottom: 100px; }
  .place-tabs-nav { margin: 0 -20px; padding: 0 20px; }
  .w-50 { width: 100%; }
  .pr-2, .pl-2 { padding: 0; }
  .sidebar-card { margin-bottom: 40px; }
}

/* ── NUEVA FICHA DE LUGAR PREMIUM ── */
.place-detail-page {
  background-color: #F7F9FC;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Inter', sans-serif;
  color: #0F172A;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .place-detail-page {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }
}

.place-main-layout {
  max-width: 100%;
  margin: 0;
  padding: 0 40px 0 40px;
}

/* Hero Superior */
.place-hero {
  position: relative;
  border-radius: 0 24px 24px 0;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 12px;
  margin-top: 0;
  margin-left: -40px;
  width: calc(100% + 40px);
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .place-detail-page *, .place-detail-page *::before, .place-detail-page *::after {
    box-sizing: border-box !important;
  }

  .place-hero {
    border-radius: 0;
    margin: -16px -16px 0 -16px;
    width: calc(100% + 32px) !important;
    max-width: calc(100% + 32px) !important;
    padding: 24px 16px 40px 16px;
    min-height: 200px;
    justify-content: flex-end;
    box-sizing: border-box;
  }
  
  .place-hero__rating-row, .hide-on-mobile {
    display: none !important;
  }
  
  .place-hero__title {
    margin-bottom: 0 !important;
    font-size: 28px;
    word-break: break-word;
    line-height: 1.2;
  }
}

.place-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.place-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 26, 58, 0.95) 0%, rgba(6, 26, 58, 0.6) 50%, rgba(6, 26, 58, 0.1) 100%),
              linear-gradient(to top, rgba(6, 26, 58, 0.9) 0%, rgba(6, 26, 58, 0) 70%);
  z-index: 2;
}

.place-hero__content {
  padding: 0 32px 0 72px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  color: #fff;
}

@media (max-width: 768px) {
  .place-hero__content {
    padding: 0;
    text-align: left;
  }
}

.place-hero__chips-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chip-location, .chip-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.place-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.place-hero__rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rating-badge-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.rating-badge-inline strong {
  font-weight: 700;
  font-size: 16px;
}

.rating-badge-inline .stars {
  display: flex;
  align-items: center;
  margin-top: -2px;
}

.rating-badge-inline .reviews-count {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 4px;
}

.btn-hero-review {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.btn-hero-review:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
}

.place-hero__pet-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.pet-chip--no {
  opacity: 0.5;
}

.place-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary, .btn-hero-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-hero-primary {
  background-color: #2563EB;
  color: white;
  border: 1px solid #2563EB;
}
.btn-hero-primary:hover {
  background-color: #1D4ED8;
}

.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
}



@media (max-width: 768px) {
  .place-main-layout {
    margin: 0 auto !important;
    padding: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .place-columns {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
  }
}

.mobile-hero-ctas, .mobile-accordion-header {
  display: none;
}

/* Premium Mobile CTAs */
.premium-mobile-ctas {
  background-color: #112d64; /* Deep premium blue */
  display: flex;
  flex-direction: row;
  padding: 24px 20px;
  gap: 20px;
  color: white;
  margin-bottom: 24px;
}

@media (min-width: 769px) {
  .premium-mobile-ctas {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-hero-ctas.premium-mobile-ctas {
    display: flex;
    flex-direction: column;
    margin: 16px auto 24px auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 45, 100, 0.15);
    padding: 20px !important;
    gap: 16px;
  }
}

.premium-mobile-ctas-left {
  flex: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 0;
  padding-bottom: 16px;
}

.premium-mobile-ctas-left .btn-premium-outline-mobile {
  width: 100%;
}

.premium-mobile-ctas-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-rating-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.mobile-rating-text {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-rating-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.btn-premium-outline-mobile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-premium-outline-mobile:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-premium-primary-mobile {
  background-color: #2563EB;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.btn-premium-primary-mobile:hover {
  background-color: #1D4ED8;
}

.premium-mobile-ctas-row {
  display: flex;
  gap: 12px;
}

/* Summary Cards */
.summary-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  margin-top: -32px;
  position: relative;
  z-index: 10;
  padding: 0 16px;
}

@media (max-width: 1024px) {
  .summary-cards-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .summary-cards-row { 
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .summary-card {
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .summary-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .summary-label {
    font-size: 12px;
    margin-bottom: 2px;
  }
  .summary-val {
    font-size: 14px;
  }
  /* Moved content-card-tabs to the bottom of the file to fix cascade */
  
  .mobile-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }
  .mobile-accordion-header svg {
    color: #64748b;
    flex-shrink: 0;
  }
  .mobile-accordion-header span {
    flex: 1;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    margin-right: 8px;
  }
  .mobile-accordion-header.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
  }
  .mobile-accordion-header.active svg {
    color: #2563eb;
  }
  .mobile-accordion-header .chevron {
    transition: transform 0.3s ease;
  }
  .mobile-accordion-header.active .chevron {
    transform: rotate(180deg);
  }
  
  .tab-content { 
    display: none; 
    margin-bottom: 24px; 
    padding: 8px 4px; 
    box-sizing: border-box;
    width: 100%;
  }
  .tab-content.mobile-open { 
    display: block !important; 
    animation: fadeIn 0.3s ease;
  }
}


@media (max-width: 640px) {
  .summary-cards-row { grid-template-columns: repeat(2, 1fr); }
}

.summary-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  border: 1px solid #E5EAF2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.summary-icon {
  color: #2563EB;
  flex-shrink: 0;
  background: #EFF6FF;
  padding: 12px;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
}

.summary-text {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 4px;
  font-weight: 500;
}

.summary-val {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}
.summary-val.val-ok { color: #10B981; }
.summary-val.val-no { color: #EF4444; }
.summary-val.val-blue { color: #2563EB; }

/* Columns */
.place-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
}

@media (max-width: 1024px) {
  .place-columns {
    grid-template-columns: 1fr;
  }
}

/* Content Cards */
.content-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  border: 1px solid #E5EAF2;
  position: relative;
  overflow: hidden;
}

#seccion-principal {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 40px !important;
}

@media (max-width: 768px) {
  .content-card { 
    margin: 0 auto !important;
    padding: 16px !important; 
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px;
  }
}

.content-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #0F172A;
}

/* Tabs inside Card */
.content-card-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #E5EAF2;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.content-card-tabs::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  .content-card-tabs {
    display: none !important;
  }
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.tab-link:hover { color: #0F172A; }

.tab-link.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
}

.tab-content {
  display: none;
  animation: fadeInTab 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Policy List */
.policy-list {
  display: flex;
  flex-direction: column;
}

.policy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #F1F5F9;
}

.policy-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.policy-label {
  font-size: 15px;
  color: #475569;
  font-weight: 500;
}

.policy-val {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 768px) {
  .policy-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }
  .policy-val {
    text-align: left;
    width: 100%;
    word-break: break-word;
  }
}

/* Warning Box */
.policy-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #EEF2FF;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #E0E7FF;
  margin-top: 24px;
}
.policy-warning-box p {
  margin: 0;
  font-size: 14px;
  color: #3730A3;
  line-height: 1.5;
  font-weight: 500;
}

/* Description */
.place-description {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  position: relative;
}

.place-description p { margin: 0 0 16px 0; }
.place-description p:last-child { margin: 0; }

.bg-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  color: rgba(15, 23, 42, 0.03);
  transform: rotate(-10deg);
  z-index: 0;
  pointer-events: none;
}
.bg-icon svg { width: 120px; height: 120px; }

/* Reviews Summary */
.reviews-summary-block {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #F8FAFC;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #E5EAF2;
}

@media (max-width: 640px) {
  .reviews-summary-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
}

.reviews-avg-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #E2E8F0;
  padding-right: 32px;
  min-width: 140px;
}

@media (max-width: 640px) {
  .reviews-avg-display {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding-right: 0;
    padding-bottom: 20px;
    width: 100%;
  }
}

.avg-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: #0F172A;
}

.avg-stars { margin: 8px 0 4px; }
.avg-text { font-size: 13px; color: #64748B; }

.first-review-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 640px) {
  .first-review-cta {
    align-items: center;
  }
}

.first-review-icon {
  width: 48px;
  height: 48px;
  background: #EFF6FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.first-review-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.first-review-text strong {
  font-size: 16px;
  color: #0F172A;
}

.first-review-text span {
  font-size: 14px;
  color: #64748B;
}

.place-col-right {
  margin-top: 0;
  width: calc(100% + 40px);
}

@media (max-width: 768px) {
  .place-col-right {
    display: none;
  }
}

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

.sidebar-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  border: 1px solid #E5EAF2;
  position: relative;
  overflow: hidden;
}

.premium-sidebar {
  /* box-shadow: -4px 0 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.05); */
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
  /* border-top: none; */
  /* border-right: none; */
  /* background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%); */
  /* position: relative; */
  /* border-radius: 0 0 0 24px; */
  /* min-height: calc(100vh - 80px); */
}

.premium-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #0F172A;
  border-radius: 24px 24px 0 0;
}

.sidebar-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 24px;
}
.sidebar-address svg { color: #64748B; flex-shrink: 0; margin-top: 2px; }

.sidebar-grid-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #2563EB;
  color: white;
}
.btn-primary:hover { background: #1D4ED8; }

.btn-outline-primary {
  background: white;
  color: #2563EB;
  border: 1px solid #2563EB;
}
.btn-outline-primary:hover { background: #EFF6FF; }

.btn-outline-gray {
  background: white;
  color: #334155;
  border: 1px solid #E2E8F0;
}
.btn-outline-gray:hover { background: #F8FAFC; border-color: #CBD5E1; }

.w-100 { width: 100%; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.sidebar-rating-mini {
  background: #F8FAFC;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rating-mini-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}

.rating-mini-text {
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

.rating-mini-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.verified-info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #EFF6FF;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #DBEAFE;
  margin-top: 24px;
  position: relative;
}

.verified-icon { color: #3B82F6; flex-shrink: 0; margin-top: 2px; }

.verified-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verified-text strong { font-size: 14px; color: #1E3A8A; }
.verified-text span { font-size: 13px; color: #60A5FA; line-height: 1.4; }

.verified-check {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* ========================================================
   MOBILE REDESIGN PREMIUM (max-width: 768px)
   ======================================================== */
@media (max-width: 768px) {
  /* Helper classes for visibility toggling */
  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: block !important; }
  .show-on-mobile.mobile-tabs-bar { display: flex !important; }
  .show-on-mobile.mobile-actions-row { display: flex !important; }
  .show-on-mobile.mobile-actions-block { display: flex !important; }
  .show-on-mobile.mobile-rating-card { display: flex !important; }
  .show-on-mobile.place-hero__top-nav { display: flex !important; justify-content: space-between !important; }
  .show-on-mobile.summary-cards-row { display: grid !important; }
  
  /* Reset Desktop layout */
  .place-main-layout {
    padding: 0 !important;
    background-color: #061A3A; /* Matches typical hero overlay */
  }
  
  .place-columns {
    display: block !important;
  }
  
  /* Hero Redesign */
  .place-hero {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .place-hero__overlay {
    background: linear-gradient(to bottom, rgba(6, 26, 58, 0.4) 0%, rgba(6, 26, 58, 0.1) 40%, rgba(6, 26, 58, 0.8) 100%);
  }

  .place-hero__top-nav {
    position: absolute;
    top: env(safe-area-inset-top, 20px);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    z-index: 10;
    box-sizing: border-box;
  }

  .btn-hero-icon {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
  }
  
  .place-hero__top-actions {
    display: flex;
    gap: 12px;
  }
  
  .place-hero__content {
    position: absolute;
    bottom: 32px;
    left: 0;
    padding: 0 16px;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* White Overlapping Card */
  .mobile-main-card {
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    position: relative;
    margin-top: -24px;
    z-index: 15;
    padding: 24px 16px 40px 16px;
    min-height: 500px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
  }

  /* Title & Rating */
  .mobile-place-title {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
  }
  
  .mobile-rating-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: #64748B;
    font-size: 14px;
  }
  .mobile-rating-summary .score {
    color: #0F172A;
    font-weight: 700;
    font-size: 15px;
  }

  /* Mini Cards Grid (2x2) */
  .summary-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
  }
  .summary-card {
    padding: 16px;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  }
  .summary-icon {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: #F8FAFC;
    border-radius: 8px;
    color: #4F46E5;
  }
  .summary-label {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 2px;
  }
  .summary-val {
    font-size: 14px;
    font-weight: 700;
  }
  .summary-val.val-ok { color: #10B981; }
  .summary-val.val-no { color: #EF4444; }

  /* Actions Block */
  .mobile-actions-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }
  .btn-action-primary {
    background-color: #061A3A;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .btn-action-secondary {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
  }
  .mobile-actions-row {
    display: flex;
    gap: 12px;
  }

  /* Rating Detailed Block */
  .mobile-rating-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 24px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
    margin-bottom: 32px;
  }
  .rating-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
  }
  .rating-big-score {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .rating-word {
    font-size: 13px;
    color: #64748B;
    margin: 4px 0 8px 0;
  }
  .rating-total-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
  }
  .rating-total-count {
    font-size: 12px;
    color: #94A3B8;
  }
  .rating-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .rating-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748B;
  }
  .bar-track {
    flex: 1;
    height: 4px;
    background: #F1F5F9;
    border-radius: 2px;
    overflow: hidden;
  }
  .bar-fill {
    height: 100%;
    background: #0F172A;
    border-radius: 2px;
  }
  .bar-pct {
    min-width: 24px;
    text-align: right;
  }

  /* Real Tabs for Mobile */
  .mobile-tabs-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-tabs-bar::-webkit-scrollbar { display: none; }
  
  .mobile-tab-btn {
    background: none;
    border: none;
    padding: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #64748B;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-tab-btn.active {
    color: #061A3A;
    border-bottom-color: #4F46E5;
  }

  /* Content Card Override */
  .content-card {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Policy List Clean Look */
  .policy-list {
    background: #F8FAFC;
    border-radius: 16px;
    padding: 4px 16px;
    margin-bottom: 16px;
  }
  .policy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 16px 0;
    border-bottom: 1px solid #F1F5F9;
    gap: 12px;
  }
  .policy-row:last-child {
    border-bottom: none;
  }
  .policy-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .policy-label {
    font-size: 15px;
    color: #334155;
    font-weight: 500;
  }
  .policy-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .policy-val {
    font-size: 14px;
    text-align: right;
  }
  .policy-val.val-ok { color: #10B981; }
  .policy-val.val-no { color: #EF4444; }
  .policy-val.val-blue { color: #4F46E5; }

  /* Warning Box */
  .policy-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #EEF2FF;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #E0E7FF;
  }
  .policy-warning-box p {
    margin: 0;
    font-size: 13px;
    color: #3730A3;
    line-height: 1.5;
  }
}

/* Fix desktop visibility for mobile elements */
@media (min-width: 769px) {
  .hide-on-desktop { display: none !important; }
  .show-on-mobile { display: none !important; }
  .place-hero__top-nav { display: none !important; }
}

/* Reviews List Global Styles */
.review-list-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.review-item-compact {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

.review-item-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.review-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-item__user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1D4ED8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.review-item__meta h5 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.review-item__meta span {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.review-item__rating-stars {
  display: flex;
  gap: 2px;
  background: #F8FAFC;
  padding: 6px 10px;
  border-radius: 100px;
  border: 1px solid #F1F5F9;
}

.review-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.review-item__tag {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}

.review-item__tag:hover {
  background: #F1F5F9;
}

.review-item__tag.tag-ok {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.review-item__text {
  margin: 0;
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
}
