/* ===============================
   Brand Variables
================================ */
:root {
    /* Primary brand */
    --ocean-blue: #4A90E2;
    --slate-grey: #2C3E50;

    /* Card colors */
    --parakeet-soft: #E3F4E9;
    --lavender-mist: #F1EEFA;

    /* Neutrals */
    --background-light: #F5F7FA;
    --white: #FFFFFF;
    --text-dark: #333;
}

/* ===============================
   Base
================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);

    /* Soft overlay + background image */
    background:
        linear-gradient(
            rgba(245, 247, 250, 0.92),
            rgba(245, 247, 250, 0.92)
        ),
        url('/static/images/world_landmarks.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url("/static/images/world_landmarks.png");

}


/* ===============================
   Navbar
================================ */

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-right .logout {
    margin-left: auto;
}
.navbar {
    background: var(--white);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.navbar a {
    margin-right: 18px;
    text-decoration: none;
    color: var(--slate-grey);
    font-weight: 500;
}

.navbar a:hover {
    color: var(--ocean-blue);
}

.navbar .brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ocean-blue);
}

/* ===============================
   Page Title
================================ */
.page-title {
    text-align: center;
    margin-top: 50px;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 6px;
    color: var(--slate-grey);
}

.page-title p {
    font-size: 16px;
    color: #555;
}

/* ===============================
   Layout Helpers
================================ */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===============================
   Split Layout (Login page)
================================ */
.split-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px auto;
    max-width: 1000px;
}

