: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 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --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 */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-weight: 500;
  color: var(--color-dark);
}

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

.nav .btn {
  color: var(--color-white);
}

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

.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 */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--color-mid);
  margin-top: 60px;
  border-top: 1px solid var(--color-light);
  background: var(--color-white);
}

/* 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; }
  .nav { display: none; /* Add hamburger later */ }
}
