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

:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #2ec4b6;
  --dark: #1a1a2e;
  --light: #f7f7f7;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f4f8;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content { flex: 1; }

/* NAVBAR */
.navbar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.hero .cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.hero .cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

/* SECTIONS */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section .subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.card .price-tag {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.card .btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.card .btn:hover { background: var(--primary-dark); }

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature .feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.feature p {
  font-size: 0.95rem;
  color: #666;
}

/* OFFER LIST PAGE */
.page-header {
  background: linear-gradient(135deg, var(--dark), #16213e);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* TABS */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 0.75rem 2rem;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: white;
}

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

/* OFFER CARDS LIST */
.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.offer-card .offer-info h3 {
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.offer-card .offer-info .offer-location {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.offer-card .offer-info .offer-desc {
  color: #555;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.offer-card .offer-info .offer-meta {
  font-size: 0.85rem;
  color: #777;
}

.offer-card .offer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.offer-card .offer-actions .btn-sm {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

.btn-email {
  background: #555;
  color: white;
}

.btn-email:hover {
  background: #333;
}

.btn-website {
  background: var(--primary);
  color: white;
}

.btn-website:hover {
  background: var(--primary-dark);
}

/* MAP CONTAINER */
.map-section {
  margin-bottom: 2rem;
}

.map-toggle-btn {
  display: block;
  margin: 0 auto 1rem;
  padding: 0.75rem 2rem;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s;
}

.map-toggle-btn:hover {
  background: #333;
}

.map-container {
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #eee;
  display: none;
}

.map-container.visible {
  display: block;
}

/* FORMS */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary);
}

.form-section h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-section .form-subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 1.5rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  overflow-y: auto;
}

.modal-overlay.visible {
  display: flex;
}

.form-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-container h2 {
  color: var(--primary);
  margin-bottom: 0.3rem;
  text-align: center;
}

.form-container .form-subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.close-form {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-form:hover {
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-publish {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 1rem;
}

.btn-publish:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-publish:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.price-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.5rem 0;
  text-align: center;
  width: 100%;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-center {
  text-align: center;
  margin-top: 2rem;
}

/* MENU TABLE */
.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.menu-table th, .menu-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.menu-table th {
  background: #f9f9f9;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.menu-table td {
  font-size: 0.95rem;
}

/* CHECKBOX STYLE */
.checkbox-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.checkbox-group label {
  display: flex !important;
  align-items: center;
  gap: 0.3rem;
  font-weight: 400 !important;
}

/* SUCCESS / CANCEL */
.status-page {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.status-page .status-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.status-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.status-page p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-card .offer-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 1.5rem;
  }
}