:root{
  --bg: #0b0f14;
  --panel: #101826;
  --panel2: #0f1724;
  --text: #e6edf6;
  --muted: #a8b3c7;
  --accent: #15c5ff;
  --accent2: #00e0b8;
  --border: rgba(255,255,255,.08);
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% -10%, rgba(21,197,255,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(0,224,184,.12), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
.container{ width: min(1120px, 92vw); margin: 0 auto; }
.header{
  position: sticky; top:0; z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.6);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display:flex; gap:10px; align-items:center;
  font-weight: 750; letter-spacing: .2px;
}
.logo{
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 26px rgba(21,197,255,.18);
}
.logo-img{
  height: 56px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
  transform: scale(1.15);
  transform-origin: left center;
}
.navlinks{ display:flex; gap: 14px; align-items:center; flex-wrap: wrap; position: relative; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border:1px solid var(--border);
  border-radius: 999px;
  background: rgba(16,24,38,.55);
  color: white;
}
.pill:hover{ border-color: rgba(21,197,255,.35); }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(21,197,255,.35);
  background: linear-gradient(180deg, rgba(21,197,255,.16), rgba(21,197,255,.06));
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.hero{ padding: 44px 0 22px; }
.heroGrid{
  display:grid; gap: 18px;
  grid-template-columns: 1.4fr .6fr;
  align-items: stretch;
}
@media (max-width: 860px){
  .heroGrid{ grid-template-columns: 1fr; }
}
.card{
  background: linear-gradient(180deg, rgba(16,24,38,.85), rgba(15,23,36,.75));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.item:hover .card {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(21,197,255,.2);
  z-index: 10;
  overflow: visible;
}
.card:hover {
  border-color: rgba(21,197,255,.2);
}
.heroMain{ padding: 22px; }
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 13px; color: var(--muted);
}
.dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21,197,255,.14);
}
.h1{ margin: 10px 0 8px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.6px; }
.sub{ margin:0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 70ch; }
.heroCtas{ display:flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.heroAside{ padding: 18px; display:flex; flex-direction: column; gap: 12px; }
.metric{
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}
.metric b{ display:block; font-size: 18px; }
.metric span{ color: var(--muted); font-size: 13px; }

.section{ padding: 0px 0 0px; }
.sectionHeader{
  display:flex; align-items: end; justify-content: space-between; gap: 14px;
  padding: 4px 0 0px;
}
.sectionHeader h2{ margin:0; font-size: 20px; letter-spacing: -.2px; }
.sectionHeader p{ margin:0; color: var(--muted); font-size: 13px; }
.filters{
  display:flex; gap: 10px; flex-wrap: wrap;
  align-items:center;
}
.input, select{
  background: rgba(16,24,38,.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--text);
  outline:none;
}
.input{ min-width: 220px; }
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  overflow: visible;
}
.item{
  grid-column: span 4;
  position: relative;
  display: flex;
  overflow: visible;
}
@media (max-width: 980px){ .item{ grid-column: span 6; } }
@media (max-width: 620px){ .item{ grid-column: span 12; } }

