:root {
  --bg: #05020a;
  --bg-secondary: #0f0518;
  --glass: rgba(20, 10, 30, 0.4);
  --glass-hover: rgba(40, 20, 60, 0.5);
  --glass-border: rgba(168, 85, 247, 0.25);
  --primary: #c084fc;
  --secondary: #9333ea;
  --text-main: #ffffff;
  --text-mute: #cbd5e1;
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(192, 132, 252, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

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

/* Glassmorphism Components */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 2, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

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

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mute);
}

.nav-links a:hover {
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Standard Hotel Cards */
.hotel-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background: var(--glass-hover);
  border-color: rgba(192, 132, 252, 0.4);
}

.card-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-mute);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.card-actions a {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

/* Home Layout: Horizontal & Glossy Hotel Cards */
.home-hotel-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hotel-card.glossy {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.hotel-card.glossy:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 10px 40px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.hotel-card.horizontal {
  flex-direction: row;
  align-items: center;
}

.hotel-card.horizontal .card-img-wrap {
  width: 45%;
  height: 320px;
  border-radius: var(--radius);
  margin: 1.5rem;
}

.hotel-card.horizontal .card-content {
  width: 55%;
  padding: 1.5rem 2rem 1.5rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 5% 6rem;
  text-align: center;
  background-image: linear-gradient(rgba(5, 2, 10, 0.7), rgba(5, 2, 10, 0.95)), url('images/rome-hero-skyline-view-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-mute);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Details Page */
.details-hero {
  border-radius: var(--radius);
  overflow: hidden;
  height: 50vh;
  min-height: 400px;
  position: relative;
  margin-bottom: 3rem;
}

.details-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(5, 2, 10, 0.9) 0%, transparent 100%);
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.amenities-list li {
  background: var(--glass);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-mute);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Typography Pages (Legal, Guide) */
.content-body p {
  margin-bottom: 1.5rem;
  color: var(--text-mute);
}

.content-body h2, .content-body h3 {
  margin: 2rem 0 1rem;
}

.content-body ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-mute);
}

.content-body ul li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-col p, .footer-col a {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  display: block;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* FAQ */
.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-mute);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 2, 10, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hero {
    padding: 5rem 5% 3rem;
  }
  
  .hotel-card.horizontal {
    flex-direction: column;
  }
  
  .hotel-card.horizontal .card-img-wrap {
    width: auto;
    margin: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  
  .hotel-card.horizontal .card-content {
    width: 100%;
    padding: 1.5rem;
  }
}