/* Tagalong shared styles — matches landing page design tokens */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --coral: #FF6B5A;
  --coral-light: #FF8A7D;
  --coral-dark: #E85A4A;
  --midnight: #1A1A2E;
  --slate: #2D2D44;
  --warm-white: #FFF8F5;
  --sand: #F5EDE8;
  --text: #3A3A52;
  --text-light: #6B6B82;
  --success: #34C77B;
  --warning: #F5A623;
  --border: rgba(26, 26, 46, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--midnight);
  letter-spacing: -0.5px;
}

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }

/* NAV */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  backdrop-filter: blur(20px);
  background: rgba(255, 248, 245, 0.9);
  border-bottom: 1px solid var(--border);
}
.app-nav .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--midnight);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--coral); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }
.nav-links .btn-sm {
  background: var(--coral);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.15s;
}
.nav-links .btn-sm:hover {
  background: var(--coral-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* MAIN */
.app-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

/* SECTION HEADERS */
.section-header {
  margin-bottom: 2.5rem;
}
.section-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.section-header h1 em {
  font-style: normal;
  color: var(--coral);
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 550px;
  line-height: 1.6;
}

/* FILTERS */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(255, 107, 90, 0.05);
}
.filter-chip.active {
  background: rgba(255, 107, 90, 0.1);
  font-weight: 500;
}
.filter-select {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B82' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* COMPANION CARDS */
.companion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.companion-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.companion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.card-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--sand) 0%, rgba(255, 107, 90, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.card-body {
  padding: 1.5rem;
}
.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.6rem;
}
.card-location {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.card-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.activity-tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--sand);
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.card-rate {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--midnight);
}
.card-rate small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-light);
}
.card-rating {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover {
  background: var(--coral-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 90, 0.25);
}
.btn-secondary {
  background: var(--sand);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--midnight);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
}
.btn-outline:hover {
  background: var(--coral);
  color: #fff;
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* FORMS */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--midnight);
  margin-bottom: 0.5rem;
}
.form-group label small {
  font-weight: 400;
  color: var(--text-light);
}
.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.1);
}
.form-input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}
textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* ACTIVITY CHECKBOXES */
.activity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.activity-option {
  position: relative;
}
.activity-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.activity-option label {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 400;
  margin-bottom: 0;
}
.activity-option input:checked + label {
  border-color: var(--coral);
  background: rgba(255, 107, 90, 0.08);
  color: var(--coral);
  font-weight: 500;
}

/* PROFILE PAGE */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .profile-hero { grid-template-columns: 1fr; }
}
.profile-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}
.profile-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sand) 0%, rgba(255, 107, 90, 0.1) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.profile-info h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.profile-location {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.profile-rate {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 1.5rem;
}
.profile-rate small {
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-light);
}
.profile-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}

/* BOOKING FORM */
.booking-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.booking-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.price-preview {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-preview .total {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight);
}

/* CONFIRMATION */
.confirmation-box {
  text-align: center;
  padding: 4rem 2rem;
}
.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 2rem;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.empty-state p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* LOADING */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 4rem;
}
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--sand);
  border-top-color: var(--coral);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ALERT */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.alert-error {
  background: rgba(255, 59, 48, 0.08);
  color: #d32f2f;
  border: 1px solid rgba(255, 59, 48, 0.15);
}
.alert-success {
  background: rgba(52, 199, 123, 0.08);
  color: #1b7a3d;
  border: 1px solid rgba(52, 199, 123, 0.15);
}

/* FOOTER */
.app-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 4rem;
}
.app-footer p {
  font-size: 0.8rem;
  color: var(--text-light);
}
.app-footer a {
  color: var(--coral);
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .app-main { padding: 5rem 1.25rem 3rem; }
  .companion-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0.75rem; }
  .nav-links a:not(.btn-sm) { display: none; }
}