.itemMedia{
  height: 170px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
}
.itemMedia img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}
.badge{
  position:absolute; top: 12px; left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,15,20,.55);
  backdrop-filter: blur(6px);
}
.itemBody{ padding: 14px; display: flex; flex-direction: column; flex: 1; position: relative; overflow: visible; }
.itemTitle{ 
  margin:0; 
  font-size: 16px; 
  letter-spacing: -.2px; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  height: 2.6em;
  min-height: 2.6em;
  transition: all 0.3s ease;
}
.item:hover .itemTitle {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  height: auto;
  min-height: auto;
}
.itemTagline{ 
  margin: 6px 0 10px; 
  color: var(--muted); 
  font-size: 13px; 
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.5em;
  min-height: 4.5em;
  transition: all 0.3s ease;
}
.item:hover .itemTagline {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  height: auto;
  min-height: auto;
}
.itemMeta{ display:flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; margin-top: auto; }
.chip{
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.itemCta{ 
  margin-top: 12px; 
  display:flex; 
  gap:10px; 
  flex-wrap: wrap; 
  position: relative;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
}
.item:hover .itemCta {
  opacity: 1;
  max-height: 100px;
}
.link{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 650;
}
.link.primary{
  border-color: rgba(21,197,255,.35);
  background: linear-gradient(180deg, rgba(21,197,255,.14), rgba(21,197,255,.06));
}
.small{ font-size: 12px; color: var(--muted); }

/* Share button styling */
.share-btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-btn:hover{
  border-color: rgba(0,224,184,.35);
  background: linear-gradient(180deg, rgba(0,224,184,.14), rgba(0,224,184,.06));
  transform: translateY(-1px);
}
.share-btn svg{
  width: 16px;
  height: 16px;
}

/* View More button */
.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.view-more-btn:hover {
  opacity: 1;
}

/* Hover tooltip system - disabled in favor of card expansion */
.item:hover .hover-tooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.hover-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: none;
  overflow-y: auto;
  max-height: 100%;
  pointer-events: none;
  display: none;
}
.hover-tooltip::-webkit-scrollbar {
  width: 6px;
}
.hover-tooltip::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 3px;
}
.hover-tooltip::-webkit-scrollbar-thumb {
  background: rgba(21,197,255,.3);
  border-radius: 3px;
}
.hover-tooltip-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--accent);
}
.hover-tooltip-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.hover-tooltip-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}
.hover-tooltip-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.hover-tooltip-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hover-tooltip-meta-label {
  font-weight: 600;
  color: var(--accent);
}

/* Share menu styling */
.share-menu{
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(16,24,38,.98), rgba(15,23,36,.95));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 1000;
  backdrop-filter: blur(12px);
  animation: shareMenuSlideDown 0.2s ease-out;
  min-width: 280px;
}

@keyframes shareMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-menu-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.share-close{
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.share-close:hover{
  background: rgba(255,255,255,.1);
  color: var(--text);
}

.share-options{
  display: grid;
  gap: 8px;
  padding: 10px;
}

.share-option{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.share-option:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  transform: translateX(4px);
}

.share-option svg{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-option.facebook:hover{
  border-color: rgba(24,119,242,.5);
  background: linear-gradient(90deg, rgba(24,119,242,.1), rgba(24,119,242,.05));
}
.share-option.twitter:hover{
  border-color: rgba(29,155,240,.5);
  background: linear-gradient(90deg, rgba(29,155,240,.1), rgba(29,155,240,.05));
}
.share-option.messenger:hover{
  border-color: rgba(0,132,255,.5);
  background: linear-gradient(90deg, rgba(0,132,255,.1), rgba(0,132,255,.05));
}
.share-option.pinterest:hover{
  border-color: rgba(230,0,35,.5);
  background: linear-gradient(90deg, rgba(230,0,35,.1), rgba(230,0,35,.05));
}
.share-option.whatsapp:hover{
  border-color: rgba(37,211,102,.5);
  background: linear-gradient(90deg, rgba(37,211,102,.1), rgba(37,211,102,.05));
}
.share-option.linkedin:hover{
  border-color: rgba(10,102,194,.5);
  background: linear-gradient(90deg, rgba(10,102,194,.1), rgba(10,102,194,.05));
}
.share-option.reddit:hover{
  border-color: rgba(255,69,0,.5);
  background: linear-gradient(90deg, rgba(255,69,0,.1), rgba(255,69,0,.05));
}
.share-option.telegram:hover{
  border-color: rgba(42,171,238,.5);
  background: linear-gradient(90deg, rgba(42,171,238,.1), rgba(42,171,238,.05));
}
.share-option.email:hover{
  border-color: rgba(234,67,53,.5);
  background: linear-gradient(90deg, rgba(234,67,53,.1), rgba(234,67,53,.05));
}
.share-option.sms:hover{
  border-color: rgba(0,200,83,.5);
  background: linear-gradient(90deg, rgba(0,200,83,.1), rgba(0,200,83,.05));
}
.share-option.copy-link:hover{
  border-color: rgba(21,197,255,.5);
  background: linear-gradient(90deg, rgba(21,197,255,.1), rgba(21,197,255,.05));
}

.share-option.copied{
  border-color: rgba(0,224,184,.5);
  background: linear-gradient(90deg, rgba(0,224,184,.15), rgba(0,224,184,.08));
  color: var(--accent2);
}

/* Ensure share menu doesn't overflow card on mobile */
@media (max-width: 620px){
  .share-menu{
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin-bottom: 0;
  }
}

/* More menu (hamburger dropdown) */
.hamburger {
  cursor: pointer;
  position: relative;
}
.hamburger svg {
  width: 18px;
  height: 18px;
}
.more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: linear-gradient(180deg, rgba(16,24,38,.98), rgba(15,23,36,.95));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 1000;
  backdrop-filter: blur(12px);
  min-width: 180px;
  padding: 8px;
}
.more-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.2s;
}
.more-menu a:hover {
  background: rgba(255,255,255,.08);
}