/* ===============================
   Cards (Reusable System)
================================ */
.card {
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Card color variants */
.card--parakeet {
    background: var(--parakeet-soft);
}

.card--lavender {
    background: var(--lavender-mist);
}

/* ===============================
   Login & Info Cards
================================ */
.info-card,
.login-card {
    width: 360px;
    min-height: 420px;
    padding: 12px;
    border-radius: 18px;
}

/* Assign colors */
.info-card {
    background: var(--parakeet-soft);
}

.login-card {
    background: var(--lavender-mist);
}

/* ===============================
   Info Card
================================ */
.info-card h2 {
    margin-bottom: 15px;
    color: var(--slate-grey);
}

.info-card p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.info-card ul {
    margin-top: 15px;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

/* ===============================
   Login Card
================================ */
.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--slate-grey);
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.login-card input:focus {
    outline: none;
    border-color: var(--ocean-blue);
}

/* ===============================
   Buttons
================================ */
.login-card button {
    width: 100%;
    padding: 12px;
    background: var(--ocean-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.login-card button:hover {
    opacity: 0.9;
}

/* ===============================
   Auth Pages (no image bg)
================================ */
.auth-page {
    background: var(--background-light);
}
.login-links{
    margin-top: 15px;
    text-align: center;
}
.login-links a{
    text-decoration:none;
    color: #0077cc;
    font-size: 14px;
}
.login-links a:hover {
    color: #005fa3;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.post-card {
    overflow : auto;
    justify-content: center;
    place-items: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.post-card h3 {
    margin-bottom: 8px;
}

.post-card a {
    text-decoration: none;
    color: #1f3c5a;
}

.post-card a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}
.profile-wrapper {
    min-height: 70vh;   
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 20px;
}

.profile-card {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    place-items: center;
    background: rgba(240, 255, 248, 0.95);
    border-radius: 16px;
    padding: 40px 50px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.profile-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 6px;
}

.profile-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 14px;
    column-gap: 20px;
    font-size: 15px;
}

.profile-grid .label {
    font-weight: 600;
    color: #333;
    text-align: right;
}

.profile-grid .value {
    color: #222;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
    font-size: 48px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== Triplog Layout ===== */

/* Main container */
.trip-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
}

/* Title bar */
.trip-header {
    background: #ffffff;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 20px;
    font-weight: bold;
    border-radius: 16px;
}

/* LEFT PANEL */

.triplog-left {
    width: 30%;
    background: #f3f6f9;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.triplog-left h3 {
    text-align: center;
    margin-bottom: 15px;
}

.trip-link {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #eaf4fb;
    text-decoration: none;
    color: #333;
}

.trip-link:hover {
    background: #dbeefd;
}

/* RIGHT PANEL */

.triplog-right {
    flex: 1;
    display: flex;
    background: #f3f6f9;
    flex-direction: column;
    padding: 20px;
    width: 60%;
}

/* ENTRIES */

.entries {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.entry {
    background: #f5f8fb;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.entry small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

/* INPUT BOX */

.entry-form {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.entry-form textarea {
    width: 100%;
    height: 70px;
    resize: none;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.entry-form button {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #0077cc;
    color: white;
    border: none;
}

.entry-actions {
    text-align:right;
    font-size:12px;
}

.entry-actions a {
    margin-left:10px;
}

/* Modal */
.modal {
    position: fixed;
    top:0;
    left:0;
    height:100%;
    width: 100%;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index:1000;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: modalFade .2s ease-out;
}

.close{
    float:right;
    cursor:pointer;
}

.modal-actions{
    margin-top:15px;
    display:flex;
    justify-content:space-between;
}
.modal-box textarea {
width: 100%;
min-height: 180px;
padding: 14px 16px;
border-radius: 14px;
border: 1px solid #ddd;
font-size: 15px;
resize: vertical;
outline: none;
transition: all 0.2s ease;
}

.modal-box textarea:focus {
border-color: #7ec8f8;
box-shadow: 0 0 0 3px rgba(126,200,248,0.25);
}

.delete-btn{
    color:red;
    cursor:pointer;
}
.create-trip-container {
    max-width: 500px;
    margin: 80px auto;
    background: #ffffffcc;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.create-trip-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.create-trip-container input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.create-trip-container button {
    width: 100%;
    padding: 12px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.create-trip-container button:hover {
    background: #2bd0e6;
}
.post-create-wrapper{
    min-height:80vh;
    display:flex;
    justify-content:center;
    align-items:center;
}
.title-input{
    width:100%;
    padding:12px;
    font-size:20px;
    border:none;
    background:transparent;
    border-bottom:2px solid #ccc;
    margin-bottom:15px;
}

.location-row{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.location-row input{
    flex:1;
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
}

.story-label{
    text-align:center;
    font-weight:600;
    margin-bottom:8px;
}

.post-create-card textarea{
    width:100%;
    height:350px;
    padding:12px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:15px;
    resize:none;
}

/* Popup polish */
.leaflet-popup-content-wrapper{
    border-radius:10px;
}
.primary-btn{
    display:inline-block;
    padding:12px 22px;
    font-size:15px;
    font-weight:500;
    background:#7ec8f8;        /* light blue */
    color:#003049;             /* darker text for contrast */
    border:none;
    border-radius:25px;        /* rounded */
    cursor:pointer;
    transition:all .2s ease;
    margin-top:15px;
    align-self: center;
}

.primary-btn:hover{
    background:#5fb5f3;
    transform:translateY(-2px);
    box-shadow:0 6px 14px rgba(0,0,0,.15);
}

.primary-btn:active{
    transform:translateY(0px);
    box-shadow:none;
}

/* post editor ONLY */

.post-editor #editorjs {
    min-height: 300px;
    flex:1;
    background: white;
    border: 1px solid #ccc;
    min-height: 80px;
    padding: 8px;
    border-radius: 10px;
    margin-top: 10px;
}

.post-content img{
    max-width:100%;
    border-radius:10px;
    margin:25px 0;
}

.caption{
    font-size:14px;
    color:#666;
    text-align:center;
}
.post-container{
    max-width: 850px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.caption{
    font-size:14px;
    text-align:center;
    color:#777;
    margin-bottom:20px;
}

.post-list{
    margin:20px 0;
    padding-left:25px;
}

.post-list li{
    margin-bottom:8px;
}
.post-page{
    display:flex;
    justify-content:center;
    padding:40px 20px;
}

.travel-feed{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:30px;
    padding:40px;
}

.travel-card{
    display:block;
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    text-decoration:none;
    color:inherit;
    transition:transform .2s;
}

.travel-card:hover{
    transform:translateY(-6px);
}

.travel-card-image{
    width:100%;
    height:220px;
    object-fit:cover;
}

.travel-card-body{
    padding:20px;
}

.travel-location{
    color:#777;
    font-size:14px;
    margin-bottom:10px;
}

/* MAIN LAYOUT */
.dashboard-container {
    display: flex;
    height: calc(100vh - 80px);
    gap: 20px;
    padding: 20px;
}

/* LEFT SIDE */
.left-panel {
    width: 30%;
    overflow-y: auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* RIGHT SIDE (MAP) */
/* RIGHT PANEL LAYOUT */
.right-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* TOP 10% HEADER */
.map-header {
    height: 10%;
    min-height: 60px;
    background: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    padding-left: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.map-header {
    background: linear-gradient(to right, #007bff, #00c6ff);
    color: white;
}

/* MAP TAKES 90% */
#map {
    height: 90%;
    width: 100%;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* CARDS */
.user-card,
.friend-card,
.request-card {
    background: #f9f9f9;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* BUTTON */
.user-card button {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.user-card button:hover {
    background: #0056b3;
}

/* CONNECTED LABEL */
.connected-label {
    color: green;
    font-weight: bold;
}

/* HEADINGS */
.left-panel h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.trip-container {
    max-width: 1200px;   /* 🔥 increase overall width */
    width: 100%;
    margin: auto;
}

.chat-box {
    border: 1px solid #ddd;
    height: 400px;
    overflow-y: scroll;
    padding: 10px;
    background: #fff;
}

.my-message {
    text-align: right;
    background: #d1f5d3;
    padding: 10px;
    border-radius: 12px;
    margin: 6px;
    max-width: 70%;
    min-height: 120px;
    margin-left: auto;
}
.other-message {
    text-align: left;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 12px;
    margin: 6px;
    max-width: 70%;
    min-height: 120px;
}
.chat-input {
    display: flex;
    align-items: flex-end;
    margin-top: 10px;
    gap: 10px;
    width: 100%;
    position: relative;
    z-index: 10;
    background: white;
}



.chat-editor {
    flex: 1;
    width: 100%;
    min-height: 120px;
}
#chat-editorjs {
    width: 10%;
    min-height: 120px;
}

.chat-editor #editorjs {
    width: 100%;
    min-width: 500px;
    min-height: 40px;
    max-height: 140px;
    overflow-y: auto;

    border: 1px solid #ccc;
    padding: 10px 10px 10px 30px;  /* 🔥 space for + button */
    border-radius: 8px;

    box-sizing: border-box;
}

.chat-input input {
    flex: 1;
    padding: 10px;
}

.chat-input button {
    padding: 10px;
    width: 120px;
    height: 120px;
    align-self: flex-end;
    border-radius: 12px;

}

.ai-btn {
    margin-top: 10px;
    background: black;
    color: white;
    padding: 10px;
}

.upgrade-msg {
    color: red;
    margin-top: 10px;
}
.add-menu button {
  margin: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: #eee;
  cursor: pointer;
}

.add-menu button:hover {
  background: #ddd;
}
