@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Sans+JP:wght@300;400;700;900&display=swap');

:root {
  --base-bg: #0a0806;
  --surface-bg: rgba(30, 24, 20, 0.65);
  --surface-border: rgba(255, 95, 56, 0.15);
  --text-primary: #fcfbfa;
  --text-secondary: #c7beba;
  
  --color-coral: #ff5f38;
  --color-gold: #ffb800;
  --color-teal: #00c2b2;
  
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
}

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

body {
  background-color: var(--base-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 95, 56, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 194, 178, 0.06) 0%, transparent 40%);
  color: var(--text-primary);
  font-family: var(--font-jp);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  padding: 4rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--color-coral) 30%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-gold));
  border-radius: 2px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 0.8rem;
}

/* Filter Controls */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem auto 3rem;
  flex-wrap: wrap;
  max-width: 800px;
  padding: 0 1rem;
}

.filter-btn {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  border-color: var(--color-coral);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(255, 95, 56, 0.15);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-coral) 0%, #e0441d 100%);
  border-color: var(--color-coral);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(255, 95, 56, 0.3);
}

/* Main Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 3rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card */
.spot-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spot-card:hover {
  border-color: rgba(255, 95, 56, 0.5);
  box-shadow: 0 8px 32px rgba(255, 95, 56, 0.1);
}

.card-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spot-card:hover .card-img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-gourmet {
  background: linear-gradient(135deg, var(--color-coral), #e0441d);
  color: #fff;
}

.badge-leisure {
  background: linear-gradient(135deg, var(--color-gold), #d48200);
  color: #fff;
}

.rating-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 8, 6, 0.85);
  backdrop-filter: blur(5px);
  padding: 0.3rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.spot-area {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.spot-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.spot-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}

.btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-coral), #e0441d);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(255, 95, 56, 0.3);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-teal);
}

/* Hotel Slide-in Drawer */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: #0f0d0b;
  border-left: 1px solid var(--surface-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

@media (max-width: 480px) {
  .drawer {
    max-width: 100%;
    right: -100%;
  }
}

.drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.drawer-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-teal);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--color-coral);
}

.drawer-content {
  overflow-y: auto;
  flex-grow: 1;
}

.spot-subinfo {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hotel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.hotel-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 194, 178, 0.3);
}

.hotel-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.hotel-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hotel-price {
  color: var(--color-gold);
  font-weight: 700;
}

.hotel-distance {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hotel-book-btn {
  background: linear-gradient(135deg, var(--color-teal), #00a194);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.6rem;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: block;
  transition: opacity 0.3s ease;
}

.hotel-book-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0, 194, 178, 0.25);
}

.hotel-booking-row {
  display: flex;
  gap: 8px;
  margin-top: 0.8rem;
}

.hotel-book-btn {
  flex: 1;
}

.hotel-book-btn-ikyu {
  background: linear-gradient(135deg, var(--color-coral), var(--color-gold));
  color: #fff;
  font-size: 0.85rem;
  padding: 0.6rem;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: block;
  transition: opacity 0.3s ease;
  flex: 1;
}

.hotel-book-btn-ikyu:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(255, 95, 56, 0.25);
}

/* Custom Scrollbar */
.drawer-content::-webkit-scrollbar {
  width: 6px;
}
.drawer-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
.drawer-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* Hide image wrapper completely */
.card-img-wrapper {
  display: none;
}

/* Metadata row */
.card-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.badge-mini {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-mini.badge-gourmet {
  background: rgba(255, 95, 56, 0.15);
  color: var(--color-coral);
  border: 1px solid rgba(255, 95, 56, 0.3);
}

.badge-mini.badge-leisure {
  background: rgba(255, 184, 0, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

/* Spot Meta details */
.spot-meta-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.price-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rating-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* Enhanced Hotel Card Styles */
.hotel-card-container {
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
}

.hotel-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hotel-info-block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hotel-special-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.hotel-rating-badge {
  font-size: 0.75rem;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-weight: 700;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Mobile responsive layout for hotel cards in drawer */
@media (max-width: 480px) {
  .hotel-card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .hotel-img {
    width: 100%;
    height: 140px;
    border-radius: 10px;
  }
  .hotel-info-block {
    gap: 0.6rem;
  }
}

/* Search input styling */
.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* General Mobile Improvements (Scroll & Layout Reduction) */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
    padding: 0 1rem 3rem !important;
  }
  header {
    padding: 2rem 1rem 1rem !important;
  }
  .logo {
    font-size: 2.2rem !important;
  }
  .subtitle {
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
  }
  .filter-container {
    margin: 1rem auto 1.5rem !important;
    gap: 0.5rem !important;
  }
  .filter-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.82rem !important;
  }
  .filter-label-area {
    font-size: 0.8rem !important;
  }
}
