/*
Theme Name: Easy Room Stay
Theme URI: https://easyroomstay.com
Author: Indian Admin
Description: Public landing site for Easy Room Stay -- a hotel booking marketplace for Haridwar, Rishikesh & Dehradun. The actual browsing/booking experience lives in the Easy Room Stay mobile app; this theme is a marketing front door that showcases live listings pulled from the site's own StayAdmin REST API.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: easyroomstay
*/

:root {
  --ers-navy: #1A3C6E;
  --ers-red: #EB2027;
  --ers-green: #1E8E3E;
  --ers-bg: #F7F8FA;
  --ers-card: #FFFFFF;
  --ers-text: #1F2937;
  --ers-muted: #6B7280;
  --ers-chip-bg: #E3EAF5;
  --ers-radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ers-text);
  background: var(--ers-bg);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.ers-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.ers-header {
  background: var(--ers-navy);
  padding: 18px 0;
}
.ers-header .ers-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ers-logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.ers-logo span { color: var(--ers-red); }

/* Hero */
.ers-hero {
  background: linear-gradient(135deg, var(--ers-navy) 0%, #274d85 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.ers-hero h1 {
  font-size: 38px;
  margin: 0 0 16px;
  font-weight: 800;
}
.ers-hero p {
  font-size: 17px;
  color: #d7e0ef;
  max-width: 560px;
  margin: 0 auto;
}

/* Sections */
section { padding: 56px 0; }
.ers-container h2 {
  font-size: 26px;
  margin: 0 0 28px;
  text-align: center;
}

/* Categories */
.ers-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ers-cat-chip {
  background: var(--ers-chip-bg);
  color: var(--ers-navy);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

/* Hotels */
.ers-hotels { background: #fff; }
.ers-hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ers-hotel-card {
  background: var(--ers-card);
  border: 1px solid #ECEFF3;
  border-radius: var(--ers-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}
.ers-hotel-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #E5E7EB;
}
.ers-hotel-body { padding: 14px 16px 18px; }
.ers-hotel-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.ers-hotel-city {
  margin: 0;
  color: var(--ers-muted);
  font-size: 13px;
}
.ers-empty {
  text-align: center;
  color: var(--ers-muted);
}

/* CTA */
.ers-cta {
  background: var(--ers-navy);
  color: #fff;
  text-align: center;
}
.ers-cta h2 { color: #fff; }
.ers-cta p {
  color: #d7e0ef;
  max-width: 480px;
  margin: 0 auto;
}

/* Why us */
.ers-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.ers-why-item h3 {
  color: var(--ers-navy);
  font-size: 16px;
  margin: 0 0 6px;
}
.ers-why-item p {
  color: var(--ers-muted);
  font-size: 14px;
  margin: 0;
}

/* Footer */
.ers-footer {
  background: #10233F;
  color: #9FB0C8;
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 600px) {
  .ers-hero h1 { font-size: 28px; }
}
