:root {
  --primary: #002F34;
  --primary-dark: #001f22;
  --secondary: #FFCE32;
  --secondary-hover: #e6b800;
  --background: #F5F5F5;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #dddddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Header */
header {
  background-color: var(--primary);
  color: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--secondary);
}

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

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.search-bar {
  background: var(--white);
  padding: 10px;
  border-radius: 50px;
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 15px 25px;
  font-size: 16px;
  outline: none;
}

.search-bar select {
  border: none;
  border-left: 1px solid var(--border-color);
  padding: 15px;
  font-size: 16px;
  outline: none;
  color: var(--text-muted);
}

.search-bar button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 40px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}

/* Categories */
.section-title {
  margin: 40px 0 20px;
  font-size: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.category-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}

.category-card i {
  font-size: 32px;
  margin-bottom: 15px;
  display: block;
}

/* Listings */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 80px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-5px);
}

.listing-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.listing-content {
  padding: 20px;
}

.listing-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.listing-location {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.listing-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verified-badge {
  background: #e7f6f2;
  color: #059669;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Details Page */
.listing-header {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.listing-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.detail-card h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.contact-box {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  position: sticky;
  top: 100px;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1 solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* New Component Styles */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.admin-badge {
    background: var(--secondary);
    color: var(--primary);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 5px;
    vertical-align: middle;
}
