/* app.css – New modern UI styling */

:root {
  --bg: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 6px rgba(0,0,0,0.08);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* CHANGED: Set background explicitly to peach color */
  background: #ffeaac; 
  color: var(--text);
  line-height: 1.6;
  padding: 0;
}

/* ---------- NAV + HEADER ---------- */
header {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-size: 1.4rem;
  font-weight: bold;
}
header nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
}
header nav a:hover {
  text-decoration: underline;
}

/* ---------- DROPDOWNS & INPUT ---------- */
select,
input[type="text"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: white;
  color: var(--text);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  width: 100%; /* Full width on mobile */
}

@media (min-width: 600px) {
  select,
  input[type="text"] {
    width: auto; /* Auto width on larger screens */
  }
}

select:focus,
input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

button,
.btn {
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: white;
  transition: background 0.2s;
}
button:hover,
.btn:hover {
  background: var(--primary-hover);
}
.btn-link {
  background: transparent;
  color: var(--primary);
  padding: 0;
  border: none;
  cursor: pointer;
}
.btn-link:hover {
  text-decoration: underline;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.section {
  margin-top: 2rem;
}
.section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
}

/* ---------- CARDS ---------- */
.grid {
    display: grid;
    gap: 1.5rem; 
   
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}
.card h4 {
  font-size: 1.05rem;
  margin: 0.7rem 0 0.3rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- BANNER ---------- */
/* ---------- BANNER (FIXED) ---------- */
#stateBanner {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column; /* Mobile par upar-neeche stack karega */
  gap: 1.5rem;
}

/* 600px se badi screen par side-by-side dikhayega */
@media (min-width: 600px) {
  #stateBanner {
    flex-direction: row;
    align-items: flex-start;
  }
}

#stateBanner img {
  width: 100%; /* Mobile par poori chaudai lega */
  max-width: 220px; /* Badi screen par max width 220px hogi */
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto; /* Mobile par image ko center karega */
}

#stateBanner > div {
   flex: 1; /* Bachi hui jagah le lega */
}


/* ---------- PLACEHOLDER ---------- */
.placeholder {
  padding: 1rem;
  background: #f3f4f6;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}


/* ---------- MODAL ---------- */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
#modal.show {
  display: flex;
}
#modalContent {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow);
  position: relative;
}
#modalClose {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}
#modalBody img {
  margin-bottom: 0.7rem;
  border-radius: var(--radius);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.5rem;
  }
}


.vr-card {
    
    max-width: 400px; 
    margin: 0 auto; 
}
#vrToursGrid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
/* VR View Button Styling */
.vr-button {
  display: block;
  width: 90%;
  margin: 0.8rem auto 0;
  padding: 0.5rem;
  background-color: var(--primary, #2563eb); 
  color: white;
  border: none;
  border-radius: var(--radius, 12px);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.1s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vr-button:hover {
  background-color: var(--primary-hover, #1d4ed8);
  transform: translateY(-1px);
}
.btn-primary, .btn-secondary {
    
    flex-shrink: 0; 
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary {
    background: #4f46e5; /* Primary color */
    color: #fff;
    border: none;
}

.btn-secondary {
    background: #6b7280; /* Secondary (Gray) color for 'View Location' */
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background: #4b5563; /* Darker gray on hover */
}

.card .view-map-button {
    background-color: #6b7280; /* Grayish-blue color */
    color: white;
    padding: 0.5rem 1.2rem;     /* Explore button jaisi padding */
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.card .view-map-button:hover {
    background-color: #4b5563; /* Hover par dark color */
}

/* Your existing media query for grids - This is correct */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* --- CHANGE 2: Added NEW media query for the state details card --- */