/* Carousel layout */
.carousel-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(16,24,38,.8);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-btn:hover:not(:disabled) {
  border-color: rgba(21,197,255,.35);
  background: linear-gradient(180deg, rgba(21,197,255,.14), rgba(21,197,255,.06));
  transform: translateY(-1px);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-row {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 14px;
  padding-bottom: 2px;
  margin-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.carousel-row::-webkit-scrollbar {
  height: 8px;
}
.carousel-row::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 4px;
}
.carousel-row::-webkit-scrollbar-thumb {
  background: rgba(21,197,255,.3);
  border-radius: 4px;
}
.carousel-row::-webkit-scrollbar-thumb:hover {
  background: rgba(21,197,255,.5);
}

.carousel-row .item {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 340px);
  scroll-snap-align: start;
  grid-column: auto;
}

@media (max-width: 980px) {
  .carousel-row .item {
    width: clamp(240px, 45vw, 320px);
  }
}

@media (max-width: 620px) {
  .carousel-row .item {
    width: clamp(220px, 75vw, 280px);
  }
  .carousel-controls {
    display: none;
  }
}

.see-more-wrapper {
  text-align: right;
  padding: 2px 0 0px;
}
.see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  transition: all 0.2s;
}
.see-more:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* Rentals search section */
.rentals-search-card {
  background: linear-gradient(180deg, rgba(16,24,38,.85), rgba(15,23,36,.75));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}
.rentals-input {
  width: 100%;
  margin-bottom: 14px;
}
.rentals-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.rentals-btn {
  flex: 1;
  min-width: 140px;
}
.rentals-btn-secondary {
  flex: 1;
  min-width: 140px;
  border-color: rgba(0,224,184,.35);
  background: linear-gradient(180deg, rgba(0,224,184,.14), rgba(0,224,184,.06));
}
.rentals-btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(0,224,184,.45);
}
.rentals-btn-secondary svg {
  width: 16px;
  height: 16px;
}
.rentals-hint {
  margin-top: 12px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.2);
}
.rentals-powered {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.rentals-powered a {
  color: var(--accent);
  text-decoration: underline;
  opacity: 0.8;
}
.rentals-powered a:hover {
  opacity: 1;
}

.footer{
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 12px;
}
.footer a{ color: var(--text); opacity: .85; }
.notice{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.18);
}
.auth-buttons{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:center;
  padding: 12px 0;
}
.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(21,197,255,.35);
  background: linear-gradient(180deg, rgba(21,197,255,.16), rgba(21,197,255,.06));
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.1s;
}
.auth-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(21,197,255,.45);
}
.auth-btn:active{
  transform: translateY(0px);
}
#authStatus{
  font-size: 13px;
  color: var(--accent);
}
